blob: e9fde4402d7515ce9835847d394882b015bf3721 [file] [log] [blame]
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +00001MAP_SHARED
2MAP_PRIVATE
3MAP_FIXED
4MAP_ANONYMOUS
5MAP_32BIT
6MAP_RENAME
7MAP_NORESERVE
8MAP_POPULATE
9MAP_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
38MAP_GROWSDOWN
39MAP_DENYWRITE
40MAP_EXECUTABLE
41MAP_INHERIT
42MAP_FILE
43MAP_LOCKED
44/* FreeBSD ones */
Dmitry V. Levin63ebcfc2014-04-26 15:35:02 +000045#if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +000046MAP_ANON
Dmitry V. Levin63ebcfc2014-04-26 15:35:02 +000047#endif
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +000048MAP_HASSEMAPHORE
49MAP_STACK
50MAP_HUGETLB
Dmitry V. Levin63ebcfc2014-04-26 15:35:02 +000051#if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +000052MAP_UNINITIALIZED
Dmitry V. Levin63ebcfc2014-04-26 15:35:02 +000053#endif
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +000054MAP_NOSYNC
55MAP_NOCORE