1 /* Generated by ./xlat/gen.sh from ./xlat/mmap_flags.in; do not edit. */
2 #if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
3 #endif
4 #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
5 #endif
6 
7 #ifdef IN_MPERS
8 
9 # error static const struct xlat mmap_flags in mpers mode
10 
11 #else
12 
13 static
14 const struct xlat mmap_flags[] = {
15 #if defined(MAP_SHARED) || (defined(HAVE_DECL_MAP_SHARED) && HAVE_DECL_MAP_SHARED)
16   XLAT(MAP_SHARED),
17 #endif
18 #if defined(MAP_PRIVATE) || (defined(HAVE_DECL_MAP_PRIVATE) && HAVE_DECL_MAP_PRIVATE)
19   XLAT(MAP_PRIVATE),
20 #endif
21 #if defined(MAP_SHARED_VALIDATE) || (defined(HAVE_DECL_MAP_SHARED_VALIDATE) && HAVE_DECL_MAP_SHARED_VALIDATE)
22   XLAT(MAP_SHARED_VALIDATE),
23 #endif
24 #if defined(MAP_FIXED) || (defined(HAVE_DECL_MAP_FIXED) && HAVE_DECL_MAP_FIXED)
25   XLAT(MAP_FIXED),
26 #endif
27 #if defined(MAP_ANONYMOUS) || (defined(HAVE_DECL_MAP_ANONYMOUS) && HAVE_DECL_MAP_ANONYMOUS)
28   XLAT(MAP_ANONYMOUS),
29 #endif
30 #if defined(MAP_32BIT) || (defined(HAVE_DECL_MAP_32BIT) && HAVE_DECL_MAP_32BIT)
31   XLAT(MAP_32BIT),
32 #endif
33 #if defined(MAP_RENAME) || (defined(HAVE_DECL_MAP_RENAME) && HAVE_DECL_MAP_RENAME)
34   XLAT(MAP_RENAME),
35 #endif
36 #if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE)
37   XLAT(MAP_NORESERVE),
38 #endif
39 #if defined(MAP_POPULATE) || (defined(HAVE_DECL_MAP_POPULATE) && HAVE_DECL_MAP_POPULATE)
40   XLAT(MAP_POPULATE),
41 #endif
42 #if defined(MAP_NONBLOCK) || (defined(HAVE_DECL_MAP_NONBLOCK) && HAVE_DECL_MAP_NONBLOCK)
43   XLAT(MAP_NONBLOCK),
44 #endif
45 /*
46 * XXX - this was introduced in SunOS 4.x to distinguish between
47 * the old pre-4.x "mmap()", which:
48 *
49 *	only let you map devices with an "mmap" routine (e.g.,
50 *	frame buffers) in;
51 *
52 *	required you to specify the mapping address;
53 *
54 *	returned 0 on success and -1 on failure;
55 *
56 * memory and which, and the 4.x "mmap()" which:
57 *
58 *	can map plain files;
59 *
60 *	can be asked to pick where to map the file;
61 *
62 *	returns the address where it mapped the file on success
63 *	and -1 on failure.
64 *
65 * It's not actually used in source code that calls "mmap()"; the
66 * "mmap()" routine adds it for you.
67 *
68 * It'd be nice to come up with some way of eliminating it from
69 * the flags, e.g. reporting calls *without* it as "old_mmap()"
70 * and calls with it as "mmap()".
71 */
72 #if defined(_MAP_NEW) || (defined(HAVE_DECL__MAP_NEW) && HAVE_DECL__MAP_NEW)
73   XLAT(_MAP_NEW),
74 #endif
75 #if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN)
76   XLAT(MAP_GROWSDOWN),
77 #endif
78 #if defined(MAP_DENYWRITE) || (defined(HAVE_DECL_MAP_DENYWRITE) && HAVE_DECL_MAP_DENYWRITE)
79   XLAT(MAP_DENYWRITE),
80 #endif
81 #if defined(MAP_EXECUTABLE) || (defined(HAVE_DECL_MAP_EXECUTABLE) && HAVE_DECL_MAP_EXECUTABLE)
82   XLAT(MAP_EXECUTABLE),
83 #endif
84 #if defined(MAP_INHERIT) || (defined(HAVE_DECL_MAP_INHERIT) && HAVE_DECL_MAP_INHERIT)
85   XLAT(MAP_INHERIT),
86 #endif
87 #if defined(MAP_FILE) || (defined(HAVE_DECL_MAP_FILE) && HAVE_DECL_MAP_FILE)
88   XLAT(MAP_FILE),
89 #endif
90 #if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED)
91   XLAT(MAP_LOCKED),
92 #endif
93 
94 #if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
95 #if defined(MAP_ANON) || (defined(HAVE_DECL_MAP_ANON) && HAVE_DECL_MAP_ANON)
96   XLAT(MAP_ANON),
97 #endif
98 #endif
99 #if defined(MAP_HASSEMAPHORE) || (defined(HAVE_DECL_MAP_HASSEMAPHORE) && HAVE_DECL_MAP_HASSEMAPHORE)
100   XLAT(MAP_HASSEMAPHORE),
101 #endif
102 #if defined(MAP_STACK) || (defined(HAVE_DECL_MAP_STACK) && HAVE_DECL_MAP_STACK)
103   XLAT(MAP_STACK),
104 #endif
105 #if defined(MAP_HUGETLB) || (defined(HAVE_DECL_MAP_HUGETLB) && HAVE_DECL_MAP_HUGETLB)
106   XLAT(MAP_HUGETLB),
107 #endif
108 #if defined(MAP_SYNC) || (defined(HAVE_DECL_MAP_SYNC) && HAVE_DECL_MAP_SYNC)
109   XLAT(MAP_SYNC),
110 #endif
111 #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
112 #if defined(MAP_UNINITIALIZED) || (defined(HAVE_DECL_MAP_UNINITIALIZED) && HAVE_DECL_MAP_UNINITIALIZED)
113   XLAT(MAP_UNINITIALIZED),
114 #endif
115 #endif
116 #if defined(MAP_NOSYNC) || (defined(HAVE_DECL_MAP_NOSYNC) && HAVE_DECL_MAP_NOSYNC)
117   XLAT(MAP_NOSYNC),
118 #endif
119 #if defined(MAP_NOCORE) || (defined(HAVE_DECL_MAP_NOCORE) && HAVE_DECL_MAP_NOCORE)
120   XLAT(MAP_NOCORE),
121 #endif
122  XLAT_END
123 };
124 
125 #endif /* !IN_MPERS */
126