summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fcntl.h10
-rw-r--r--kernel/param.h8
2 files changed, 11 insertions, 7 deletions
diff --git a/kernel/fcntl.h b/kernel/fcntl.h
index d7bb43b..832894c 100644
--- a/kernel/fcntl.h
+++ b/kernel/fcntl.h
@@ -4,3 +4,13 @@
#define O_NOFOLLOW 0x010
#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
diff --git a/kernel/param.h b/kernel/param.h
index 431741f..4ed7a51 100644
--- a/kernel/param.h
+++ b/kernel/param.h
@@ -13,11 +13,5 @@
#define MAXOPBLOCKS 10 // max # of blocks any FS op writes
#define LOGSIZE (MAXOPBLOCKS*3) // max data blocks in on-disk log
#define NBUF (MAXOPBLOCKS*3) // size of disk block cache
-#ifdef LAB_FS
-#define FSSIZE 200000 // size of file system in blocks
-#else
-#define FSSIZE 2000 // size of file system in blocks
-#endif
+#define FSSIZE 200000 // size of file system in blocks
#define MAXPATH 128 // maximum file path name
-
-