1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef _SYS_MMAN_H
- # error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
- #endif
- #define __MAP_ANONYMOUS 0x10
- #ifdef __USE_MISC
- # define MAP_GROWSDOWN 0x01000
- # define MAP_DENYWRITE 0x02000
- # define MAP_EXECUTABLE 0x04000
- # define MAP_LOCKED 0x08000
- # define MAP_NORESERVE 0x10000
- # define MAP_POPULATE 0x20000
- # define MAP_NONBLOCK 0x40000
- # define MAP_STACK 0x80000
- # define MAP_HUGETLB 0x100000
- #endif
- #define MCL_CURRENT 8192
- #define MCL_FUTURE 16384
- #define MCL_ONFAULT 32768
- #include <bits/mman-linux.h>
- #undef MAP_FIXED
- #define MAP_FIXED 0x100
- #undef MS_SYNC
- #define MS_SYNC 2
- #undef MS_INVALIDATE
- #define MS_INVALIDATE 4
- #ifdef __USE_MISC
- # undef MADV_DONTNEED
- # define MADV_DONTNEED 6
- #endif
- #ifdef __USE_XOPEN2K
- # undef POSIX_MADV_DONTNEED
- # define POSIX_MADV_DONTNEED 6
- #endif
|