summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/atexit.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/atexit.3')
-rw-r--r--src/lib/libc/stdlib/atexit.313
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/atexit.3 b/src/lib/libc/stdlib/atexit.3
index 07de054d3c..5d79ede649 100644
--- a/src/lib/libc/stdlib/atexit.3
+++ b/src/lib/libc/stdlib/atexit.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: @(#)atexit.3 5.3 (Berkeley) 6/29/91 36.\" $OpenBSD: atexit.3,v 1.4 2000/04/20 13:50:01 aaron Exp $
37.\" $Id: atexit.3,v 1.1.1.1 1995/10/18 08:42:16 deraadt Exp $
38.\" 37.\"
39.Dd June 29, 1991 38.Dd June 29, 1991
40.Dt ATEXIT 3 39.Dt ATEXIT 3
@@ -49,13 +48,12 @@
49.Sh DESCRIPTION 48.Sh DESCRIPTION
50The 49The
51.Fn atexit 50.Fn atexit
52function 51function registers the given
53registers the given 52.Fa function
54.Ar function
55to be called at program exit, whether via 53to be called at program exit, whether via
56.Xr exit 3 54.Xr exit 3
57or via return from the program's 55or via return from the program's
58.Em main . 56.Fn main .
59Functions so registered are called in reverse order; 57Functions so registered are called in reverse order;
60no arguments are passed. 58no arguments are passed.
61At least 32 functions can always be registered, 59At least 32 functions can always be registered,
@@ -73,6 +71,5 @@ The existing list of functions is unmodified.
73.Sh STANDARDS 71.Sh STANDARDS
74The 72The
75.Fn atexit 73.Fn atexit
76function 74function conforms to
77conforms to
78.St -ansiC . 75.St -ansiC .