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