Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass the | kettenis | 2013-12-28 | 1 | -10/+1 |
| | | | | | | | | | | right __dso_handle and have dlopen'ed shared objects run their atexit handlers when they get unloaded. This is what Linux does, and several ports depend on this behaviour (and will crash upon exit without this chang). Based on an earlier diff from matthew@ Tested by ajacoutot@ ok deraadt@ | ||||
* | Two small cleanups to atexit: remove unneeded __atexit_invalid, and | matthew | 2013-06-02 | 1 | -10/+4 |
| | | | | | | | move the call_depth decrement so it happens unconditionally and can still return to 0 when called with dso!=NULL. ok millert | ||||
* | Fix __cxa_finalize() so that calling __cxa_finalize(NULL) properly | matthew | 2011-03-02 | 1 | -2/+2 |
| | | | | | | invokes handlers registered with __cxa_atexit(). "seems right" deraadt@ | ||||
* | Add missing header to avoid warning | chl | 2007-09-05 | 1 | -1/+2 |
| | | | | ok millert@ ray@ | ||||
* | Add __cxa_atexit() support for gcc3. This provides support for shared ↵ | millert | 2007-09-03 | 1 | -9/+84 |
| | | | | object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD. | ||||
* | Avouid a race in atexit() handling by introducing a lock. Problem | otto | 2006-02-22 | 1 | -9/+20 |
| | | | | | originally reported by Gergely Kovacs; help from dhartmei@; ok tedu@ millert@ | ||||
* | Remove obsolete comment. ok deraadt@ | otto | 2005-10-26 | 1 | -5/+1 |
| | |||||
* | zap remaining rcsid. | espie | 2005-08-08 | 1 | -4/+1 |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | no longer a need for the free(malloc(1)) hack, because the brk stuff | deraadt | 2005-06-17 | 1 | -9/+5 |
| | | | | | no longer needs initializing (we use mmap for malloc entirely now) noticed by kjell, ok dhartmei, tested by me | ||||
* | ansi + de-register | pat | 2005-03-30 | 1 | -9/+7 |
| | | | | ok otto deraadt | ||||
* | Move __cleanup into mprotect'ed page to prevent unintentional modifications | dhartmei | 2002-09-14 | 1 | -5/+56 |
| | | | | similar to the atexit handlers. Idea and help deraadt@, ok deraadt@ | ||||
* | missing include, ok theo | henning | 2002-09-06 | 1 | -1/+2 |
| | |||||
* | re-enable function pointer table protection, this time make sure that | dhartmei | 2002-08-30 | 1 | -35/+51 |
| | | | | | malloc.c gets the first mmap() call (since it depends on that, for its sbrk(0) use). ok deraadt@ | ||||
* | Back it out, it breaks something in perl (seen with spamassassin), debug | dhartmei | 2002-07-31 | 1 | -46/+35 |
| | | | | first. | ||||
* | Replace atexit handler. mprotect() the pages so an attempt to modify the | dhartmei | 2002-07-29 | 1 | -35/+46 |
| | | | | | function pointers from the outside will segfault. Idea, hints and feedback from deraadt. ok deraadt. | ||||
* | Fix RCS ids | tholo | 1996-08-19 | 1 | -2/+1 |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | deraadt | 1995-10-18 | 1 | -0/+68 |