Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: fusl/arch/x32/bits/mman.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/arch/x32/bits/limits.h ('k') | fusl/arch/x32/bits/msg.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #define MAP_FAILED ((void *) -1)
2
3 #define PROT_NONE 0
4 #define PROT_READ 1
5 #define PROT_WRITE 2
6 #define PROT_EXEC 4
7 #define PROT_GROWSDOWN 0x01000000
8 #define PROT_GROWSUP 0x02000000
9
10 #define MAP_SHARED 0x01
11 #define MAP_PRIVATE 0x02
12 #define MAP_FIXED 0x10
13
14 #define MAP_TYPE 0x0f
15 #define MAP_FILE 0x00
16 #define MAP_ANON 0x20
17 #define MAP_ANONYMOUS MAP_ANON
18 #define MAP_32BIT 0x40
19 #define MAP_NORESERVE 0x4000
20 #define MAP_GROWSDOWN 0x0100
21 #define MAP_DENYWRITE 0x0800
22 #define MAP_EXECUTABLE 0x1000
23 #define MAP_LOCKED 0x2000
24 #define MAP_POPULATE 0x8000
25 #define MAP_NONBLOCK 0x10000
26 #define MAP_STACK 0x20000
27 #define MAP_HUGETLB 0x40000
28
29 #define POSIX_MADV_NORMAL 0
30 #define POSIX_MADV_RANDOM 1
31 #define POSIX_MADV_SEQUENTIAL 2
32 #define POSIX_MADV_WILLNEED 3
33 #define POSIX_MADV_DONTNEED 0
34
35 #define MS_ASYNC 1
36 #define MS_INVALIDATE 2
37 #define MS_SYNC 4
38
39 #define MCL_CURRENT 1
40 #define MCL_FUTURE 2
41
42 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
43 #define MADV_NORMAL 0
44 #define MADV_RANDOM 1
45 #define MADV_SEQUENTIAL 2
46 #define MADV_WILLNEED 3
47 #define MADV_DONTNEED 4
48 #define MADV_REMOVE 9
49 #define MADV_DONTFORK 10
50 #define MADV_DOFORK 11
51 #define MADV_MERGEABLE 12
52 #define MADV_UNMERGEABLE 13
53 #define MADV_HUGEPAGE 14
54 #define MADV_NOHUGEPAGE 15
55 #define MADV_DONTDUMP 16
56 #define MADV_DODUMP 17
57 #define MADV_HWPOISON 100
58 #define MADV_SOFT_OFFLINE 101
59 #endif
OLDNEW
« no previous file with comments | « fusl/arch/x32/bits/limits.h ('k') | fusl/arch/x32/bits/msg.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698