History log of /openbsd/lib/libc/stdlib/atexit.h (Results 1 – 12 of 12)
Revision Date Author Comments
# 720afc0e 16-Dec-2017 guenther <guenther@openbsd.org>

Move __cxa_thread_atexit* to its own .c file to avoid pulling the code
(w/ _dlctl reference) into static executables. It's all Mark's code so
put his preferred copyright on it.

ok kettenis@


# 0afcdeda 05-Dec-2017 kettenis <kettenis@openbsd.org>

Implement __cxa_thread_atexit to support C++11 thread_local scope. The
interface is also made available as __cxa_thread_atexit_impl to satisfy the
needs of GNU libstdc++.

ok guenther@, millert@


# 57b9636d 25-Oct-2015 guenther <guenther@openbsd.org>

Hide __atexit and __atexit_register_cleanup()
Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct
Switch regress/lib/libc/atexit/ to be built with -static so that it can
still access

Hide __atexit and __atexit_register_cleanup()
Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct
Switch regress/lib/libc/atexit/ to be built with -static so that it can
still access __atexit*

ok millert@ jca@

show more ...


# 5537d3e0 18-Jun-2014 kettenis <kettenis@openbsd.org>

Always call atexit handlers as if they were registered with __cxa_atexit.
The extra argument doesn't hurt genuine atexit handlers and this fixes a
bug where we didn't provide the argument (effectivel

Always call atexit handlers as if they were registered with __cxa_atexit.
The extra argument doesn't hurt genuine atexit handlers and this fixes a
bug where we didn't provide the argument (effectively passing garbage) for
functions registered with __cxa_atexit in the main executable.

Pointed out by Dmitriy Ivanov <dimitry@google.com> and Elliott Hughes
<enh@google.com>.

ok matthew@

show more ...


# 7d23ac2a 02-Jun-2013 matthew <matthew@openbsd.org>

Two small cleanups to atexit: remove unneeded __atexit_invalid, and
move the call_depth decrement so it happens unconditionally and can
still return to 0 when called with dso!=NULL.

ok millert


# 5198527c 03-Sep-2007 millert <millert@openbsd.org>

Add __cxa_atexit() support for gcc3. This provides support for shared object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.


# 91748944 31-Jul-2003 deraadt <deraadt@openbsd.org>

fix a proto


# 2762c2ed 30-Aug-2002 dhartmei <dhartmei@openbsd.org>

re-enable function pointer table protection, this time make sure that
malloc.c gets the first mmap() call (since it depends on that, for its
sbrk(0) use). ok deraadt@


# b020e1e3 31-Jul-2002 dhartmei <dhartmei@openbsd.org>

Back it out, it breaks something in perl (seen with spamassassin), debug
first.


# f8c1f0d0 29-Jul-2002 dhartmei <dhartmei@openbsd.org>

Replace atexit handler. mprotect() the pages so an attempt to modify the
function pointers from the outside will segfault. Idea, hints and feedback
from deraadt. ok deraadt.


# e9b2b68c 19-Aug-1996 tholo <tholo@openbsd.org>

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree