3 exits, _exits, atexit, atexitdont, terminate \- terminate process, process cleanup
11 void _exits(char *msg)
16 int atexit(void(*)(void))
19 void atexitdont(void(*)(void))
23 is the conventional way to terminate a process.
25 is the underlying system call.
30 conventionally includes a brief (maximum length
32 explanation of the reason for
33 exiting, or a null pointer or empty string to indicate normal termination.
34 The string is passed to the parent process, prefixed by the name and process
35 id of the exiting process, when the parent does a
44 calls in reverse order all the functions
51 as a function to be called by
53 It returns zero if it failed,
55 A typical use is to register a cleanup routine for an I/O package.
56 To simplify programs that fork or share memory,
59 .IR atexit -registered
60 functions that were registered by the same
61 process as that calling
66 twice (or more) with the same function argument causes
68 to invoke the function twice (or more).
70 There is a limit to the number of exit functions
71 that will be recorded;
73 returns 0 if that limit has been reached.
76 cancels a previous registration of an exit function.
78 .B /usr/local/plan9/src/libc/port/atexit.c