]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/_Exit_-fbsd.c
Libc-498.tar.gz
[apple/libc.git] / stdlib / _Exit_-fbsd.c
diff --git a/stdlib/_Exit_-fbsd.c b/stdlib/_Exit_-fbsd.c
new file mode 100644 (file)
index 0000000..3a2e94e
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * This file is in the public domain.  Written by Garrett A. Wollman,
+ * 2002-09-07.
+ *
+ * $FreeBSD: src/lib/libc/stdlib/_Exit.c,v 1.1 2002/09/10 02:04:49 wollman Exp $
+ */
+
+#include <stdlib.h>
+#include <unistd.h>
+
+/*
+ * ISO C99 added this function to provide for Standard C applications
+ * which needed something like POSIX _exit().  A new interface was created
+ * in case it turned out that _exit() was insufficient to meet the
+ * requirements of ISO C.  (That's probably not the case, but here
+ * is where you would put the extra code if it were.)
+ */
+void
+_Exit(int code)
+{
+       _exit(code);
+}