mirror of
git://git.musl-libc.org/musl
synced 2024-12-14 18:55:23 +00:00
9b57db3f95
for synchronous page faults, new in linux commit 1c9725974074a047f6080eecc62c50a8e840d050 and b6fb293f2497a9841d94f6b57bd2bb2cd222da43 note that only targets that use asm-generic/mman.h have this new flag defined, so undef it on other targets (mips*, powerpc*).
26 lines
596 B
C
26 lines
596 B
C
#undef MAP_ANON
|
|
#define MAP_ANON 0x800
|
|
#undef MAP_NORESERVE
|
|
#define MAP_NORESERVE 0x0400
|
|
#undef MAP_GROWSDOWN
|
|
#define MAP_GROWSDOWN 0x1000
|
|
#undef MAP_DENYWRITE
|
|
#define MAP_DENYWRITE 0x2000
|
|
#undef MAP_EXECUTABLE
|
|
#define MAP_EXECUTABLE 0x4000
|
|
#undef MAP_LOCKED
|
|
#define MAP_LOCKED 0x8000
|
|
#undef MAP_POPULATE
|
|
#define MAP_POPULATE 0x10000
|
|
#undef MAP_NONBLOCK
|
|
#define MAP_NONBLOCK 0x20000
|
|
#undef MAP_STACK
|
|
#define MAP_STACK 0x40000
|
|
#undef MAP_HUGETLB
|
|
#define MAP_HUGETLB 0x80000
|
|
#undef MAP_SYNC
|
|
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
#undef MADV_SOFT_OFFLINE
|
|
#endif
|