Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 1 | /* Generated by ./xlat/gen.sh from ./xlat/mmap_flags.in; do not edit. */ |
| 2 | |
| 3 | static const struct xlat mmap_flags[] = { |
| 4 | #if defined(MAP_SHARED) || (defined(HAVE_DECL_MAP_SHARED) && HAVE_DECL_MAP_SHARED) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 5 | XLAT(MAP_SHARED), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 6 | #endif |
| 7 | #if defined(MAP_PRIVATE) || (defined(HAVE_DECL_MAP_PRIVATE) && HAVE_DECL_MAP_PRIVATE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 8 | XLAT(MAP_PRIVATE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 9 | #endif |
| 10 | #if defined(MAP_FIXED) || (defined(HAVE_DECL_MAP_FIXED) && HAVE_DECL_MAP_FIXED) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 11 | XLAT(MAP_FIXED), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 12 | #endif |
| 13 | #if defined(MAP_ANONYMOUS) || (defined(HAVE_DECL_MAP_ANONYMOUS) && HAVE_DECL_MAP_ANONYMOUS) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 14 | XLAT(MAP_ANONYMOUS), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 15 | #endif |
| 16 | #if defined(MAP_32BIT) || (defined(HAVE_DECL_MAP_32BIT) && HAVE_DECL_MAP_32BIT) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 17 | XLAT(MAP_32BIT), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 18 | #endif |
| 19 | #if defined(MAP_RENAME) || (defined(HAVE_DECL_MAP_RENAME) && HAVE_DECL_MAP_RENAME) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 20 | XLAT(MAP_RENAME), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 21 | #endif |
| 22 | #if defined(MAP_NORESERVE) || (defined(HAVE_DECL_MAP_NORESERVE) && HAVE_DECL_MAP_NORESERVE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 23 | XLAT(MAP_NORESERVE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 24 | #endif |
| 25 | #if defined(MAP_POPULATE) || (defined(HAVE_DECL_MAP_POPULATE) && HAVE_DECL_MAP_POPULATE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 26 | XLAT(MAP_POPULATE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 27 | #endif |
| 28 | #if defined(MAP_NONBLOCK) || (defined(HAVE_DECL_MAP_NONBLOCK) && HAVE_DECL_MAP_NONBLOCK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 29 | XLAT(MAP_NONBLOCK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 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) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 59 | XLAT(_MAP_NEW), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 60 | #endif |
| 61 | #if defined(MAP_GROWSDOWN) || (defined(HAVE_DECL_MAP_GROWSDOWN) && HAVE_DECL_MAP_GROWSDOWN) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 62 | XLAT(MAP_GROWSDOWN), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 63 | #endif |
| 64 | #if defined(MAP_DENYWRITE) || (defined(HAVE_DECL_MAP_DENYWRITE) && HAVE_DECL_MAP_DENYWRITE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 65 | XLAT(MAP_DENYWRITE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 66 | #endif |
| 67 | #if defined(MAP_EXECUTABLE) || (defined(HAVE_DECL_MAP_EXECUTABLE) && HAVE_DECL_MAP_EXECUTABLE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 68 | XLAT(MAP_EXECUTABLE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 69 | #endif |
| 70 | #if defined(MAP_INHERIT) || (defined(HAVE_DECL_MAP_INHERIT) && HAVE_DECL_MAP_INHERIT) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 71 | XLAT(MAP_INHERIT), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 72 | #endif |
| 73 | #if defined(MAP_FILE) || (defined(HAVE_DECL_MAP_FILE) && HAVE_DECL_MAP_FILE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 74 | XLAT(MAP_FILE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 75 | #endif |
| 76 | #if defined(MAP_LOCKED) || (defined(HAVE_DECL_MAP_LOCKED) && HAVE_DECL_MAP_LOCKED) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 77 | XLAT(MAP_LOCKED), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 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) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 82 | XLAT(MAP_ANON), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 83 | #endif |
| 84 | #endif |
| 85 | #if defined(MAP_HASSEMAPHORE) || (defined(HAVE_DECL_MAP_HASSEMAPHORE) && HAVE_DECL_MAP_HASSEMAPHORE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 86 | XLAT(MAP_HASSEMAPHORE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 87 | #endif |
| 88 | #if defined(MAP_STACK) || (defined(HAVE_DECL_MAP_STACK) && HAVE_DECL_MAP_STACK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 89 | XLAT(MAP_STACK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 90 | #endif |
| 91 | #if defined(MAP_HUGETLB) || (defined(HAVE_DECL_MAP_HUGETLB) && HAVE_DECL_MAP_HUGETLB) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 92 | XLAT(MAP_HUGETLB), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 93 | #endif |
| 94 | #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0 |
| 95 | #if defined(MAP_UNINITIALIZED) || (defined(HAVE_DECL_MAP_UNINITIALIZED) && HAVE_DECL_MAP_UNINITIALIZED) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 96 | XLAT(MAP_UNINITIALIZED), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 97 | #endif |
| 98 | #endif |
| 99 | #if defined(MAP_NOSYNC) || (defined(HAVE_DECL_MAP_NOSYNC) && HAVE_DECL_MAP_NOSYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 100 | XLAT(MAP_NOSYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 101 | #endif |
| 102 | #if defined(MAP_NOCORE) || (defined(HAVE_DECL_MAP_NOCORE) && HAVE_DECL_MAP_NOCORE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 103 | XLAT(MAP_NOCORE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 104 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 105 | XLAT_END |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 106 | }; |