xref: /freebsd/lib/libc/stdlib/_Exit.c (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
1 /*
2  * This file is in the public domain.  Written by Garrett A. Wollman,
3  * 2002-09-07.
4  */
5 
6 #include <stdlib.h>
7 #include <unistd.h>
8 
9 /*
10  * ISO C99 added this function to provide for Standard C applications
11  * which needed something like POSIX _exit().  A new interface was created
12  * in case it turned out that _exit() was insufficient to meet the
13  * requirements of ISO C.  (That's probably not the case, but here
14  * is where you would put the extra code if it were.)
15  */
16 void
17 _Exit(int code)
18 {
19 	_exit(code);
20 }
21