Userland/wget - Starting on a wget clone
[tpg/acess2.git] / Usermode / include / errno.h
index e4228b7..ea352f3 100644 (file)
@@ -1,8 +1,28 @@
 #ifndef _ERRNO_H_
 #define _ERRNO_H_
 
+// TODO: Fully implement errno.h, make sure it matches the kernel one
+
+extern int     _errno;
 #define        errno   _errno
 
 #define strerror(_x)   "Unimplemented"
 
+enum
+{
+       EOK,
+       EINVAL,
+       ERANGE,
+       ENODEV,
+       EBADF,
+       EINTR,
+       EAGAIN,
+       ENOMEM,
+
+       EADDRNOTAVAIL,
+       EINPROGRESS,
+
+       E_LAST
+};
+
 #endif

UCC git Repository :: git.ucc.asn.au