]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libc/stdlib/_Exit.c
Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4
[FreeBSD/FreeBSD.git] / lib / libc / stdlib / _Exit.c
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 }