diff options
author | 2013-06-05 04:06:08 +0000 | |
---|---|---|
committer | 2013-06-05 04:06:08 +0000 | |
commit | 89e2fe5c3827dc04a644abbef6f9ceefb22adc9e (patch) | |
tree | 52cb8dad70f3cffe5fb223a96652de98393c0170 /lib/libc/sys/_exit.2 | |
parent | i copied .Fd just like everybody else. use .In (diff) | |
download | wireguard-openbsd-89e2fe5c3827dc04a644abbef6f9ceefb22adc9e.tar.xz wireguard-openbsd-89e2fe5c3827dc04a644abbef6f9ceefb22adc9e.zip |
Move _Exit() from the exit() manpage to the _exit() manpage, as it's
just an alias of the latter.
ok matthew@ tedu@
Diffstat (limited to 'lib/libc/sys/_exit.2')
-rw-r--r-- | lib/libc/sys/_exit.2 | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2 index 3fb185ef68f..82cd5645a4e 100644 --- a/lib/libc/sys/_exit.2 +++ b/lib/libc/sys/_exit.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: _exit.2,v 1.17 2011/11/17 14:26:14 schwarze Exp $ +.\" $OpenBSD: _exit.2,v 1.18 2013/06/05 04:06:08 guenther Exp $ .\" $NetBSD: _exit.2,v 1.6 1995/02/27 12:31:34 cgd Exp $ .\" .\" Copyright (c) 1980, 1993 @@ -30,22 +30,30 @@ .\" .\" @(#)_exit.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: November 17 2011 $ +.Dd $Mdocdate: June 5 2013 $ .Dt _EXIT 2 .Os .Sh NAME -.Nm _exit +.Nm _exit , +.Nm _Exit .Nd terminate the calling process .Sh SYNOPSIS .Fd #include <unistd.h> .Ft void .Fn _exit "int status" +.Fd #include <stdlib.h> +.Ft void +.Fn _Exit "int status" .Sh DESCRIPTION The .Fn _exit -function terminates a process with the following consequences: +and +.Fn _Exit +functions terminate a process with the following consequences: .Bl -bullet .It +All threads in the process are terminated. +.It All open file descriptors in the calling process are closed. This may entail delays; for example, waiting for output to drain. A process in this state may not be killed, as it is already dying. @@ -96,6 +104,8 @@ and then calls .Fn _exit . .Sh RETURN VALUES .Fn _exit +and +.Fn _Exit can never return. .Sh SEE ALSO .Xr fork 2 , @@ -107,8 +117,12 @@ can never return. .Sh STANDARDS The .Fn _exit -function is defined by -.St -p1003.1-88 . +function conform to +.St -p1003.1-2008 . +The +.Fn _Exit +function conforms to +.St -ansiC-99 . .Sh HISTORY An .Fn exit @@ -118,3 +132,7 @@ and an .Fn _exit variant in .At v7 . +The +.Fn _Exit +function appeared in +.Ox 3.6 . |