summaryrefslogtreecommitdiff
path: root/src/user/lib/std/stdlib.c
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-01 17:42:36 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-01 17:42:36 +0200
commite9683297bf480f9590b0e5796f4520fb430e2e03 (patch)
tree93ef75cd154edf4c342d0a22cd56eb3670feb2b5 /src/user/lib/std/stdlib.c
parente8cf65c07d78e3cfbac953b1b97c51998a5900df (diff)
downloadTCE-e9683297bf480f9590b0e5796f4520fb430e2e03.tar.gz
TCE-e9683297bf480f9590b0e5796f4520fb430e2e03.zip
Now using Doug Lea's malloc for userland too. And improved stability.
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);
+}