summaryrefslogtreecommitdiff
path: root/src/kernel/lib/std.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/std.c')
-rw-r--r--src/kernel/lib/std.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kernel/lib/std.c b/src/kernel/lib/std.c
new file mode 100644
index 0000000..316dfa3
--- /dev/null
+++ b/src/kernel/lib/std.c
@@ -0,0 +1,11 @@
+#include "std.h"
+#include "core/sys.h"
+
+int errno = 0;
+
+void abort() {
+ monitor_write("\n\n ABORT - errno: ");
+ monitor_writeDec(errno);
+ monitor_write("\n");
+ PANIC("abort() called, probably a memory manager failure.");
+}