From ca9bd30c262ed788486c1d367ad40550e5d806c2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 5 Jul 2000 19:25:08 +0000 Subject: Many bugfixes, header cleanups, etc. Added abort and glob. It is getting closer... -Erik --- include/stdlib.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/stdlib.h') 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)); -- cgit v1.2.3