summaryrefslogtreecommitdiff
path: root/src/user/lib/std/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/std/stdlib.c')
-rw-r--r--src/user/lib/std/stdlib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/user/lib/std/stdlib.c b/src/user/lib/std/stdlib.c
new file mode 100644
index 0000000..21753e9
--- /dev/null
+++ b/src/user/lib/std/stdlib.c
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+#include <stdio.h>
+
+volatile int errno;
+
+void abort() {
+ printk("Abort - errno ");
+ printk_int(errno);
+ printk(".\n");
+ process_exit(-1);
+}