mirror of https://github.com/flysand7/ciabatta.git
44 lines
1008 B
C
44 lines
1008 B
C
|
|
#pragma once
|
|
|
|
#define MAP_32BIT 0x40
|
|
|
|
#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
|
|
#define MAP_SHARED_VALIDATE 0x03
|
|
#define MAP_TYPE 0x0f
|
|
|
|
#define MAP_FIXED 0x10
|
|
#define MAP_FILE 0
|
|
#define MAP_ANONYMOUS 0x20
|
|
#define MAP_ANON MAP_ANONYMOUS
|
|
#define MAP_HUGE_SHIFT 26
|
|
#define MAP_HUGE_MASK 0x3f
|
|
|
|
#define MS_ASYNC 1
|
|
#define MS_SYNC 4
|
|
#define MS_INVALIDATE 2
|
|
|
|
#define MAP_FAILED ((void *) -1)
|
|
|
|
#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
|
|
#define MAP_STACK 0x20000
|
|
#define MAP_HUGETLB 0x40000
|
|
#define MAP_SYNC 0x80000
|
|
#define MAP_FIXED_NOREPLACE 0x100000
|
|
|
|
|