diff options
author | deraadt <> | 2001-03-08 20:43:42 +0000 |
---|---|---|
committer | deraadt <> | 2001-03-08 20:43:42 +0000 |
commit | cde88bf029d753cc1497a9a02211bdf67b46c5f5 (patch) | |
tree | b48e27fe005ab1cee52460395dab5cc98221946a | |
parent | 87171508ab76508dcd0cdb3dec386c68547d46f1 (diff) | |
download | openbsd-cde88bf029d753cc1497a9a02211bdf67b46c5f5.tar.gz openbsd-cde88bf029d753cc1497a9a02211bdf67b46c5f5.tar.bz2 openbsd-cde88bf029d753cc1497a9a02211bdf67b46c5f5.zip |
document that exit() -> wait() only returns low bits
-rw-r--r-- | src/lib/libc/stdlib/exit.3 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/exit.3 b/src/lib/libc/stdlib/exit.3 index a17c1805f2..cecc020d0f 100644 --- a/src/lib/libc/stdlib/exit.3 +++ b/src/lib/libc/stdlib/exit.3 | |||
@@ -33,7 +33,7 @@ | |||
33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" $OpenBSD: exit.3,v 1.4 2000/04/20 13:50:02 aaron Exp $ | 36 | .\" $OpenBSD: exit.3,v 1.5 2001/03/08 20:43:42 deraadt Exp $ |
37 | .\" | 37 | .\" |
38 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
39 | .Dt EXIT 3 | 39 | .Dt EXIT 3 |
@@ -66,6 +66,15 @@ Unlink all files created with the | |||
66 | .Xr tmpfile 3 | 66 | .Xr tmpfile 3 |
67 | function. | 67 | function. |
68 | .El | 68 | .El |
69 | Following this, | ||
70 | .Fn exit | ||
71 | calls | ||
72 | .Xr _exit 2. | ||
73 | Note that typically | ||
74 | .Xr exit 2 | ||
75 | only passes the lower 8 bits of | ||
76 | .Fa status | ||
77 | on to the parent, thus negative values have less meaning. | ||
69 | .Sh RETURN VALUES | 78 | .Sh RETURN VALUES |
70 | The | 79 | The |
71 | .Fn exit | 80 | .Fn exit |
@@ -74,6 +83,7 @@ function never returns. | |||
74 | .Xr _exit 2 , | 83 | .Xr _exit 2 , |
75 | .Xr atexit 3 , | 84 | .Xr atexit 3 , |
76 | .Xr intro 3 , | 85 | .Xr intro 3 , |
86 | .Xr sysexits 3 , | ||
77 | .Xr tmpfile 3 | 87 | .Xr tmpfile 3 |
78 | .Sh STANDARDS | 88 | .Sh STANDARDS |
79 | The | 89 | The |