diff options
author | kan <kan@FreeBSD.org> | 2003-12-19 17:11:21 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-12-19 17:11:21 +0000 |
commit | 09cff1552677af476e36b9a7eaa9c19cc59babab (patch) | |
tree | efbabd11f110e786f47c858d0d07235825295adc /lib/libc/stdlib/atexit.h | |
parent | caabe905470f909266101f4eae7e6651e6c58083 (diff) | |
download | FreeBSD-src-09cff1552677af476e36b9a7eaa9c19cc59babab.zip FreeBSD-src-09cff1552677af476e36b9a7eaa9c19cc59babab.tar.gz |
Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
รณ++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.
This is the patch from PR bin/59552 with a number of changes by
me.
PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
Diffstat (limited to 'lib/libc/stdlib/atexit.h')
-rw-r--r-- | lib/libc/stdlib/atexit.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/stdlib/atexit.h b/lib/libc/stdlib/atexit.h index 96ef95f..704c2e1 100644 --- a/lib/libc/stdlib/atexit.h +++ b/lib/libc/stdlib/atexit.h @@ -37,10 +37,4 @@ /* must be at least 32 to guarantee ANSI conformance */ #define ATEXIT_SIZE 32 -struct atexit { - struct atexit *next; /* next in list */ - int ind; /* next index in this table */ - void (*fns[ATEXIT_SIZE])(); /* the table itself */ -}; - -extern struct atexit *__atexit; /* points to head of LIFO stack */ +void __cxa_finalize(void *dso); |