summaryrefslogtreecommitdiff
path: root/kernel/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fcntl.h')
-rw-r--r--kernel/fcntl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/fcntl.h b/kernel/fcntl.h
index 44861b9..09f330a 100644
--- a/kernel/fcntl.h
+++ b/kernel/fcntl.h
@@ -3,3 +3,13 @@
#define O_RDWR 0x002
#define O_CREATE 0x200
#define O_TRUNC 0x400
+
+#ifdef LAB_MMAP
+#define PROT_NONE 0x0
+#define PROT_READ 0x1
+#define PROT_WRITE 0x2
+#define PROT_EXEC 0x4
+
+#define MAP_SHARED 0x01
+#define MAP_PRIVATE 0x02
+#endif