summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorbjh21 <bjh21@NetBSD.org>2003-03-01 15:59:02 +0000
committerbjh21 <bjh21@NetBSD.org>2003-03-01 15:59:02 +0000
commit22ebd2b34bfb418c3c690527c5da9d6e6178cbed (patch)
treed18991cd8e3c0f34f107711871322efbaf529527 /lib/libc/stdlib
parenta3248903e4dde4c1c4c135c6cc98067d1105f3c4 (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.c21
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);
+}