Hide __atexit

Bug: http://b/21640806
Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f
(cherry picked from commit 9cf6fc304b)
This commit is contained in:
Dmitriy Ivanov
2015-06-04 14:33:18 -07:00
parent f2e86cd980
commit c534603f8d
3 changed files with 12 additions and 15 deletions

View File

@@ -37,7 +37,18 @@
#include "atexit.h"
#include "private/thread_private.h"
struct atexit *__atexit;
struct atexit {
struct atexit *next; /* next in list */
int ind; /* next index in this table */
int max; /* max entries >= ATEXIT_SIZE */
struct atexit_fn {
void (*fn_ptr)(void *);
void *fn_arg; /* argument for CXA callback */
void *fn_dso; /* shared module handle */
} fns[1]; /* the table itself */
};
static struct atexit *__atexit;
static int restartloop;
/* BEGIN android-changed: __unregister_atfork is used by __cxa_finalize */