diff options
Diffstat (limited to 'src/lib/libc/stdlib/_Exit.c')
| -rw-r--r-- | src/lib/libc/stdlib/_Exit.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/libc/stdlib/_Exit.c b/src/lib/libc/stdlib/_Exit.c new file mode 100644 index 0000000000..5a2291a931 --- /dev/null +++ b/src/lib/libc/stdlib/_Exit.c | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* $OpenBSD: _Exit.c,v 1.2 2005/08/08 08:05:36 espie Exp $ */ | ||
| 2 | |||
| 3 | /* | ||
| 4 | * Placed in the public domain by Todd C. Miller on January 21, 2004. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include <stdlib.h> | ||
| 8 | #include <unistd.h> | ||
| 9 | |||
| 10 | /* | ||
| 11 | * _Exit() is the ISO/ANSI C99 equivalent of the POSIX _exit() function. | ||
| 12 | * No atexit() handlers are called and no signal handlers are run. | ||
| 13 | * Whether or not stdio buffers are flushed or temporary files are removed | ||
| 14 | * is implementation-dependent. As such it is safest to *not* flush | ||
| 15 | * stdio buffers or remove temporary files. This is also consistent | ||
| 16 | * with most other implementations. | ||
| 17 | */ | ||
| 18 | void | ||
| 19 | _Exit(int status) | ||
| 20 | { | ||
| 21 | _exit(status); | ||
| 22 | } | ||
