summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/exit.312
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
67function. 67function.
68.El 68.El
69Following this,
70.Fn exit
71calls
72.Xr _exit 2.
73Note that typically
74.Xr exit 2
75only passes the lower 8 bits of
76.Fa status
77on to the parent, thus negative values have less meaning.
69.Sh RETURN VALUES 78.Sh RETURN VALUES
70The 79The
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
79The 89The