git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
lunaix-os/usr/libc/includes/errno.h
@@ -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 */