diff options
Diffstat (limited to 'man3/on_exit.3')
-rw-r--r-- | man3/on_exit.3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/man3/on_exit.3 b/man3/on_exit.3 index 08fceba13..c843e0282 100644 --- a/man3/on_exit.3 +++ b/man3/on_exit.3 @@ -24,7 +24,7 @@ Standard C library .P .RS -4 Feature Test Macro Requirements for glibc (see -.BR feature_test_macros (7)): +.MR feature_test_macros 7 ): .RE .P .BR on_exit (): @@ -41,13 +41,13 @@ function registers the given .I function to be called at normal process termination, whether via -.BR exit (3) +.MR exit 3 or via return from the program's .IR main (). The .I function is passed the status argument given to the last call to -.BR exit (3) +.MR exit 3 and the .I arg argument from @@ -57,10 +57,10 @@ The same function may be registered multiple times: it is called once for each registration. .P When a child process is created via -.BR fork (2), +.MR fork 2 , it inherits copies of its parent's registrations. Upon a successful call to one of the -.BR exec (3) +.MR exec 3 functions, all registrations are removed. .SH RETURN VALUE The @@ -69,7 +69,7 @@ function returns the value 0 if successful; otherwise it returns a nonzero value. .SH ATTRIBUTES For an explanation of the terms used in this section, see -.BR attributes (7). +.MR attributes 7 . .TS allbox; lbx lb lb @@ -87,7 +87,7 @@ None. SunOS 4, glibc. Removed in Solaris (SunOS 5). Use the standard -.BR atexit (3) +.MR atexit 3 instead. .SH CAVEATS By the time @@ -100,6 +100,6 @@ Therefore, should not be a pointer to a stack variable; it may however be a pointer to a heap variable or a global variable. .SH SEE ALSO -.BR _exit (2), -.BR atexit (3), -.BR exit (3) +.MR _exit 2 , +.MR atexit 3 , +.MR exit 3 |