From: Szabolcs Nagy Date: Sat, 10 Nov 2018 21:00:06 +0000 (+0000) Subject: sys/mman.h: add new hugetlb mmap flags from linux v4.19 X-Git-Tag: v1.1.22~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db8b53f20733923ab3bb0dd71d31beb37e1e9ad3;p=oweals%2Fmusl.git sys/mman.h: add new hugetlb mmap flags from linux v4.19 aarch64 supports 32MB and 512MB hugetlb page sizes too. added in linux commit 20916d4636a9b3c1bf562b305f91d126771edaf9 --- diff --git a/include/sys/mman.h b/include/sys/mman.h index 99d02a2e..d0761b18 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -46,7 +46,9 @@ extern "C" { #define MAP_HUGE_2MB (21 << 26) #define MAP_HUGE_8MB (23 << 26) #define MAP_HUGE_16MB (24 << 26) +#define MAP_HUGE_32MB (25 << 26) #define MAP_HUGE_256MB (28 << 26) +#define MAP_HUGE_512MB (29 << 26) #define MAP_HUGE_1GB (30 << 26) #define MAP_HUGE_2GB (31 << 26) #define MAP_HUGE_16GB (34U << 26) diff --git a/include/sys/shm.h b/include/sys/shm.h index 662fde59..8ef4e8f2 100644 --- a/include/sys/shm.h +++ b/include/sys/shm.h @@ -49,7 +49,9 @@ extern "C" { #define SHM_HUGE_2MB (21 << 26) #define SHM_HUGE_8MB (23 << 26) #define SHM_HUGE_16MB (24 << 26) +#define SHM_HUGE_32MB (25 << 26) #define SHM_HUGE_256MB (28 << 26) +#define SHM_HUGE_512MB (29 << 26) #define SHM_HUGE_1GB (30 << 26) #define SHM_HUGE_2GB (31 << 26) #define SHM_HUGE_16GB (34U << 26)