summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/atexit.c
Commit message (Collapse)AuthorAgeFilesLines
* If realloc failed, we'd lose the pointer to the exit function table.Manuel Novoa III2003-11-021-6/+8
|
* Doh! Fix potential stack corruption caused by dynamic atexitEric Andersen2003-01-241-2/+6
| | | | | allocating size incorrectly.... -Erik
* Implement dynamic atexit handling. Adds a few bytes and a dependancyEric Andersen2002-11-191-28/+68
| | | | | on malloc (via realloc). -Erik
* A bug fix from Alexey V. Neyman:Eric Andersen2002-09-261-2/+2
| | | | | | | In case of vfork(), the parent was left with __exit_count of -1 and thus tried to find non-NULL value of __exit_function_table[-1].atexit, __exit_function_table[-2].atexit and call this function; of course, it leads to coredump.
* Doh! missed a spot.Eric Andersen2002-08-121-0/+2
| | | | -Erik
* Geez I'm an idiot some times. I shouldn't code when I'm exhausted.Eric Andersen2002-08-121-1/+2
| | | | | | I _totally_ screwed up the locking on exit and atexit such that it didn't do any good at all. -Erik
* Add missing thread-safe locking.0_9_13Eric Andersen2002-08-091-0/+27
| | | | -Erik
* Swap in the new stdio code.Manuel Novoa III2002-03-121-5/+8
|
* Doh! Miles Bader noticed a couple of spots where I forgotEric Andersen2002-02-191-3/+1
| | | | to mark __stdio_flush_buffers with weak_function. Oops!
* Rename __stdio_close_all to __stdio_flush_buffers. Eliminate anEric Andersen2002-02-181-7/+5
| | | | unnecessary variable
* Doh!Eric Andersen2002-02-181-1/+1
|
* Miles Bader writes:Eric Andersen2002-02-181-1/+2
| | | | | | | | | | Programs that don't use stdio crash in the `exit' function, because they call through the pointer__uClibc_cleanup, which has a value of 0. It has a value of 0 because __uClibc_main.c initializes it to the address of `__stdio_close_all', which is a weak symbol (and so is 0 if stdio is not used). This patch from Miles fixes it, though we need to audit __stdio_close_all usage to be sure...
* A number of naming updates in preparation for adding inEric Andersen2002-02-131-23/+114
| | | | | proper threading. Most of this is from Stefan Soucek, with additions and changes as needed from me.
* Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.Eric Andersen2001-10-111-1/+2
| | | | He sent this patch to me a month ago, but I forgot to apply it...
* Update to accomodate the header file changesEric Andersen2001-09-271-0/+1
|
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-1/+1
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Create __uClibc_main to handle what can be done in C instead of each arch'sManuel Novoa III2001-02-191-14/+26
| | | | | | | respective crt0.S. crt0.S should now only be responsible for setting things up to call __uClibc_main(argc, argv, envp), which will do any other necessary setup (setting global __environ, stdio init, etc), call main, and exit. This should ease both maintainance and porting.
* Revert stdio to initializing itself. Not quite a pretty but that ensures thatEric Andersen2001-02-091-3/+0
| | | | | | | we don't blow up by using too much stack space, and simplifies the job of supporting new architectures, since they don't have to mess with calling foo init functions in crt0 and cleaning up the resulting damage. -Erik
* Clean up atexit.c; make sure sysconf and atexit agree; link in ref'd libgcc.aManuel Novoa III2001-01-251-32/+17
| | | | objects with shared uClibc; allow disabling long long support.
* Note about need to match _SC_ATEXIT_MAX. Minor macro name change.Manuel Novoa III2001-01-171-4/+9
|
* A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen2001-01-111-58/+24
|
* Bug ugly formatting updateEric Andersen2000-10-091-59/+49
|
* Many bugfixes, header cleanups, etc. Added abort and glob.Eric Andersen2000-07-051-0/+1
| | | | | It is getting closer... -Erik
* Initial revision0_9_1Erik Andersen2000-05-141-0/+117