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

Side by Side Diff: fusl/arch/or1k/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/or1k/bits/limits.h ('k') | fusl/arch/or1k/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_NORESERVE 0x4000
19 #define MAP_GROWSDOWN 0x0100
20 #define MAP_DENYWRITE 0x0800
21 #define MAP_EXECUTABLE 0x1000
22 #define MAP_LOCKED 0x2000
23 #define MAP_POPULATE 0x8000
24 #define MAP_NONBLOCK 0x10000
25 #define MAP_STACK 0x20000
26 #define MAP_HUGETLB 0x40000
27
28 #define POSIX_MADV_NORMAL 0
29 #define POSIX_MADV_RANDOM 1
30 #define POSIX_MADV_SEQUENTIAL 2
31 #define POSIX_MADV_WILLNEED 3
32 #define POSIX_MADV_DONTNEED 0
33
34 #define MS_ASYNC 1
35 #define MS_INVALIDATE 2
36 #define MS_SYNC 4
37
38 #define MCL_CURRENT 1
39 #define MCL_FUTURE 2
40
41 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
42 #define MADV_NORMAL 0
43 #define MADV_RANDOM 1
44 #define MADV_SEQUENTIAL 2
45 #define MADV_WILLNEED 3
46 #define MADV_DONTNEED 4
47 #define MADV_REMOVE 9
48 #define MADV_DONTFORK 10
49 #define MADV_DOFORK 11
50 #define MADV_MERGEABLE 12
51 #define MADV_UNMERGEABLE 13
52 #define MADV_HUGEPAGE 14
53 #define MADV_NOHUGEPAGE 15
54 #define MADV_DONTDUMP 16
55 #define MADV_DODUMP 17
56 #define MADV_HWPOISON 100
57 #define MADV_SOFT_OFFLINE 101
58 #endif
OLDNEW
« no previous file with comments | « fusl/arch/or1k/bits/limits.h ('k') | fusl/arch/or1k/bits/msg.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698