summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/atexit.c
Commit message (Collapse)AuthorAgeFilesLines
* 2004-09-09 Paul Brook <paul@codesourcery.com>Jeff Johnston2004-09-091-44/+2
| | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle and _is_cxa. (struct _atexit): Add _next when _REENT_SMALL. (struct _reent): Add _atexit0 when _REENT_SMALL. (_REENT_INIT_PTR): Adjust. * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and __call_exit.c. (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c. * libc/stdlib/Makefile.in: Regenerate. * libc/stdlib/__atexit.c: New file. * libc/stdlib/__call_atexit.c: New file. * libc/stdlib/atexit.h: Remove old definitions. Add new. * libc/stdlib/atexit.c (atexit): Use __register_exitproc. * libc/stdlib/cxa_atexit.c: New file. * libc/stdlib/cxa_finalize.c: New file. * libc/stdlib/exit.c (exit): Use __call_exitprocs. * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc. 2004-09-09 Jeff Johnston <jjohnstn@redhat.com> * libc/reent/reent.c [_REENT_SMALL]: Fix reference to _on_exit_args_ptr.
* 2004-01-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-01-281-2/+22
| | | | | * libc/stdlib/atexit.c: Protect global atexit list with a lock when newlib is multithreaded.
* 2003-09-02 Thomas Pfaff <tpfaff@gmx.net>Jeff Johnston2003-09-021-5/+5
| | | | | | * libc/stdlib/atexit.c: Rename _REENT to _GLOBAL_REENT throughout. * libc/stdlib/exit.c : Ditto. * libc/stdlib/on_exit.c: Ditto.
* New structure containing fields used by the on_exit() function.Nick Clifton2003-06-061-3/+3
| | | | | (struct _atexit): Include struct _on_exit_args. For _REENT_SMALL do his via a pointer that is initialised when needed.
* 2002-05-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-151-0/+1
| | | | | | | | | | | | | | | | | * 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.
* * implement a new `struct _reent' that is significantly smaller. use thisMatthew Green2002-02-031-0/+7
| | | | if _REENT_SMALL is defined in config.h. define this for xstormy16.
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+80