refactor: restructure the user space stuff.
[lunaix-os.git] / lunaix-os / usr / libc / includes / errno.h
diff --git a/lunaix-os/usr/libc/includes/errno.h b/lunaix-os/usr/libc/includes/errno.h
new file mode 100644 (file)
index 0000000..4377190
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef __LUNAIX_SYS_ERRNO_H
+#define __LUNAIX_SYS_ERRNO_H
+
+#include <lunaix/status.h>
+
+extern int geterrno();
+
+#define errno (geterrno())
+
+#endif /* __LUNAIX_ERRNO_H */