diff options
Diffstat (limited to 'src/lib/libc/stdlib/exit.3')
-rw-r--r-- | src/lib/libc/stdlib/exit.3 | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/exit.3 b/src/lib/libc/stdlib/exit.3 index adb81ffcb4..bcfdfd38f5 100644 --- a/src/lib/libc/stdlib/exit.3 +++ b/src/lib/libc/stdlib/exit.3 | |||
@@ -33,8 +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 | .\" from: @(#)exit.3 6.6 (Berkeley) 6/29/91 | 36 | .\" $OpenBSD: exit.3,v 1.6 2001/07/27 23:48:12 mpech Exp $ |
37 | .\" $Id: exit.3,v 1.1.1.1 1995/10/18 08:42:17 deraadt Exp $ | ||
38 | .\" | 37 | .\" |
39 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
40 | .Dt EXIT 3 | 39 | .Dt EXIT 3 |
@@ -47,8 +46,9 @@ | |||
47 | .Ft void | 46 | .Ft void |
48 | .Fn exit "int status" | 47 | .Fn exit "int status" |
49 | .Sh DESCRIPTION | 48 | .Sh DESCRIPTION |
50 | .Fn Exit | 49 | The |
51 | terminates a process. | 50 | .Fn exit |
51 | function terminates a process. | ||
52 | .Pp | 52 | .Pp |
53 | Before termination it performs the following functions in the | 53 | Before termination it performs the following functions in the |
54 | order listed: | 54 | order listed: |
@@ -66,19 +66,27 @@ 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 |
72 | function | 81 | function never returns. |
73 | never returns. | ||
74 | .Sh SEE ALSO | 82 | .Sh SEE ALSO |
75 | .Xr _exit 2 , | 83 | .Xr _exit 2 , |
76 | .Xr atexit 3 , | 84 | .Xr atexit 3 , |
77 | .Xr intro 3 , | 85 | .Xr intro 3 , |
86 | .Xr sysexits 3 , | ||
78 | .Xr tmpfile 3 | 87 | .Xr tmpfile 3 |
79 | .Sh STANDARDS | 88 | .Sh STANDARDS |
80 | The | 89 | The |
81 | .Fn exit | 90 | .Fn exit |
82 | function | 91 | function conforms to |
83 | conforms to | ||
84 | .St -ansiC . | 92 | .St -ansiC . |