1 MAP_SHARED 2 MAP_PRIVATE 3 MAP_SHARED_VALIDATE 4 MAP_FIXED 5 MAP_ANONYMOUS 6 MAP_32BIT 7 MAP_RENAME 8 MAP_NORESERVE 9 MAP_POPULATE 10 MAP_NONBLOCK 11 /* 12 * XXX - this was introduced in SunOS 4.x to distinguish between 13 * the old pre-4.x "mmap()", which: 14 * 15 * only let you map devices with an "mmap" routine (e.g., 16 * frame buffers) in; 17 * 18 * required you to specify the mapping address; 19 * 20 * returned 0 on success and -1 on failure; 21 * 22 * memory and which, and the 4.x "mmap()" which: 23 * 24 * can map plain files; 25 * 26 * can be asked to pick where to map the file; 27 * 28 * returns the address where it mapped the file on success 29 * and -1 on failure. 30 * 31 * It's not actually used in source code that calls "mmap()"; the 32 * "mmap()" routine adds it for you. 33 * 34 * It'd be nice to come up with some way of eliminating it from 35 * the flags, e.g. reporting calls *without* it as "old_mmap()" 36 * and calls with it as "mmap()". 37 */ 38 _MAP_NEW 39 MAP_GROWSDOWN 40 MAP_DENYWRITE 41 MAP_EXECUTABLE 42 MAP_INHERIT 43 MAP_FILE 44 MAP_LOCKED 45 /* FreeBSD ones */ 46 #if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS) 47 MAP_ANON 48 #endif 49 MAP_HASSEMAPHORE 50 MAP_STACK 51 MAP_HUGETLB 52 MAP_SYNC 53 #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0 54 MAP_UNINITIALIZED 55 #endif 56 MAP_NOSYNC 57 MAP_NOCORE 58