Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/atexit.h')
-rw-r--r--newlib/libc/stdlib/atexit.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/newlib/libc/stdlib/atexit.h b/newlib/libc/stdlib/atexit.h
index e37a146a0..44a928126 100644
--- a/newlib/libc/stdlib/atexit.h
+++ b/newlib/libc/stdlib/atexit.h
@@ -1,14 +1,13 @@
/*
- * Common definitions for atexit-like routines
+ * %G% (UofMD) %D%
*/
-enum __atexit_types
-{
- __et_atexit,
- __et_onexit,
- __et_cxa
-};
+#define ATEXIT_SIZE 32 /* must be at least 32 to guarantee ANSI conformance */
-void __call_exitprocs _PARAMS ((int, _PTR));
-int __register_exitproc _PARAMS ((int, void (*fn) (void), _PTR, _PTR));
+struct atexit {
+ struct atexit *next; /* next in list */
+ int ind; /* next index in this table */
+ void (*fns[ATEXIT_SIZE])(); /* the table itself */
+};
+struct atexit *__atexit; /* points to head of LIFO stack */