summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/_Exit.c
blob: ccf64c2e87b9ac8b274519c582315c58ad4b1db6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*	$OpenBSD: _Exit.c,v 1.3 2013/04/03 03:39:29 guenther Exp $	*/

/*
 * Placed in the public domain by Todd C. Miller on January 21, 2004.
 */

#include <stdlib.h>
#include <unistd.h>

/*
 * _Exit() is the ISO/ANSI C99 equivalent of the POSIX _exit() function.
 * No atexit() handlers are called and no signal handlers are run.
 * Whether or not stdio buffers are flushed or temporary files are removed
 * is implementation-dependent in C99.  Indeed, POSIX specifies that
 * _Exit() must *not* flush stdio buffers or remove temporary files, but
 * rather must behave exactly like _exit()
 */
void
_Exit(int status)
{
	_exit(status);
}