diff options
Diffstat (limited to 'newlib/libc/stdlib/cxa_finalize.c')
-rw-r--r-- | newlib/libc/stdlib/cxa_finalize.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/cxa_finalize.c b/newlib/libc/stdlib/cxa_finalize.c new file mode 100644 index 000000000..17d0526a7 --- /dev/null +++ b/newlib/libc/stdlib/cxa_finalize.c @@ -0,0 +1,20 @@ +/* + * Implementation if __cxa_finalize. + */ + + +#include <stdlib.h> +#include <reent.h> +#include "atexit.h" + +/* + * Call registered exit handlers. If D is null then all handlers are called, + * otherwise only the handlers from that DSO are called. + */ + +void +_DEFUN (__cxa_finalize, (d), + void * d) +{ + __call_exitprocs (0, d); +} |