提交 7e0d4fce 编写于 作者: R rofl0r

add more arch-specific MAP_ macros to bits/mman.h

these are also needed by qemu.
上级 db846a62
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#define MAP_ANON 0x20 #define MAP_ANON 0x20
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_NORESERVE 0x4000 #define MAP_NORESERVE 0x4000
#define MAP_GROWSDOWN 0x0100
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define POSIX_MADV_NORMAL 0 #define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1 #define POSIX_MADV_RANDOM 1
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_32BIT 0x40 #define MAP_32BIT 0x40
#define MAP_NORESERVE 0x4000 #define MAP_NORESERVE 0x4000
#define MAP_GROWSDOWN 0x0100
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define POSIX_MADV_NORMAL 0 #define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1 #define POSIX_MADV_RANDOM 1
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#define MAP_ANON 0x20 #define MAP_ANON 0x20
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_NORESERVE 0x4000 #define MAP_NORESERVE 0x4000
#define MAP_GROWSDOWN 0x0100
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define POSIX_MADV_NORMAL 0 #define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1 #define POSIX_MADV_RANDOM 1
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#define MAP_ANON 0x800 #define MAP_ANON 0x800
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_NORESERVE 0x0400 #define MAP_NORESERVE 0x0400
#define MAP_GROWSDOWN 0x1000
#define MAP_DENYWRITE 0x2000
#define MAP_EXECUTABLE 0x4000
#define MAP_LOCKED 0x8000
#define POSIX_MADV_NORMAL 0 #define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1 #define POSIX_MADV_RANDOM 1
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#define MAP_ANON 0x20 #define MAP_ANON 0x20
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_NORESERVE 0x40 #define MAP_NORESERVE 0x40
#define MAP_GROWSDOWN 0x0100
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x80
#define POSIX_MADV_NORMAL 0 #define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1 #define POSIX_MADV_RANDOM 1
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
#define MAP_ANONYMOUS MAP_ANON #define MAP_ANONYMOUS MAP_ANON
#define MAP_32BIT 0x40 #define MAP_32BIT 0x40
#define MAP_NORESERVE 0x4000 #define MAP_NORESERVE 0x4000
#define MAP_GROWSDOWN 0x0100
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define POSIX_MADV_NORMAL 0 #define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1 #define POSIX_MADV_RANDOM 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册