• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* Generated by maint/gen_xlat_defs.sh -f '#x' -p '_?MAP_' -c 'asm-generic/mman*.h' -a 'asm/mman.h' */
2
3MAP_SHARED	0x1
4
5MAP_PRIVATE	0x2
6
7MAP_SHARED_VALIDATE	0x3
8
9#if defined __hppa__
10MAP_FIXED	0x4
11#elif defined __alpha__
12MAP_FIXED	0x100
13#else
14MAP_FIXED	0x10
15#endif
16
17#if defined __alpha__ || defined __hppa__
18MAP_ANONYMOUS	0x10
19#elif defined __mips__ || defined __xtensa__
20MAP_ANONYMOUS	0x800
21#else
22MAP_ANONYMOUS	0x20
23#endif
24
25#if defined __x86_64__ || defined __i386__
26MAP_32BIT	0x40
27#else
28MAP_32BIT
29#endif
30
31#if defined MAP_RENAME && MAP_RENAME == MAP_ANONYMOUS  /* MAP_RENAME is unusual */
32# ifndef STRACE_WORKAROUND_FOR_MAP_RENAME
33# define STRACE_WORKAROUND_FOR_MAP_RENAME
34/* glibc erroneously defines MAP_RENAME to MAP_ANONYMOUS on some architectures.  */
35/* This is just wrong and has to be fixed.  */
36# undef MAP_RENAME
37# endif
38#endif /* MAP_RENAME */
39
40#if defined __mips__ || defined __xtensa__
41MAP_RENAME	0x20
42#else
43MAP_RENAME
44#endif
45
46#if defined __powerpc__ || defined __sparc__
47MAP_NORESERVE	0x40
48#elif defined __mips__ || defined __xtensa__
49MAP_NORESERVE	0x400
50#elif defined __alpha__
51MAP_NORESERVE	0x10000
52#else
53MAP_NORESERVE	0x4000
54#endif
55
56#if defined __hppa__ || defined __mips__ || defined __xtensa__
57MAP_POPULATE	0x10000
58#elif defined __alpha__
59MAP_POPULATE	0x20000
60#else
61MAP_POPULATE	0x8000
62#endif
63
64#if defined __hppa__ || defined __mips__ || defined __xtensa__
65MAP_NONBLOCK	0x20000
66#elif defined __alpha__
67MAP_NONBLOCK	0x40000
68#else
69MAP_NONBLOCK	0x10000
70#endif
71
72#if defined __sparc__
73_MAP_NEW	0x80000000
74#else
75_MAP_NEW
76#endif
77
78#if defined __sparc__
79MAP_GROWSDOWN	0x200
80#elif defined __alpha__ || defined __mips__ || defined __xtensa__
81MAP_GROWSDOWN	0x1000
82#elif defined __hppa__
83MAP_GROWSDOWN	0x8000
84#else
85MAP_GROWSDOWN	0x100
86#endif
87
88#if defined __ia64__
89MAP_GROWSUP	0x200
90#else
91MAP_GROWSUP
92#endif
93
94#if defined __alpha__ || defined __mips__ || defined __xtensa__
95MAP_DENYWRITE	0x2000
96#else
97MAP_DENYWRITE	0x800
98#endif
99
100#if defined __alpha__ || defined __mips__ || defined __xtensa__
101MAP_EXECUTABLE	0x4000
102#else
103MAP_EXECUTABLE	0x1000
104#endif
105
106#if defined __sparc__
107MAP_INHERIT	0x80
108#else
109MAP_INHERIT
110#endif
111
112#if defined __alpha__
113_MAP_INHERIT	0x400
114#else
115_MAP_INHERIT
116#endif
117
118MAP_FILE	0
119
120#if defined __powerpc__
121MAP_LOCKED	0x80
122#elif defined __sparc__
123MAP_LOCKED	0x100
124#elif defined __alpha__ || defined __mips__ || defined __xtensa__
125MAP_LOCKED	0x8000
126#else
127MAP_LOCKED	0x2000
128#endif
129
130#if defined __alpha__
131_MAP_HASSEMAPHORE	0x200
132#else
133_MAP_HASSEMAPHORE
134#endif
135
136#if defined __hppa__ || defined __mips__ || defined __xtensa__
137MAP_STACK	0x40000
138#elif defined __alpha__
139MAP_STACK	0x80000
140#else
141MAP_STACK	0x20000
142#endif
143
144#if defined __hppa__ || defined __mips__ || defined __xtensa__
145MAP_HUGETLB	0x80000
146#elif defined __alpha__
147MAP_HUGETLB	0x100000
148#else
149MAP_HUGETLB	0x40000
150#endif
151
152MAP_SYNC	0x80000
153
154# if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
155MAP_UNINITIALIZED
156# endif
157
158#if defined __alpha__
159MAP_FIXED_NOREPLACE	0x200000
160#else
161MAP_FIXED_NOREPLACE	0x100000
162#endif
163
164#if defined __mips__ || defined __xtensa__
165MAP_AUTOGROW	0x40
166#else
167MAP_AUTOGROW
168#endif
169
170#if defined __mips__ || defined __xtensa__
171MAP_AUTORSRV	0x100
172#else
173MAP_AUTORSRV
174#endif
175
176#if defined __mips__ || defined __xtensa__
177MAP_LOCAL	0x80
178#else
179MAP_LOCAL
180#endif
181
182#if defined __alpha__
183_MAP_UNALIGNED	0x800
184#else
185_MAP_UNALIGNED
186#endif
187