dc824ef736
* libc/include/stdlib.h: Add on_exit prototype. * libc/include/sys/reent.h (struct _atexit): Add argument array and bits to track type of exit routine to support both on_exit and atexit. (_REENT_INIT_PTR): Add missing fields that won't be zeroed out by default and change the setting of the atexit structure. (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace. * libc/stdlib/on_exit.c: New file. * libc/stdlib/Makefile.am: Add support for on_exit. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/atexit.c: Change to initialize types field. * libc/stdlib/exit.c: Change to look at types field for each exit routine and either call an atexit-style or an on_exit-style routine accordingly. |
||
---|---|---|
.. | ||
machine | ||
sys | ||
_ansi.h | ||
_syslist.h | ||
alloca.h | ||
ar.h | ||
assert.h | ||
ctype.h | ||
dirent.h | ||
errno.h | ||
fastmath.h | ||
fcntl.h | ||
grp.h | ||
ieeefp.h | ||
locale.h | ||
malloc.h | ||
math.h | ||
paths.h | ||
process.h | ||
pthread.h | ||
pwd.h | ||
reent.h | ||
regdef.h | ||
setjmp.h | ||
signal.h | ||
stdio.h | ||
stdlib.h | ||
string.h | ||
termios.h | ||
time.h | ||
unctrl.h | ||
unistd.h | ||
utime.h | ||
utmp.h |