xref: /openbsd-src/lib/libc/stdlib/_Exit.c (revision 2d2bdfd2f91c63600121f4051848658b57093d55)
1*2d2bdfd2Sguenther /*	$OpenBSD: _Exit.c,v 1.3 2013/04/03 03:39:29 guenther Exp $	*/
25f37d0e7Smillert 
35f37d0e7Smillert /*
45f37d0e7Smillert  * Placed in the public domain by Todd C. Miller on January 21, 2004.
55f37d0e7Smillert  */
65f37d0e7Smillert 
75f37d0e7Smillert #include <stdlib.h>
85f37d0e7Smillert #include <unistd.h>
95f37d0e7Smillert 
105f37d0e7Smillert /*
115f37d0e7Smillert  * _Exit() is the ISO/ANSI C99 equivalent of the POSIX _exit() function.
125f37d0e7Smillert  * No atexit() handlers are called and no signal handlers are run.
135f37d0e7Smillert  * Whether or not stdio buffers are flushed or temporary files are removed
14*2d2bdfd2Sguenther  * is implementation-dependent in C99.  Indeed, POSIX specifies that
15*2d2bdfd2Sguenther  * _Exit() must *not* flush stdio buffers or remove temporary files, but
16*2d2bdfd2Sguenther  * rather must behave exactly like _exit()
175f37d0e7Smillert  */
185f37d0e7Smillert void
_Exit(int status)195f37d0e7Smillert _Exit(int status)
205f37d0e7Smillert {
215f37d0e7Smillert 	_exit(status);
225f37d0e7Smillert }
23