projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bc1a8d2
)
add missing mmap options and madvices to bits/mman.h based on linux headers
author
Szabolcs Nagy
<nsz@port70.net>
Fri, 11 Jan 2013 01:07:40 +0000
(
02:07
+0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Sat, 12 Jan 2013 18:42:39 +0000
(19:42 +0100)
arch/arm/bits/mman.h
patch
|
blob
|
history
arch/i386/bits/mman.h
patch
|
blob
|
history
arch/microblaze/bits/mman.h
patch
|
blob
|
history
arch/mips/bits/mman.h
patch
|
blob
|
history
arch/powerpc/bits/mman.h
patch
|
blob
|
history
arch/x86_64/bits/mman.h
patch
|
blob
|
history
diff --git
a/arch/arm/bits/mman.h
b/arch/arm/bits/mman.h
index
2f23d44
..
8c4110f
100644
(file)
--- a/
arch/arm/bits/mman.h
+++ b/
arch/arm/bits/mman.h
@@
-20,6
+20,10
@@
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
+#define MAP_POPULATE 0x8000
+#define MAP_NONBLOCK 0x10000
+#define MAP_STACK 0x20000
+#define MAP_HUGETLB 0x40000
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
@@
-47,7
+51,10
@@
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
#define MADV_HWPOISON 100
#define MADV_HWPOISON 100
+#define MADV_SOFT_OFFLINE 101
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
diff --git
a/arch/i386/bits/mman.h
b/arch/i386/bits/mman.h
index
4083c19
..
add6385
100644
(file)
--- a/
arch/i386/bits/mman.h
+++ b/
arch/i386/bits/mman.h
@@
-21,6
+21,10
@@
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
+#define MAP_POPULATE 0x8000
+#define MAP_NONBLOCK 0x10000
+#define MAP_STACK 0x20000
+#define MAP_HUGETLB 0x40000
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
@@
-48,7
+52,10
@@
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
#define MADV_HWPOISON 100
#define MADV_HWPOISON 100
+#define MADV_SOFT_OFFLINE 101
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
diff --git
a/arch/microblaze/bits/mman.h
b/arch/microblaze/bits/mman.h
index
2f23d44
..
8c4110f
100644
(file)
--- a/
arch/microblaze/bits/mman.h
+++ b/
arch/microblaze/bits/mman.h
@@
-20,6
+20,10
@@
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
+#define MAP_POPULATE 0x8000
+#define MAP_NONBLOCK 0x10000
+#define MAP_STACK 0x20000
+#define MAP_HUGETLB 0x40000
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
@@
-47,7
+51,10
@@
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
#define MADV_HWPOISON 100
#define MADV_HWPOISON 100
+#define MADV_SOFT_OFFLINE 101
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
diff --git
a/arch/mips/bits/mman.h
b/arch/mips/bits/mman.h
index
3e6faa4
..
ac8dd5e
100644
(file)
--- a/
arch/mips/bits/mman.h
+++ b/
arch/mips/bits/mman.h
@@
-20,6
+20,10
@@
#define MAP_DENYWRITE 0x2000
#define MAP_EXECUTABLE 0x4000
#define MAP_LOCKED 0x8000
#define MAP_DENYWRITE 0x2000
#define MAP_EXECUTABLE 0x4000
#define MAP_LOCKED 0x8000
+#define MAP_POPULATE 0x10000
+#define MAP_NONBLOCK 0x20000
+#define MAP_STACK 0x40000
+#define MAP_HUGETLB 0x80000
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
@@
-47,6
+51,8
@@
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
#define MADV_HWPOISON 100
#define MREMAP_MAYMOVE 1
#define MADV_HWPOISON 100
#define MREMAP_MAYMOVE 1
diff --git
a/arch/powerpc/bits/mman.h
b/arch/powerpc/bits/mman.h
index
0c6cc32
..
15e3049
100644
(file)
--- a/
arch/powerpc/bits/mman.h
+++ b/
arch/powerpc/bits/mman.h
@@
-20,6
+20,10
@@
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x80
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x80
+#define MAP_POPULATE 0x8000
+#define MAP_NONBLOCK 0x10000
+#define MAP_STACK 0x20000
+#define MAP_HUGETLB 0x40000
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
@@
-47,7
+51,10
@@
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
#define MADV_HWPOISON 100
#define MADV_HWPOISON 100
+#define MADV_SOFT_OFFLINE 101
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
diff --git
a/arch/x86_64/bits/mman.h
b/arch/x86_64/bits/mman.h
index
c4cd8ae
..
dcab47a
100644
(file)
--- a/
arch/x86_64/bits/mman.h
+++ b/
arch/x86_64/bits/mman.h
@@
-21,6
+21,10
@@
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
#define MAP_DENYWRITE 0x0800
#define MAP_EXECUTABLE 0x1000
#define MAP_LOCKED 0x2000
+#define MAP_POPULATE 0x8000
+#define MAP_NONBLOCK 0x10000
+#define MAP_STACK 0x20000
+#define MAP_HUGETLB 0x40000
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
#define POSIX_MADV_NORMAL 0
#define POSIX_MADV_RANDOM 1
@@
-48,7
+52,10
@@
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
#define MADV_UNMERGEABLE 13
#define MADV_HUGEPAGE 14
#define MADV_NOHUGEPAGE 15
+#define MADV_DONTDUMP 16
+#define MADV_DODUMP 17
#define MADV_HWPOISON 100
#define MADV_HWPOISON 100
+#define MADV_SOFT_OFFLINE 101
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2