summaryrefslogtreecommitdiffstats
path: root/man3/on_exit.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/on_exit.313
1 files changed, 6 insertions, 7 deletions
diff --git a/man3/on_exit.3 b/man3/on_exit.3
index 4ab7aa1..1f5a33a 100644
--- a/man3/on_exit.3
+++ b/man3/on_exit.3
@@ -9,7 +9,7 @@
.\" 386BSD man pages
.\" Modified 1993-04-02, David Metcalfe
.\" Modified 1993-07-25, Rik Faith (faith@cs.unc.edu)
-.TH on_exit 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH on_exit 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
on_exit \- register a function to be called at normal process termination
.SH LIBRARY
@@ -18,15 +18,15 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.PP
+.P
.BI "int on_exit(void (*" function ")(int, void *), void *" arg );
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR on_exit ():
.nf
Since glibc 2.19:
@@ -52,10 +52,10 @@ and the
.I arg
argument from
.BR on_exit ().
-.PP
+.P
The same function may be registered multiple times:
it is called once for each registration.
-.PP
+.P
When a child process is created via
.BR fork (2),
it inherits copies of its parent's registrations.
@@ -81,7 +81,6 @@ T{
.BR on_exit ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH STANDARDS
None.
.SH HISTORY