about summary refs log tree commit diff
path: root/src/exit/_Exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exit/_Exit.c')
-rw-r--r--src/exit/_Exit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exit/_Exit.c b/src/exit/_Exit.c
new file mode 100644
index 00000000..8ef85a8f
--- /dev/null
+++ b/src/exit/_Exit.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+#define SYSCALL_NORETURN
+#include "syscall.h"
+
+void _Exit(int ec)
+{
+	syscall1(__NR_exit_group, ec);
+	syscall1(__NR_exit, ec);
+}