summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/exit.3
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-03-08 20:43:42 +0000
committerderaadt <deraadt@openbsd.org>2001-03-08 20:43:42 +0000
commitad9bd2c5a0930129a0fca0bca8842353d9bd365f (patch)
tree35e562140faf3066d3023566a039066afbe4cc1a /lib/libc/stdlib/exit.3
parentPut "Symbios" in the NAME so man -k will find it; ian@darwinsys.com (diff)
downloadwireguard-openbsd-ad9bd2c5a0930129a0fca0bca8842353d9bd365f.tar.xz
wireguard-openbsd-ad9bd2c5a0930129a0fca0bca8842353d9bd365f.zip
document that exit() -> wait() only returns low bits
Diffstat (limited to 'lib/libc/stdlib/exit.3')
-rw-r--r--lib/libc/stdlib/exit.312
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3
index a17c1805f2a..cecc020d0fb 100644
--- a/lib/libc/stdlib/exit.3
+++ b/lib/libc/stdlib/exit.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: exit.3,v 1.4 2000/04/20 13:50:02 aaron Exp $
+.\" $OpenBSD: exit.3,v 1.5 2001/03/08 20:43:42 deraadt Exp $
.\"
.Dd June 29, 1991
.Dt EXIT 3
@@ -66,6 +66,15 @@ Unlink all files created with the
.Xr tmpfile 3
function.
.El
+Following this,
+.Fn exit
+calls
+.Xr _exit 2.
+Note that typically
+.Xr exit 2
+only passes the lower 8 bits of
+.Fa status
+on to the parent, thus negative values have less meaning.
.Sh RETURN VALUES
The
.Fn exit
@@ -74,6 +83,7 @@ function never returns.
.Xr _exit 2 ,
.Xr atexit 3 ,
.Xr intro 3 ,
+.Xr sysexits 3 ,
.Xr tmpfile 3
.Sh STANDARDS
The