~ubuntu-branches/ubuntu/trusty/musl/trusty-proposed

« back to all changes in this revision

Viewing changes to arch/i386/bits/mman.h

  • Committer: Package Import Robot
  • Author(s): Kevin Bortis
  • Date: 2013-09-20 20:54:14 UTC
  • Revision ID: package-import@ubuntu.com-20130920205414-5b61trtmma18w58o
Tags: upstream-0.9.13
ImportĀ upstreamĀ versionĀ 0.9.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define MAP_FAILED ((void *) -1)
 
2
 
 
3
#define PROT_NONE      0
 
4
#define PROT_READ      1
 
5
#define PROT_WRITE     2
 
6
#define PROT_EXEC      4
 
7
#define PROT_GROWSDOWN 0x01000000
 
8
#define PROT_GROWSUP   0x02000000
 
9
 
 
10
#define MAP_SHARED     0x01
 
11
#define MAP_PRIVATE    0x02
 
12
#define MAP_FIXED      0x10
 
13
 
 
14
#define MAP_TYPE       0x0f
 
15
#define MAP_FILE       0x00
 
16
#define MAP_ANON       0x20
 
17
#define MAP_ANONYMOUS  MAP_ANON
 
18
#define MAP_32BIT      0x40
 
19
#define MAP_NORESERVE  0x4000
 
20
#define MAP_GROWSDOWN  0x0100
 
21
#define MAP_DENYWRITE  0x0800
 
22
#define MAP_EXECUTABLE 0x1000
 
23
#define MAP_LOCKED     0x2000
 
24
#define MAP_POPULATE   0x8000
 
25
#define MAP_NONBLOCK   0x10000
 
26
#define MAP_STACK      0x20000
 
27
#define MAP_HUGETLB    0x40000
 
28
 
 
29
#define POSIX_MADV_NORMAL       0
 
30
#define POSIX_MADV_RANDOM       1
 
31
#define POSIX_MADV_SEQUENTIAL   2
 
32
#define POSIX_MADV_WILLNEED     3
 
33
#define POSIX_MADV_DONTNEED     0
 
34
 
 
35
#define MS_ASYNC        1
 
36
#define MS_INVALIDATE   2
 
37
#define MS_SYNC         4
 
38
 
 
39
#define MCL_CURRENT     1
 
40
#define MCL_FUTURE      2
 
41
 
 
42
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 
43
#define MADV_NORMAL      0
 
44
#define MADV_RANDOM      1
 
45
#define MADV_SEQUENTIAL  2
 
46
#define MADV_WILLNEED    3
 
47
#define MADV_DONTNEED    4
 
48
#define MADV_REMOVE      9
 
49
#define MADV_DONTFORK    10
 
50
#define MADV_DOFORK      11
 
51
#define MADV_MERGEABLE   12
 
52
#define MADV_UNMERGEABLE 13
 
53
#define MADV_HUGEPAGE    14
 
54
#define MADV_NOHUGEPAGE  15
 
55
#define MADV_DONTDUMP    16
 
56
#define MADV_DODUMP      17
 
57
#define MADV_HWPOISON    100
 
58
#define MADV_SOFT_OFFLINE 101
 
59
 
 
60
#define MREMAP_MAYMOVE  1
 
61
#define MREMAP_FIXED    2
 
62
#endif