summaryrefslogtreecommitdiff
path: root/src/user/lib/libc/std/stdlib.c
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-19 11:45:49 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-19 11:45:49 +0200
commit499ca6c243b05da176a2d4bd9a2317f0b28afc7f (patch)
treef55ff788632b017ab8de83b71ad02b0998e1dda5 /src/user/lib/libc/std/stdlib.c
parent7b466345af0d3a7dc5622617ce443a90c64e34a4 (diff)
downloadTCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.tar.gz
TCE-499ca6c243b05da176a2d4bd9a2317f0b28afc7f.zip
Introducing FWIK, the userland C++ framework. Far from complete.
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);
+}