4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-30 11:00:41 +08:00

27 lines
451 B
C
Raw Normal View History

/*
* Implementation of __cxa_atexit.
*/
#include <stddef.h>
#include <stdlib.h>
#include <reent.h>
#include <sys/lock.h>
#include "atexit.h"
#ifdef __REENT_HAS_CXA_SUPPORT
/*
* Register a function to be performed at exit or DSO unload.
*/
int
_DEFUN (__cxa_atexit,
(fn, arg, d),
void (*fn) (void *) _AND
void *arg _AND
void *d)
{
return __register_exitproc (__et_cxa, (void (*)(void)) fn, arg, d);
}
#endif /* __REENT_HAS_CXA_SUPPORT */