xref: /freebsd/lib/libc/stdlib/_Exit.c (revision 2008043f386721d58158e37e0d7e50df8095942d)
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