diff options
| author | bjh21 <bjh21@NetBSD.org> | 2003-03-01 15:59:02 +0000 |
|---|---|---|
| committer | bjh21 <bjh21@NetBSD.org> | 2003-03-01 15:59:02 +0000 |
| commit | 22ebd2b34bfb418c3c690527c5da9d6e6178cbed (patch) | |
| tree | d18991cd8e3c0f34f107711871322efbaf529527 /lib/libc/stdlib | |
| parent | a3248903e4dde4c1c4c135c6cc98067d1105f3c4 (diff) | |
Add _Exit(), for C99 and POSIX-2001.
Proposed on tech-userlevel to a resounding silence in April last year.
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/_Exit.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libc/stdlib/_Exit.c b/lib/libc/stdlib/_Exit.c new file mode 100644 index 00000000000..d13922218ff --- /dev/null +++ b/lib/libc/stdlib/_Exit.c @@ -0,0 +1,21 @@ +/* $NetBSD: _Exit.c,v 1.1 2003/03/01 15:59:03 bjh21 Exp $ */ + +/* + * Ben Harris, 2002 + * This file is in the Public Domain + */ + +#include <stdlib.h> +#include <unistd.h> + +/* + * IEEE 1003.1-2001 says: + * The _Exit() and _exit() functions shall be functionally equivalent. + */ + +void +_Exit(int status) +{ + + _exit(status); +} |
