]> granicus.if.org Git - strace/blob - xlat/mmap_flags.in
Add xlat/fiemap_flags.in and xlat/fiemap_extent_flags.in
[strace] / xlat / mmap_flags.in
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 */
45 #if defined(MAP_ANON) && (!defined(MAP_ANONYMOUS) || MAP_ANON != MAP_ANONYMOUS)
46 MAP_ANON
47 #endif
48 MAP_HASSEMAPHORE
49 MAP_STACK
50 MAP_HUGETLB
51 #if defined MAP_UNINITIALIZED && MAP_UNINITIALIZED > 0
52 MAP_UNINITIALIZED
53 #endif
54 MAP_NOSYNC
55 MAP_NOCORE