cleanup
[rpikern] / src / libc / errno.h
diff --git a/src/libc/errno.h b/src/libc/errno.h
new file mode 100644 (file)
index 0000000..4bc9f6a
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef ERRNO_H_
+#define ERRNO_H_
+
+#define EFOO                   1
+#define EAGAIN                 2
+#define EINVAL                 3
+#define ECHILD                 4
+#define EBUSY                  5
+#define ENOMEM                 6
+#define EIO                            7
+#define ENOENT                 8
+#define ENAMETOOLONG   9
+#define ENOSPC                 10
+#define EPERM                  11
+#define ENOTDIR                        12
+#define EISDIR                 13
+#define EEXIST                 14
+#define ERANGE                 34
+
+#define EBUG                   127     /* for missing features and known bugs */
+
+int errno;
+
+#endif /* ERRNO_H_ */