aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/arm/aeabi_atexit.c
blob: a5626b732af1ab65f4f6259fcd5b9d3553511fd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>

/* forward declaration */
extern int __cxa_atexit (void (*) (void *), void *, void *);

/* Register a function to be called by exit or when a shared library
   is unloaded.  This routine is like __cxa_atexit, but uses the
   calling sequence required by the ARM EABI.  */
int
__aeabi_atexit (void *arg, void (*func) (void *), void *d)
{
  return __cxa_atexit (func, arg, d);
}