aboutsummaryrefslogtreecommitdiff
path: root/test/includes/pre/sys
diff options
context:
space:
mode:
Diffstat (limited to 'test/includes/pre/sys')
-rw-r--r--test/includes/pre/sys/errno.h4
-rw-r--r--test/includes/pre/sys/fcntl.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/test/includes/pre/sys/errno.h b/test/includes/pre/sys/errno.h
new file mode 100644
index 0000000000..0b8934d33e
--- /dev/null
+++ b/test/includes/pre/sys/errno.h
@@ -0,0 +1,4 @@
+#include <sys/errno.h>
+
+static const int kENOENT = ENOENT;
+static const int kEEXIST = EEXIST;
diff --git a/test/includes/pre/sys/fcntl.h b/test/includes/pre/sys/fcntl.h
new file mode 100644
index 0000000000..767c97a631
--- /dev/null
+++ b/test/includes/pre/sys/fcntl.h
@@ -0,0 +1,7 @@
+#include <sys/fcntl.h>
+
+static const mode_t kO_RDONLY = O_RDONLY;
+static const mode_t kO_WRONLY = O_WRONLY;
+static const mode_t kO_RDWR = O_RDWR;
+static const mode_t kO_CREAT = O_CREAT;
+static const mode_t kO_EXCL = O_EXCL;