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