summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-05 19:25:08 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-05 19:25:08 +0000
commitca9bd30c262ed788486c1d367ad40550e5d806c2 (patch)
treedaf86037f4b4d34e91c6f147e287fb26694df103 /include/stdlib.h
parent9281d180d13057917f618c35ef7433d2e4d4dd86 (diff)
Many bugfixes, header cleanups, etc. Added abort and glob.
It is getting closer... -Erik
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 691a5a537..047300af2 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -14,8 +14,14 @@
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
+/* Call all functions registered with `atexit' and `on_exit',
+ * in the reverse of the order in which they were registered
+ * perform stdio cleanup, and terminate program execution with STATUS. */
extern void exit __P ((int __status)) __attribute__ ((__noreturn__));
+/* Register a function to be called when `exit' is called. */
extern int atexit __P ((void (*__func) (void)));
+/* Abort execution and generate a core-dump. */
+extern void abort __P ((void)) __attribute__ ((__noreturn__));
extern void * malloc __P ((size_t));
extern void * calloc __P ((size_t, size_t));