diff options
Diffstat (limited to 'lib/libc/stdlib/_Exit.c')
-rw-r--r-- | lib/libc/stdlib/_Exit.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libc/stdlib/_Exit.c b/lib/libc/stdlib/_Exit.c new file mode 100644 index 000000000000..a7af0c9efe80 --- /dev/null +++ b/lib/libc/stdlib/_Exit.c @@ -0,0 +1,20 @@ +/* + * This file is in the public domain. Written by Garrett A. Wollman, + * 2002-09-07. + */ + +#include <stdlib.h> +#include <unistd.h> + +/* + * ISO C99 added this function to provide for Standard C applications + * which needed something like POSIX _exit(). A new interface was created + * in case it turned out that _exit() was insufficient to meet the + * requirements of ISO C. (That's probably not the case, but here + * is where you would put the extra code if it were.) + */ +void +_Exit(int code) +{ + _exit(code); +} |