refactor: separate syscall interfaces from kernel space, into posix compliant structure.
[lunaix-os.git] / lunaix-os / includes / usr / errno.h
diff --git a/lunaix-os/includes/usr/errno.h b/lunaix-os/includes/usr/errno.h
new file mode 100644 (file)
index 0000000..5b9b51b
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef __LUNAIX_SYS_ERRNO_H
+#define __LUNAIX_SYS_ERRNO_H
+
+int
+geterrno();
+
+#define errno (geterrno())
+
+#endif /* __LUNAIX_ERRNO_H */