diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-01-11 02:07:40 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-01-12 19:42:39 +0100 |
commit | 000806cde6416f51f783d2dc487d49b47d297e4e (patch) | |
tree | e6a5cfc19785decc302c4420042cd7bbdab48da3 | |
parent | bc1a8d2ae3837a7303f14d381a4c37218f0c8fcb (diff) | |
download | musl-000806cde6416f51f783d2dc487d49b47d297e4e.tar.gz musl-000806cde6416f51f783d2dc487d49b47d297e4e.tar.bz2 musl-000806cde6416f51f783d2dc487d49b47d297e4e.tar.xz musl-000806cde6416f51f783d2dc487d49b47d297e4e.zip |
add missing mmap options and madvices to bits/mman.h based on linux headers
-rw-r--r-- | arch/arm/bits/mman.h | 7 | ||||
-rw-r--r-- | arch/i386/bits/mman.h | 7 | ||||
-rw-r--r-- | arch/microblaze/bits/mman.h | 7 | ||||
-rw-r--r-- | arch/mips/bits/mman.h | 6 | ||||
-rw-r--r-- | arch/powerpc/bits/mman.h | 7 | ||||
-rw-r--r-- | arch/x86_64/bits/mman.h | 7 |
6 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/bits/mman.h b/arch/arm/bits/mman.h index 2f23d447..8c4110f1 100644 --- 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_POPULATE 0x8000 +#define MAP_NONBLOCK 0x10000 +#define MAP_STACK 0x20000 +#define MAP_HUGETLB 0x40000 #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_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_HWPOISON 100 +#define MADV_SOFT_OFFLINE 101 #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 diff --git a/arch/i386/bits/mman.h b/arch/i386/bits/mman.h index 4083c198..add63855 100644 --- 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_POPULATE 0x8000 +#define MAP_NONBLOCK 0x10000 +#define MAP_STACK 0x20000 +#define MAP_HUGETLB 0x40000 #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_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_HWPOISON 100 +#define MADV_SOFT_OFFLINE 101 #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 diff --git a/arch/microblaze/bits/mman.h b/arch/microblaze/bits/mman.h index 2f23d447..8c4110f1 100644 --- 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_POPULATE 0x8000 +#define MAP_NONBLOCK 0x10000 +#define MAP_STACK 0x20000 +#define MAP_HUGETLB 0x40000 #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_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_HWPOISON 100 +#define MADV_SOFT_OFFLINE 101 #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 diff --git a/arch/mips/bits/mman.h b/arch/mips/bits/mman.h index 3e6faa40..ac8dd5e5 100644 --- 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_POPULATE 0x10000 +#define MAP_NONBLOCK 0x20000 +#define MAP_STACK 0x40000 +#define MAP_HUGETLB 0x80000 #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_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_HWPOISON 100 #define MREMAP_MAYMOVE 1 diff --git a/arch/powerpc/bits/mman.h b/arch/powerpc/bits/mman.h index 0c6cc321..15e3049e 100644 --- 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_POPULATE 0x8000 +#define MAP_NONBLOCK 0x10000 +#define MAP_STACK 0x20000 +#define MAP_HUGETLB 0x40000 #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_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_HWPOISON 100 +#define MADV_SOFT_OFFLINE 101 #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 c4cd8aef..dcab47a4 100644 --- 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_POPULATE 0x8000 +#define MAP_NONBLOCK 0x10000 +#define MAP_STACK 0x20000 +#define MAP_HUGETLB 0x40000 #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_DONTDUMP 16 +#define MADV_DODUMP 17 #define MADV_HWPOISON 100 +#define MADV_SOFT_OFFLINE 101 #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 |