summaryrefslogtreecommitdiff
path: root/libc/src/errno.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-02-05 08:31:33 -0800
committerPixel <pixel@nobis-crew.org>2011-02-05 08:31:33 -0800
commit0736203a630b2fbc2bc3e6383e4aec9285bba184 (patch)
tree1bca3f8821e607a47b4adfaab2f60fa029a2a58a /libc/src/errno.c
parent681c1493836e79ea87faba47a804899374ccc219 (diff)
Context switch also means switching that global errno variable.
Diffstat (limited to 'libc/src/errno.c')
-rw-r--r--libc/src/errno.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/src/errno.c b/libc/src/errno.c
new file mode 100644
index 0000000..6e6a6e8
--- /dev/null
+++ b/libc/src/errno.c
@@ -0,0 +1,3 @@
+#include "errno.h"
+
+volatile enum errno_t errno = ENOERROR;