blob: 3b9c3d85c16a85d04e2a57354d1b61d81c8e824f [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)
Elliott Hughes0328d0a2015-03-18 11:18:43 -07005 XLAT(MAP_SHARED),
Elliott Hughes82728372014-06-06 22:49:31 -07006#endif
7#if defined(MAP_PRIVATE) || (defined(HAVE_DECL_MAP_PRIVATE) && HAVE_DECL_MAP_PRIVATE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -07008 XLAT(MAP_PRIVATE),
Elliott Hughes82728372014-06-06 22:49:31 -07009#endif
10#if defined(MAP_FIXED) || (defined(HAVE_DECL_MAP_FIXED) && HAVE_DECL_MAP_FIXED)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070011 XLAT(MAP_FIXED),
Elliott Hughes82728372014-06-06 22:49:31 -070012#endif
13#if defined(MAP_ANONYMOUS) || (defined(HAVE_DECL_MAP_ANONYMOUS) && HAVE_DECL_MAP_ANONYMOUS)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070014 XLAT(MAP_ANONYMOUS),
Elliott Hughes82728372014-06-06 22:49:31 -070015#endif
16#if defined(MAP_32BIT) || (defined(HAVE_DECL_MAP_32BIT) && HAVE_DECL_MAP_32BIT)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070017 XLAT(MAP_32BIT),
Elliott Hughes82728372014-06-06 22:49:31 -070018#endif
19#if defined(MAP_RENAME) || (defined(HAVE_DECL_MAP_RENAME) && HAVE_DECL_MAP_RENAME)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070020 XLAT(MAP_RENAME),
Elliott Hughes82728372014-06-06 22:49:31 -070021#endif
22#if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070023 XLAT(MAP_NORESERVE),
Elliott Hughes82728372014-06-06 22:49:31 -070024#endif
25#if defined(MAP_POPULATE) || (defined(HAVE_DECL_MAP_POPULATE) && HAVE_DECL_MAP_POPULATE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070026 XLAT(MAP_POPULATE),
Elliott Hughes82728372014-06-06 22:49:31 -070027#endif
28#if defined(MAP_NONBLOCK) || (defined(HAVE_DECL_MAP_NONBLOCK) && HAVE_DECL_MAP_NONBLOCK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070029 XLAT(MAP_NONBLOCK),
Elliott Hughes82728372014-06-06 22:49:31 -070030#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)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070059 XLAT(_MAP_NEW),
Elliott Hughes82728372014-06-06 22:49:31 -070060#endif
61#if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070062 XLAT(MAP_GROWSDOWN),
Elliott Hughes82728372014-06-06 22:49:31 -070063#endif
64#if defined(MAP_DENYWRITE) || (defined(HAVE_DECL_MAP_DENYWRITE) && HAVE_DECL_MAP_DENYWRITE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070065 XLAT(MAP_DENYWRITE),
Elliott Hughes82728372014-06-06 22:49:31 -070066#endif
67#if defined(MAP_EXECUTABLE) || (defined(HAVE_DECL_MAP_EXECUTABLE) && HAVE_DECL_MAP_EXECUTABLE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070068 XLAT(MAP_EXECUTABLE),
Elliott Hughes82728372014-06-06 22:49:31 -070069#endif
70#if defined(MAP_INHERIT) || (defined(HAVE_DECL_MAP_INHERIT) && HAVE_DECL_MAP_INHERIT)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070071 XLAT(MAP_INHERIT),
Elliott Hughes82728372014-06-06 22:49:31 -070072#endif
73#if defined(MAP_FILE) || (defined(HAVE_DECL_MAP_FILE) && HAVE_DECL_MAP_FILE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070074 XLAT(MAP_FILE),
Elliott Hughes82728372014-06-06 22:49:31 -070075#endif
76#if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070077 XLAT(MAP_LOCKED),
Elliott Hughes82728372014-06-06 22:49:31 -070078#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)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070082 XLAT(MAP_ANON),
Elliott Hughes82728372014-06-06 22:49:31 -070083#endif
84#endif
85#if defined(MAP_HASSEMAPHORE) || (defined(HAVE_DECL_MAP_HASSEMAPHORE) && HAVE_DECL_MAP_HASSEMAPHORE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070086 XLAT(MAP_HASSEMAPHORE),
Elliott Hughes82728372014-06-06 22:49:31 -070087#endif
88#if defined(MAP_STACK) || (defined(HAVE_DECL_MAP_STACK) && HAVE_DECL_MAP_STACK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070089 XLAT(MAP_STACK),
Elliott Hughes82728372014-06-06 22:49:31 -070090#endif
91#if defined(MAP_HUGETLB) || (defined(HAVE_DECL_MAP_HUGETLB) && HAVE_DECL_MAP_HUGETLB)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070092 XLAT(MAP_HUGETLB),
Elliott Hughes82728372014-06-06 22:49:31 -070093#endif
94#if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
95#if defined(MAP_UNINITIALIZED) || (defined(HAVE_DECL_MAP_UNINITIALIZED) && HAVE_DECL_MAP_UNINITIALIZED)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070096 XLAT(MAP_UNINITIALIZED),
Elliott Hughes82728372014-06-06 22:49:31 -070097#endif
98#endif
99#if defined(MAP_NOSYNC) || (defined(HAVE_DECL_MAP_NOSYNC) && HAVE_DECL_MAP_NOSYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700100 XLAT(MAP_NOSYNC),
Elliott Hughes82728372014-06-06 22:49:31 -0700101#endif
102#if defined(MAP_NOCORE) || (defined(HAVE_DECL_MAP_NOCORE) && HAVE_DECL_MAP_NOCORE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700103 XLAT(MAP_NOCORE),
Elliott Hughes82728372014-06-06 22:49:31 -0700104#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700105 XLAT_END
Elliott Hughes82728372014-06-06 22:49:31 -0700106};