summaryrefslogtreecommitdiff
path: root/src/user/lib/libc/std/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/libc/std/stdlib.c')
-rw-r--r--src/user/lib/libc/std/stdlib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user/lib/libc/std/stdlib.c b/src/user/lib/libc/std/stdlib.c
new file mode 100644
index 0000000..9d46b5c
--- /dev/null
+++ b/src/user/lib/libc/std/stdlib.c
@@ -0,0 +1,8 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+volatile int errno;
+
+void abort() {
+ process_exit(100 + errno);
+}