Blame arch/nt32/bits/mman.h

20a5ca
#define MAP_FAILED ((void *) -1)
20a5ca
20a5ca
#define	PROT_NONE      0
20a5ca
#define	PROT_READ      1
20a5ca
#define	PROT_WRITE     2
20a5ca
#define	PROT_EXEC      4
20a5ca
#define	PROT_GROWSDOWN 0x01000000
20a5ca
#define	PROT_GROWSUP   0x02000000
20a5ca
20a5ca
#define	MAP_SHARED     0x01
20a5ca
#define	MAP_PRIVATE    0x02
20a5ca
#define	MAP_FIXED      0x10
20a5ca
20a5ca
#define MAP_TYPE       0x0f
20a5ca
#define MAP_FILE       0x00
20a5ca
#define MAP_ANON       0x20
20a5ca
#define MAP_ANONYMOUS  MAP_ANON
20a5ca
#define MAP_32BIT      0x40
20a5ca
#define MAP_NORESERVE  0x4000
20a5ca
#define MAP_GROWSDOWN  0x0100
20a5ca
#define MAP_DENYWRITE  0x0800
20a5ca
#define MAP_EXECUTABLE 0x1000
20a5ca
#define MAP_LOCKED     0x2000
20a5ca
#define MAP_POPULATE   0x8000
20a5ca
#define MAP_NONBLOCK   0x10000
20a5ca
#define MAP_STACK      0x20000
20a5ca
#define MAP_HUGETLB    0x40000
20a5ca
20a5ca
#define POSIX_MADV_NORMAL       0
20a5ca
#define POSIX_MADV_RANDOM       1
20a5ca
#define POSIX_MADV_SEQUENTIAL   2
20a5ca
#define POSIX_MADV_WILLNEED     3
20a5ca
#define POSIX_MADV_DONTNEED     0
20a5ca
20a5ca
#define MS_ASYNC        1
20a5ca
#define MS_INVALIDATE   2
20a5ca
#define MS_SYNC         4
20a5ca
20a5ca
#define MCL_CURRENT     1
20a5ca
#define MCL_FUTURE      2
20a5ca
20a5ca
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
20a5ca
#define MADV_NORMAL      0
20a5ca
#define MADV_RANDOM      1
20a5ca
#define MADV_SEQUENTIAL  2
20a5ca
#define MADV_WILLNEED    3
20a5ca
#define MADV_DONTNEED    4
20a5ca
#define MADV_REMOVE      9
20a5ca
#define MADV_DONTFORK    10
20a5ca
#define MADV_DOFORK      11
20a5ca
#define MADV_MERGEABLE   12
20a5ca
#define MADV_UNMERGEABLE 13
20a5ca
#define MADV_HUGEPAGE    14
20a5ca
#define MADV_NOHUGEPAGE  15
20a5ca
#define MADV_DONTDUMP    16
20a5ca
#define MADV_DODUMP      17
20a5ca
#define MADV_HWPOISON    100
20a5ca
#define MADV_SOFT_OFFLINE 101
20a5ca
#endif