feat: wrapper function for bootstraping user program
[lunaix-os.git] / lunaix-os / usr / includes / errno.h
diff --git a/lunaix-os/usr/includes/errno.h b/lunaix-os/usr/includes/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 */