summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-06-05 04:06:09 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-06-05 04:06:09 +0000
commit3a2030f8d5c86b6fd26391f0992713849284d68b (patch)
tree08056381326e014e91a204f1272ed3b22f74e26a /lib/libc/stdlib
parent08a9573fc818cc8332a4368b5ce46667d248fa89 (diff)
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/stdlib')
-rw-r--r--lib/libc/stdlib/Makefile.inc3
-rw-r--r--lib/libc/stdlib/exit.343
2 files changed, 10 insertions, 36 deletions
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 5f3a142ec42..d75fe5f7b12 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.47 2012/12/03 20:08:33 millert Exp $
+# $OpenBSD: Makefile.inc,v 1.48 2013/06/05 04:06:08 guenther Exp $
# stdlib sources
.PATH: ${LIBCSRCDIR}/arch/${MACHINE_CPU}/stdlib ${LIBCSRCDIR}/stdlib
@@ -38,7 +38,6 @@ MAN+= a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \
qabs.3 qdiv.3 qsort.3 radixsort.3 rand48.3 rand.3 random.3 realpath.3 \
strtod.3 strtonum.3 strtol.3 strtoul.3 system.3 tsearch.3
-MLINKS+=exit.3 _Exit.3
MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3
MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3
MLINKS+=getopt_long.3 getopt_long_only.3
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3
index 11d4bc2304e..86c4daed537 100644
--- a/lib/libc/stdlib/exit.3
+++ b/lib/libc/stdlib/exit.3
@@ -29,30 +29,25 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: exit.3,v 1.13 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: exit.3,v 1.14 2013/06/05 04:06:08 guenther Exp $
.\"
.Dd $Mdocdate: June 5 2013 $
.Dt EXIT 3
.Os
.Sh NAME
-.Nm exit, _Exit
+.Nm exit
.Nd perform normal program termination
.Sh SYNOPSIS
.In stdlib.h
.Ft void
.Fn exit "int status"
-.Ft void
-.Fn _Exit "int status"
.Sh DESCRIPTION
The
.Fn exit
-and
-.Fn _Exit
-functions terminate a process.
+function terminates a process.
.Pp
-Before termination,
-.Fn exit
-performs the following operations in the order listed:
+Before termination it performs the following functions in the
+order listed:
.Bl -enum -offset indent
.It
Call the functions registered with the
@@ -68,25 +63,9 @@ Unlink all files created with the
function.
.El
.Pp
-The
-.Fn _Exit
-function terminates without calling the functions registered with the
-.Xr atexit 3
-function.
-The
-.Ox
-implementation of
-.Fn _Exit
-does not flush open output streams or unlink files created with the
-.Xr tmpfile 3
-function.
-However, this behavior is implementation-specific.
-.Pp
-Lastly,
+Following this,
.Fn exit
-and
-.Fn _Exit
-call
+calls
.Xr _exit 2 .
Note that typically
.Xr _exit 2
@@ -96,9 +75,7 @@ on to the parent, thus negative values have less meaning.
.Sh RETURN VALUES
The
.Fn exit
-and
-.Fn _Exit
-functions never return.
+function never returns.
.Sh SEE ALSO
.Xr _exit 2 ,
.Xr atexit 3 ,
@@ -108,9 +85,7 @@ functions never return.
.Sh STANDARDS
The
.Fn exit
-and
-.Fn _Exit
-functions conform to
+function conforms to
.St -ansiC-99 .
.Sh HISTORY
An