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