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 | |
| 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')
| -rw-r--r-- | lib/libc/sys/Makefile.inc | 3 | ||||
| -rw-r--r-- | lib/libc/sys/_exit.2 | 30 |
2 files changed, 26 insertions, 7 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index b26ccc211af..b1257bda135 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.112 2013/06/01 09:49:53 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.113 2013/06/05 04:06:08 guenther Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -199,6 +199,7 @@ MAN+= __get_tcb.2 __thrsigdivert.2 __thrsleep.2 _exit.2 accept.2 \ MLINKS+=__get_tcb.2 __set_tcb.2 MLINKS+=__thrsleep.2 __thrwakeup.2 +MLINKS+=_exit.2 _Exit.2 MLINKS+=access.2 faccessat.2 MLINKS+=brk.2 sbrk.2 MLINKS+=chdir.2 fchdir.2 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 . |
