aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/errno.c
diff options
context:
space:
mode:
authorMarvin Borner2021-03-26 21:55:50 +0100
committerMarvin Borner2021-03-26 22:02:20 +0100
commit05498860e8f7b1e8bb27880bc7526de026694804 (patch)
tree3bddf16e9439a950a3810d45e42a5cefdbcb7663 /libs/libc/errno.c
parenta96e9c4c858d47f61b89d879aa0ce6a02bdacb38 (diff)
Renamed libs
Cleaner and more flexible.
Diffstat (limited to 'libs/libc/errno.c')
-rw-r--r--libs/libc/errno.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/libc/errno.c b/libs/libc/errno.c
new file mode 100644
index 0000000..7204f5b
--- /dev/null
+++ b/libs/libc/errno.c
@@ -0,0 +1,14 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#include <def.h>
+#include <errno.h>
+#ifdef userspace
+
+static u32 error = 0;
+
+u32 *__errno(void)
+{
+ return &error;
+}
+
+#endif