123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #ifndef _SYS_MMAN_H
- # error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
- #endif
- #define PROT_READ 0x1
- #define PROT_WRITE 0x2
- #define PROT_EXEC 0x4
- #define PROT_NONE 0x0
- #define PROT_GROWSDOWN 0x01000000
- #define PROT_GROWSUP 0x02000000
- #define MAP_SHARED 0x01
- #define MAP_PRIVATE 0x02
- #ifdef __USE_MISC
- # define MAP_TYPE 0x0f
- #endif
- #define MAP_FIXED 0x10
- #ifdef __USE_MISC
- # define MAP_FILE 0
- # define MAP_ANONYMOUS 0x20
- # define MAP_ANON MAP_ANONYMOUS
- # define MAP_32BIT 0x40
- #endif
- #ifdef __USE_MISC
- # define MAP_GROWSDOWN 0x00100
- # define MAP_DENYWRITE 0x00800
- # define MAP_EXECUTABLE 0x01000
- # define MAP_LOCKED 0x02000
- # define MAP_NORESERVE 0x04000
- # define MAP_POPULATE 0x08000
- # define MAP_NONBLOCK 0x10000
- #endif
- #define MS_ASYNC 1
- #define MS_SYNC 4
- #define MS_INVALIDATE 2
- #define MCL_CURRENT 1
- #define MCL_FUTURE 2
- #ifdef __USE_GNU
- # define MREMAP_MAYMOVE 1
- # define MREMAP_FIXED 2
- #endif
- #ifdef __USE_BSD
- # define MADV_NORMAL 0
- # define MADV_RANDOM 1
- # define MADV_SEQUENTIAL 2
- # define MADV_WILLNEED 3
- # define MADV_DONTNEED 4
- # define MADV_REMOVE 9
- # define MADV_DONTFORK 10
- # define MADV_DOFORK 11
- #endif
- #ifdef __USE_XOPEN2K
- # define POSIX_MADV_NORMAL 0
- # define POSIX_MADV_RANDOM 1
- # define POSIX_MADV_SEQUENTIAL 2
- # define POSIX_MADV_WILLNEED 3
- # define POSIX_MADV_DONTNEED 4
- #endif
|