diff options
Diffstat (limited to 'kernel/fcntl.h')
-rw-r--r-- | kernel/fcntl.h | 10 |
1 files changed, 10 insertions, 0 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 |