summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-10-20 20:58:38 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-10-20 20:58:38 +0200
commite3d8fe9d4a1085cbf7237411bcd1996613334994 (patch)
tree0e04341f5ab79efed8865810d3fb4954b1a026e3 /sys/man
parent67d9c6b2f98888dc81154b0499bbd26171f908a6 (diff)
libc: cleanup atexit and put exits() in its own compilation unit
this avoids having to pull in atexit() and its dependencies (lock(), unlock()) into every program. (as exits() is called by _main() from main9.s).
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/2/exits3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/man/2/exits b/sys/man/2/exits
index 78e3f6d29..77baf3f76 100644
--- a/sys/man/2/exits
+++ b/sys/man/2/exits
@@ -14,7 +14,6 @@ void exits(char *msg)
.PP
.B
int atexit(void(*)(void))
-.PP
.B
void atexitdont(void(*)(void))
.fi
@@ -75,6 +74,8 @@ returns 0 if that limit has been reached.
.I Atexitdont
cancels a previous registration of an exit function.
.SH SOURCE
+.B /sys/src/libc/port/exits.c
+.br
.B /sys/src/libc/port/atexit.c
.SH "SEE ALSO"
.IR fork (2),