2 * Implementation of __cxa_atexit.
13 #include "on_exit_args.h"
15 /* force linking of static instance of _on_exit_args */
16 const void * const __cxa_atexit_dummy
= &__on_exit_args
;
18 #endif /* def _REENT_SMALL */
21 * Register a function to be performed at exit or DSO unload.
25 __cxa_atexit (void (*fn
) (void *),
30 /* Refer to comments in __atexit.c for more details of lite exit. */
31 int __register_exitproc (int, void (*fn
) (void), void *, void *)
32 __attribute__ ((weak
));
34 if (!__register_exitproc
)
38 return __register_exitproc (__et_cxa
, (void (*)(void)) fn
, arg
, d
);