summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/cloudlibc/src/libc/stdlib/_Exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-bottom-half/cloudlibc/src/libc/stdlib/_Exit.c')
-rw-r--r--libc-bottom-half/cloudlibc/src/libc/stdlib/_Exit.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc-bottom-half/cloudlibc/src/libc/stdlib/_Exit.c b/libc-bottom-half/cloudlibc/src/libc/stdlib/_Exit.c
new file mode 100644
index 0000000..5e266f0
--- /dev/null
+++ b/libc-bottom-half/cloudlibc/src/libc/stdlib/_Exit.c
@@ -0,0 +1,14 @@
+// Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
+//
+// SPDX-License-Identifier: BSD-2-Clause
+
+#include <wasi/api.h>
+#include <_/cdefs.h>
+#include <stdnoreturn.h>
+#include <unistd.h>
+
+noreturn void _Exit(int status) {
+ __wasi_proc_exit(status);
+}
+
+__strong_reference(_Exit, _exit);