• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/mmap_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(MAP_SHARED) || (defined(HAVE_DECL_MAP_SHARED) && HAVE_DECL_MAP_SHARED)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((MAP_SHARED) == (0x1), "MAP_SHARED != 0x1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define MAP_SHARED 0x1
12 #endif
13 #if defined(MAP_PRIVATE) || (defined(HAVE_DECL_MAP_PRIVATE) && HAVE_DECL_MAP_PRIVATE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((MAP_PRIVATE) == (0x2), "MAP_PRIVATE != 0x2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define MAP_PRIVATE 0x2
19 #endif
20 #if defined(MAP_SHARED_VALIDATE) || (defined(HAVE_DECL_MAP_SHARED_VALIDATE) && HAVE_DECL_MAP_SHARED_VALIDATE)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((MAP_SHARED_VALIDATE) == (0x3), "MAP_SHARED_VALIDATE != 0x3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define MAP_SHARED_VALIDATE 0x3
26 #endif
27 #if defined __hppa__
28 #if defined(MAP_FIXED) || (defined(HAVE_DECL_MAP_FIXED) && HAVE_DECL_MAP_FIXED)
29 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
30 static_assert((MAP_FIXED) == (0x4), "MAP_FIXED != 0x4");
31 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
32 #else
33 # define MAP_FIXED 0x4
34 #endif
35 #elif defined __alpha__
36 #if defined(MAP_FIXED) || (defined(HAVE_DECL_MAP_FIXED) && HAVE_DECL_MAP_FIXED)
37 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
38 static_assert((MAP_FIXED) == (0x100), "MAP_FIXED != 0x100");
39 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
40 #else
41 # define MAP_FIXED 0x100
42 #endif
43 #else
44 #if defined(MAP_FIXED) || (defined(HAVE_DECL_MAP_FIXED) && HAVE_DECL_MAP_FIXED)
45 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
46 static_assert((MAP_FIXED) == (0x10), "MAP_FIXED != 0x10");
47 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
48 #else
49 # define MAP_FIXED 0x10
50 #endif
51 #endif
52 #if defined __alpha__ || defined __hppa__
53 #if defined(MAP_ANONYMOUS) || (defined(HAVE_DECL_MAP_ANONYMOUS) && HAVE_DECL_MAP_ANONYMOUS)
54 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
55 static_assert((MAP_ANONYMOUS) == (0x10), "MAP_ANONYMOUS != 0x10");
56 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
57 #else
58 # define MAP_ANONYMOUS 0x10
59 #endif
60 #elif defined __mips__ || defined __xtensa__
61 #if defined(MAP_ANONYMOUS) || (defined(HAVE_DECL_MAP_ANONYMOUS) && HAVE_DECL_MAP_ANONYMOUS)
62 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
63 static_assert((MAP_ANONYMOUS) == (0x800), "MAP_ANONYMOUS != 0x800");
64 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
65 #else
66 # define MAP_ANONYMOUS 0x800
67 #endif
68 #else
69 #if defined(MAP_ANONYMOUS) || (defined(HAVE_DECL_MAP_ANONYMOUS) && HAVE_DECL_MAP_ANONYMOUS)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((MAP_ANONYMOUS) == (0x20), "MAP_ANONYMOUS != 0x20");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define MAP_ANONYMOUS 0x20
75 #endif
76 #endif
77 #if defined __x86_64__ || defined __i386__
78 #if defined(MAP_32BIT) || (defined(HAVE_DECL_MAP_32BIT) && HAVE_DECL_MAP_32BIT)
79 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
80 static_assert((MAP_32BIT) == (0x40), "MAP_32BIT != 0x40");
81 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
82 #else
83 # define MAP_32BIT 0x40
84 #endif
85 #else
86 #endif
87 #if defined MAP_RENAME && MAP_RENAME == MAP_ANONYMOUS
88 # ifndef STRACE_WORKAROUND_FOR_MAP_RENAME
89 # define STRACE_WORKAROUND_FOR_MAP_RENAME
90 # undef MAP_RENAME
91 # endif
92 #endif
93 #if defined __mips__ || defined __xtensa__
94 #if defined(MAP_RENAME) || (defined(HAVE_DECL_MAP_RENAME) && HAVE_DECL_MAP_RENAME)
95 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
96 static_assert((MAP_RENAME) == (0x20), "MAP_RENAME != 0x20");
97 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
98 #else
99 # define MAP_RENAME 0x20
100 #endif
101 #else
102 #endif
103 #if defined __powerpc__ || defined __sparc__
104 #if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE)
105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
106 static_assert((MAP_NORESERVE) == (0x40), "MAP_NORESERVE != 0x40");
107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
108 #else
109 # define MAP_NORESERVE 0x40
110 #endif
111 #elif defined __mips__ || defined __xtensa__
112 #if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE)
113 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
114 static_assert((MAP_NORESERVE) == (0x400), "MAP_NORESERVE != 0x400");
115 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
116 #else
117 # define MAP_NORESERVE 0x400
118 #endif
119 #elif defined __alpha__
120 #if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE)
121 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
122 static_assert((MAP_NORESERVE) == (0x10000), "MAP_NORESERVE != 0x10000");
123 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
124 #else
125 # define MAP_NORESERVE 0x10000
126 #endif
127 #else
128 #if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE)
129 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
130 static_assert((MAP_NORESERVE) == (0x4000), "MAP_NORESERVE != 0x4000");
131 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
132 #else
133 # define MAP_NORESERVE 0x4000
134 #endif
135 #endif
136 #if defined __hppa__ || defined __mips__ || defined __xtensa__
137 #if defined(MAP_POPULATE) || (defined(HAVE_DECL_MAP_POPULATE) && HAVE_DECL_MAP_POPULATE)
138 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
139 static_assert((MAP_POPULATE) == (0x10000), "MAP_POPULATE != 0x10000");
140 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
141 #else
142 # define MAP_POPULATE 0x10000
143 #endif
144 #elif defined __alpha__
145 #if defined(MAP_POPULATE) || (defined(HAVE_DECL_MAP_POPULATE) && HAVE_DECL_MAP_POPULATE)
146 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
147 static_assert((MAP_POPULATE) == (0x20000), "MAP_POPULATE != 0x20000");
148 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
149 #else
150 # define MAP_POPULATE 0x20000
151 #endif
152 #else
153 #if defined(MAP_POPULATE) || (defined(HAVE_DECL_MAP_POPULATE) && HAVE_DECL_MAP_POPULATE)
154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
155 static_assert((MAP_POPULATE) == (0x8000), "MAP_POPULATE != 0x8000");
156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
157 #else
158 # define MAP_POPULATE 0x8000
159 #endif
160 #endif
161 #if defined __hppa__ || defined __mips__ || defined __xtensa__
162 #if defined(MAP_NONBLOCK) || (defined(HAVE_DECL_MAP_NONBLOCK) && HAVE_DECL_MAP_NONBLOCK)
163 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
164 static_assert((MAP_NONBLOCK) == (0x20000), "MAP_NONBLOCK != 0x20000");
165 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
166 #else
167 # define MAP_NONBLOCK 0x20000
168 #endif
169 #elif defined __alpha__
170 #if defined(MAP_NONBLOCK) || (defined(HAVE_DECL_MAP_NONBLOCK) && HAVE_DECL_MAP_NONBLOCK)
171 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
172 static_assert((MAP_NONBLOCK) == (0x40000), "MAP_NONBLOCK != 0x40000");
173 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
174 #else
175 # define MAP_NONBLOCK 0x40000
176 #endif
177 #else
178 #if defined(MAP_NONBLOCK) || (defined(HAVE_DECL_MAP_NONBLOCK) && HAVE_DECL_MAP_NONBLOCK)
179 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
180 static_assert((MAP_NONBLOCK) == (0x10000), "MAP_NONBLOCK != 0x10000");
181 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
182 #else
183 # define MAP_NONBLOCK 0x10000
184 #endif
185 #endif
186 #if defined __sparc__
187 #if defined(_MAP_NEW) || (defined(HAVE_DECL__MAP_NEW) && HAVE_DECL__MAP_NEW)
188 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
189 static_assert((_MAP_NEW) == (0x80000000), "_MAP_NEW != 0x80000000");
190 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
191 #else
192 # define _MAP_NEW 0x80000000
193 #endif
194 #else
195 #endif
196 #if defined __sparc__
197 #if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN)
198 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
199 static_assert((MAP_GROWSDOWN) == (0x200), "MAP_GROWSDOWN != 0x200");
200 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
201 #else
202 # define MAP_GROWSDOWN 0x200
203 #endif
204 #elif defined __alpha__ || defined __mips__ || defined __xtensa__
205 #if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN)
206 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
207 static_assert((MAP_GROWSDOWN) == (0x1000), "MAP_GROWSDOWN != 0x1000");
208 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
209 #else
210 # define MAP_GROWSDOWN 0x1000
211 #endif
212 #elif defined __hppa__
213 #if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN)
214 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
215 static_assert((MAP_GROWSDOWN) == (0x8000), "MAP_GROWSDOWN != 0x8000");
216 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
217 #else
218 # define MAP_GROWSDOWN 0x8000
219 #endif
220 #else
221 #if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN)
222 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
223 static_assert((MAP_GROWSDOWN) == (0x100), "MAP_GROWSDOWN != 0x100");
224 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
225 #else
226 # define MAP_GROWSDOWN 0x100
227 #endif
228 #endif
229 #if defined __ia64__
230 #if defined(MAP_GROWSUP) || (defined(HAVE_DECL_MAP_GROWSUP) && HAVE_DECL_MAP_GROWSUP)
231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
232 static_assert((MAP_GROWSUP) == (0x200), "MAP_GROWSUP != 0x200");
233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
234 #else
235 # define MAP_GROWSUP 0x200
236 #endif
237 #else
238 #endif
239 #if defined __alpha__ || defined __mips__ || defined __xtensa__
240 #if defined(MAP_DENYWRITE) || (defined(HAVE_DECL_MAP_DENYWRITE) && HAVE_DECL_MAP_DENYWRITE)
241 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
242 static_assert((MAP_DENYWRITE) == (0x2000), "MAP_DENYWRITE != 0x2000");
243 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
244 #else
245 # define MAP_DENYWRITE 0x2000
246 #endif
247 #else
248 #if defined(MAP_DENYWRITE) || (defined(HAVE_DECL_MAP_DENYWRITE) && HAVE_DECL_MAP_DENYWRITE)
249 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
250 static_assert((MAP_DENYWRITE) == (0x800), "MAP_DENYWRITE != 0x800");
251 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
252 #else
253 # define MAP_DENYWRITE 0x800
254 #endif
255 #endif
256 #if defined __alpha__ || defined __mips__ || defined __xtensa__
257 #if defined(MAP_EXECUTABLE) || (defined(HAVE_DECL_MAP_EXECUTABLE) && HAVE_DECL_MAP_EXECUTABLE)
258 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
259 static_assert((MAP_EXECUTABLE) == (0x4000), "MAP_EXECUTABLE != 0x4000");
260 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
261 #else
262 # define MAP_EXECUTABLE 0x4000
263 #endif
264 #else
265 #if defined(MAP_EXECUTABLE) || (defined(HAVE_DECL_MAP_EXECUTABLE) && HAVE_DECL_MAP_EXECUTABLE)
266 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
267 static_assert((MAP_EXECUTABLE) == (0x1000), "MAP_EXECUTABLE != 0x1000");
268 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
269 #else
270 # define MAP_EXECUTABLE 0x1000
271 #endif
272 #endif
273 #if defined __sparc__
274 #if defined(MAP_INHERIT) || (defined(HAVE_DECL_MAP_INHERIT) && HAVE_DECL_MAP_INHERIT)
275 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
276 static_assert((MAP_INHERIT) == (0x80), "MAP_INHERIT != 0x80");
277 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
278 #else
279 # define MAP_INHERIT 0x80
280 #endif
281 #else
282 #endif
283 #if defined __alpha__
284 #if defined(_MAP_INHERIT) || (defined(HAVE_DECL__MAP_INHERIT) && HAVE_DECL__MAP_INHERIT)
285 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
286 static_assert((_MAP_INHERIT) == (0x400), "_MAP_INHERIT != 0x400");
287 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
288 #else
289 # define _MAP_INHERIT 0x400
290 #endif
291 #else
292 #endif
293 #if defined(MAP_FILE) || (defined(HAVE_DECL_MAP_FILE) && HAVE_DECL_MAP_FILE)
294 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
295 static_assert((MAP_FILE) == (0), "MAP_FILE != 0");
296 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
297 #else
298 # define MAP_FILE 0
299 #endif
300 #if defined __powerpc__
301 #if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED)
302 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
303 static_assert((MAP_LOCKED) == (0x80), "MAP_LOCKED != 0x80");
304 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
305 #else
306 # define MAP_LOCKED 0x80
307 #endif
308 #elif defined __sparc__
309 #if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED)
310 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
311 static_assert((MAP_LOCKED) == (0x100), "MAP_LOCKED != 0x100");
312 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
313 #else
314 # define MAP_LOCKED 0x100
315 #endif
316 #elif defined __alpha__ || defined __mips__ || defined __xtensa__
317 #if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED)
318 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
319 static_assert((MAP_LOCKED) == (0x8000), "MAP_LOCKED != 0x8000");
320 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
321 #else
322 # define MAP_LOCKED 0x8000
323 #endif
324 #else
325 #if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED)
326 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
327 static_assert((MAP_LOCKED) == (0x2000), "MAP_LOCKED != 0x2000");
328 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
329 #else
330 # define MAP_LOCKED 0x2000
331 #endif
332 #endif
333 #if defined __alpha__
334 #if defined(_MAP_HASSEMAPHORE) || (defined(HAVE_DECL__MAP_HASSEMAPHORE) && HAVE_DECL__MAP_HASSEMAPHORE)
335 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
336 static_assert((_MAP_HASSEMAPHORE) == (0x200), "_MAP_HASSEMAPHORE != 0x200");
337 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
338 #else
339 # define _MAP_HASSEMAPHORE 0x200
340 #endif
341 #else
342 #endif
343 #if defined __hppa__ || defined __mips__ || defined __xtensa__
344 #if defined(MAP_STACK) || (defined(HAVE_DECL_MAP_STACK) && HAVE_DECL_MAP_STACK)
345 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
346 static_assert((MAP_STACK) == (0x40000), "MAP_STACK != 0x40000");
347 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
348 #else
349 # define MAP_STACK 0x40000
350 #endif
351 #elif defined __alpha__
352 #if defined(MAP_STACK) || (defined(HAVE_DECL_MAP_STACK) && HAVE_DECL_MAP_STACK)
353 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
354 static_assert((MAP_STACK) == (0x80000), "MAP_STACK != 0x80000");
355 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
356 #else
357 # define MAP_STACK 0x80000
358 #endif
359 #else
360 #if defined(MAP_STACK) || (defined(HAVE_DECL_MAP_STACK) && HAVE_DECL_MAP_STACK)
361 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
362 static_assert((MAP_STACK) == (0x20000), "MAP_STACK != 0x20000");
363 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
364 #else
365 # define MAP_STACK 0x20000
366 #endif
367 #endif
368 #if defined __hppa__ || defined __mips__ || defined __xtensa__
369 #if defined(MAP_HUGETLB) || (defined(HAVE_DECL_MAP_HUGETLB) && HAVE_DECL_MAP_HUGETLB)
370 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
371 static_assert((MAP_HUGETLB) == (0x80000), "MAP_HUGETLB != 0x80000");
372 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
373 #else
374 # define MAP_HUGETLB 0x80000
375 #endif
376 #elif defined __alpha__
377 #if defined(MAP_HUGETLB) || (defined(HAVE_DECL_MAP_HUGETLB) && HAVE_DECL_MAP_HUGETLB)
378 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
379 static_assert((MAP_HUGETLB) == (0x100000), "MAP_HUGETLB != 0x100000");
380 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
381 #else
382 # define MAP_HUGETLB 0x100000
383 #endif
384 #else
385 #if defined(MAP_HUGETLB) || (defined(HAVE_DECL_MAP_HUGETLB) && HAVE_DECL_MAP_HUGETLB)
386 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
387 static_assert((MAP_HUGETLB) == (0x40000), "MAP_HUGETLB != 0x40000");
388 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
389 #else
390 # define MAP_HUGETLB 0x40000
391 #endif
392 #endif
393 #if defined(MAP_SYNC) || (defined(HAVE_DECL_MAP_SYNC) && HAVE_DECL_MAP_SYNC)
394 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
395 static_assert((MAP_SYNC) == (0x80000), "MAP_SYNC != 0x80000");
396 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
397 #else
398 # define MAP_SYNC 0x80000
399 #endif
400 # if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
401 # endif
402 #if defined __alpha__
403 #if defined(MAP_FIXED_NOREPLACE) || (defined(HAVE_DECL_MAP_FIXED_NOREPLACE) && HAVE_DECL_MAP_FIXED_NOREPLACE)
404 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
405 static_assert((MAP_FIXED_NOREPLACE) == (0x200000), "MAP_FIXED_NOREPLACE != 0x200000");
406 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
407 #else
408 # define MAP_FIXED_NOREPLACE 0x200000
409 #endif
410 #else
411 #if defined(MAP_FIXED_NOREPLACE) || (defined(HAVE_DECL_MAP_FIXED_NOREPLACE) && HAVE_DECL_MAP_FIXED_NOREPLACE)
412 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
413 static_assert((MAP_FIXED_NOREPLACE) == (0x100000), "MAP_FIXED_NOREPLACE != 0x100000");
414 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
415 #else
416 # define MAP_FIXED_NOREPLACE 0x100000
417 #endif
418 #endif
419 #if defined __mips__ || defined __xtensa__
420 #if defined(MAP_AUTOGROW) || (defined(HAVE_DECL_MAP_AUTOGROW) && HAVE_DECL_MAP_AUTOGROW)
421 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
422 static_assert((MAP_AUTOGROW) == (0x40), "MAP_AUTOGROW != 0x40");
423 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
424 #else
425 # define MAP_AUTOGROW 0x40
426 #endif
427 #else
428 #endif
429 #if defined __mips__ || defined __xtensa__
430 #if defined(MAP_AUTORSRV) || (defined(HAVE_DECL_MAP_AUTORSRV) && HAVE_DECL_MAP_AUTORSRV)
431 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
432 static_assert((MAP_AUTORSRV) == (0x100), "MAP_AUTORSRV != 0x100");
433 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
434 #else
435 # define MAP_AUTORSRV 0x100
436 #endif
437 #else
438 #endif
439 #if defined __mips__ || defined __xtensa__
440 #if defined(MAP_LOCAL) || (defined(HAVE_DECL_MAP_LOCAL) && HAVE_DECL_MAP_LOCAL)
441 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
442 static_assert((MAP_LOCAL) == (0x80), "MAP_LOCAL != 0x80");
443 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
444 #else
445 # define MAP_LOCAL 0x80
446 #endif
447 #else
448 #endif
449 #if defined __alpha__
450 #if defined(_MAP_UNALIGNED) || (defined(HAVE_DECL__MAP_UNALIGNED) && HAVE_DECL__MAP_UNALIGNED)
451 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
452 static_assert((_MAP_UNALIGNED) == (0x800), "_MAP_UNALIGNED != 0x800");
453 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
454 #else
455 # define _MAP_UNALIGNED 0x800
456 #endif
457 #else
458 #endif
459 
460 #ifndef XLAT_MACROS_ONLY
461 
462 # ifdef IN_MPERS
463 
464 #  error static const struct xlat mmap_flags in mpers mode
465 
466 # else
467 
468 static
469 const struct xlat mmap_flags[] = {
470 
471 
472  XLAT(MAP_SHARED),
473 
474  XLAT(MAP_PRIVATE),
475 
476  XLAT(MAP_SHARED_VALIDATE),
477 
478 #if defined __hppa__
479  XLAT(MAP_FIXED),
480 #elif defined __alpha__
481  XLAT(MAP_FIXED),
482 #else
483  XLAT(MAP_FIXED),
484 #endif
485 
486 #if defined __alpha__ || defined __hppa__
487  XLAT(MAP_ANONYMOUS),
488 #elif defined __mips__ || defined __xtensa__
489  XLAT(MAP_ANONYMOUS),
490 #else
491  XLAT(MAP_ANONYMOUS),
492 #endif
493 
494 #if defined __x86_64__ || defined __i386__
495  XLAT(MAP_32BIT),
496 #else
497 #if defined(MAP_32BIT) || (defined(HAVE_DECL_MAP_32BIT) && HAVE_DECL_MAP_32BIT)
498   XLAT(MAP_32BIT),
499 #endif
500 #endif
501 
502 #if defined MAP_RENAME && MAP_RENAME == MAP_ANONYMOUS
503 # ifndef STRACE_WORKAROUND_FOR_MAP_RENAME
504 # define STRACE_WORKAROUND_FOR_MAP_RENAME
505 
506 
507 # undef MAP_RENAME
508 # endif
509 #endif
510 
511 #if defined __mips__ || defined __xtensa__
512  XLAT(MAP_RENAME),
513 #else
514 #if defined(MAP_RENAME) || (defined(HAVE_DECL_MAP_RENAME) && HAVE_DECL_MAP_RENAME)
515   XLAT(MAP_RENAME),
516 #endif
517 #endif
518 
519 #if defined __powerpc__ || defined __sparc__
520  XLAT(MAP_NORESERVE),
521 #elif defined __mips__ || defined __xtensa__
522  XLAT(MAP_NORESERVE),
523 #elif defined __alpha__
524  XLAT(MAP_NORESERVE),
525 #else
526  XLAT(MAP_NORESERVE),
527 #endif
528 
529 #if defined __hppa__ || defined __mips__ || defined __xtensa__
530  XLAT(MAP_POPULATE),
531 #elif defined __alpha__
532  XLAT(MAP_POPULATE),
533 #else
534  XLAT(MAP_POPULATE),
535 #endif
536 
537 #if defined __hppa__ || defined __mips__ || defined __xtensa__
538  XLAT(MAP_NONBLOCK),
539 #elif defined __alpha__
540  XLAT(MAP_NONBLOCK),
541 #else
542  XLAT(MAP_NONBLOCK),
543 #endif
544 
545 #if defined __sparc__
546  XLAT(_MAP_NEW),
547 #else
548 #if defined(_MAP_NEW) || (defined(HAVE_DECL__MAP_NEW) && HAVE_DECL__MAP_NEW)
549   XLAT(_MAP_NEW),
550 #endif
551 #endif
552 
553 #if defined __sparc__
554  XLAT(MAP_GROWSDOWN),
555 #elif defined __alpha__ || defined __mips__ || defined __xtensa__
556  XLAT(MAP_GROWSDOWN),
557 #elif defined __hppa__
558  XLAT(MAP_GROWSDOWN),
559 #else
560  XLAT(MAP_GROWSDOWN),
561 #endif
562 
563 #if defined __ia64__
564  XLAT(MAP_GROWSUP),
565 #else
566 #if defined(MAP_GROWSUP) || (defined(HAVE_DECL_MAP_GROWSUP) && HAVE_DECL_MAP_GROWSUP)
567   XLAT(MAP_GROWSUP),
568 #endif
569 #endif
570 
571 #if defined __alpha__ || defined __mips__ || defined __xtensa__
572  XLAT(MAP_DENYWRITE),
573 #else
574  XLAT(MAP_DENYWRITE),
575 #endif
576 
577 #if defined __alpha__ || defined __mips__ || defined __xtensa__
578  XLAT(MAP_EXECUTABLE),
579 #else
580  XLAT(MAP_EXECUTABLE),
581 #endif
582 
583 #if defined __sparc__
584  XLAT(MAP_INHERIT),
585 #else
586 #if defined(MAP_INHERIT) || (defined(HAVE_DECL_MAP_INHERIT) && HAVE_DECL_MAP_INHERIT)
587   XLAT(MAP_INHERIT),
588 #endif
589 #endif
590 
591 #if defined __alpha__
592  XLAT(_MAP_INHERIT),
593 #else
594 #if defined(_MAP_INHERIT) || (defined(HAVE_DECL__MAP_INHERIT) && HAVE_DECL__MAP_INHERIT)
595   XLAT(_MAP_INHERIT),
596 #endif
597 #endif
598 
599  XLAT(MAP_FILE),
600 
601 #if defined __powerpc__
602  XLAT(MAP_LOCKED),
603 #elif defined __sparc__
604  XLAT(MAP_LOCKED),
605 #elif defined __alpha__ || defined __mips__ || defined __xtensa__
606  XLAT(MAP_LOCKED),
607 #else
608  XLAT(MAP_LOCKED),
609 #endif
610 
611 #if defined __alpha__
612  XLAT(_MAP_HASSEMAPHORE),
613 #else
614 #if defined(_MAP_HASSEMAPHORE) || (defined(HAVE_DECL__MAP_HASSEMAPHORE) && HAVE_DECL__MAP_HASSEMAPHORE)
615   XLAT(_MAP_HASSEMAPHORE),
616 #endif
617 #endif
618 
619 #if defined __hppa__ || defined __mips__ || defined __xtensa__
620  XLAT(MAP_STACK),
621 #elif defined __alpha__
622  XLAT(MAP_STACK),
623 #else
624  XLAT(MAP_STACK),
625 #endif
626 
627 #if defined __hppa__ || defined __mips__ || defined __xtensa__
628  XLAT(MAP_HUGETLB),
629 #elif defined __alpha__
630  XLAT(MAP_HUGETLB),
631 #else
632  XLAT(MAP_HUGETLB),
633 #endif
634 
635  XLAT(MAP_SYNC),
636 
637 # if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
638 #if defined(MAP_UNINITIALIZED) || (defined(HAVE_DECL_MAP_UNINITIALIZED) && HAVE_DECL_MAP_UNINITIALIZED)
639   XLAT(MAP_UNINITIALIZED),
640 #endif
641 # endif
642 
643 #if defined __alpha__
644  XLAT(MAP_FIXED_NOREPLACE),
645 #else
646  XLAT(MAP_FIXED_NOREPLACE),
647 #endif
648 
649 #if defined __mips__ || defined __xtensa__
650  XLAT(MAP_AUTOGROW),
651 #else
652 #if defined(MAP_AUTOGROW) || (defined(HAVE_DECL_MAP_AUTOGROW) && HAVE_DECL_MAP_AUTOGROW)
653   XLAT(MAP_AUTOGROW),
654 #endif
655 #endif
656 
657 #if defined __mips__ || defined __xtensa__
658  XLAT(MAP_AUTORSRV),
659 #else
660 #if defined(MAP_AUTORSRV) || (defined(HAVE_DECL_MAP_AUTORSRV) && HAVE_DECL_MAP_AUTORSRV)
661   XLAT(MAP_AUTORSRV),
662 #endif
663 #endif
664 
665 #if defined __mips__ || defined __xtensa__
666  XLAT(MAP_LOCAL),
667 #else
668 #if defined(MAP_LOCAL) || (defined(HAVE_DECL_MAP_LOCAL) && HAVE_DECL_MAP_LOCAL)
669   XLAT(MAP_LOCAL),
670 #endif
671 #endif
672 
673 #if defined __alpha__
674  XLAT(_MAP_UNALIGNED),
675 #else
676 #if defined(_MAP_UNALIGNED) || (defined(HAVE_DECL__MAP_UNALIGNED) && HAVE_DECL__MAP_UNALIGNED)
677   XLAT(_MAP_UNALIGNED),
678 #endif
679 #endif
680  XLAT_END
681 };
682 
683 # endif /* !IN_MPERS */
684 
685 #endif /* !XLAT_MACROS_ONLY */
686