-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathconsts.go
48 lines (39 loc) · 1000 Bytes
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// ** This file is automatically generated from consts.c.txt **
// +build !windows
package gommap
type ProtFlags uint
const (
PROT_NONE ProtFlags = 0x0
PROT_READ ProtFlags = 0x1
PROT_WRITE ProtFlags = 0x2
PROT_EXEC ProtFlags = 0x4
)
type MapFlags uint
const (
MAP_SHARED MapFlags = 0x1
MAP_PRIVATE MapFlags = 0x2
MAP_FIXED MapFlags = 0x10
MAP_ANONYMOUS MapFlags = 0x20
MAP_GROWSDOWN MapFlags = 0x100
MAP_LOCKED MapFlags = 0x2000
MAP_NONBLOCK MapFlags = 0x10000
MAP_NORESERVE MapFlags = 0x4000
MAP_POPULATE MapFlags = 0x8000
)
type SyncFlags uint
const (
MS_SYNC SyncFlags = 0x4
MS_ASYNC SyncFlags = 0x1
MS_INVALIDATE SyncFlags = 0x2
)
type AdviseFlags uint
const (
MADV_NORMAL AdviseFlags = 0x0
MADV_RANDOM AdviseFlags = 0x1
MADV_SEQUENTIAL AdviseFlags = 0x2
MADV_WILLNEED AdviseFlags = 0x3
MADV_DONTNEED AdviseFlags = 0x4
MADV_REMOVE AdviseFlags = 0x9
MADV_DONTFORK AdviseFlags = 0xa
MADV_DOFORK AdviseFlags = 0xb
)