• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1MAP_SHARED
2MAP_PRIVATE
3MAP_SHARED_VALIDATE
4MAP_FIXED
5MAP_ANONYMOUS
6MAP_32BIT
7MAP_RENAME
8MAP_NORESERVE
9MAP_POPULATE
10MAP_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
39MAP_GROWSDOWN
40MAP_DENYWRITE
41MAP_EXECUTABLE
42MAP_INHERIT
43MAP_FILE
44MAP_LOCKED
45/* FreeBSD ones */
46#if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
47MAP_ANON
48#endif
49MAP_HASSEMAPHORE
50MAP_STACK
51MAP_HUGETLB
52MAP_SYNC
53#if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
54MAP_UNINITIALIZED
55#endif
56MAP_NOSYNC
57MAP_NOCORE
58