1 /* $OpenBSD: _Exit.c,v 1.1 2004/05/03 17:21:13 millert Exp $ */ 2 3 /* 4 * Placed in the public domain by Todd C. Miller on January 21, 2004. 5 */ 6 7 #if defined(LIBC_SCCS) && !defined(lint) 8 static char *rcsid = "$OpenBSD: _Exit.c,v 1.1 2004/05/03 17:21:13 millert Exp $"; 9 #endif /* LIBC_SCCS and not lint */ 10 11 #include <stdlib.h> 12 #include <unistd.h> 13 14 /* 15 * _Exit() is the ISO/ANSI C99 equivalent of the POSIX _exit() function. 16 * No atexit() handlers are called and no signal handlers are run. 17 * Whether or not stdio buffers are flushed or temporary files are removed 18 * is implementation-dependent. As such it is safest to *not* flush 19 * stdio buffers or remove temporary files. This is also consistent 20 * with most other implementations. 21 */ 22 void 23 _Exit(int status) 24 { 25 _exit(status); 26 } 27