1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_MMAN_H
20 #define _UAPI_LINUX_MMAN_H
21 #include <asm/mman.h>
22 #include <asm-generic/hugetlb_encode.h>
23 #define MREMAP_MAYMOVE 1
24 #define MREMAP_FIXED 2
25 #define MREMAP_DONTUNMAP 4
26 #define OVERCOMMIT_GUESS 0
27 #define OVERCOMMIT_ALWAYS 1
28 #define OVERCOMMIT_NEVER 2
29 #define MAP_SHARED 0x01
30 #define MAP_PRIVATE 0x02
31 #define MAP_SHARED_VALIDATE 0x03
32 #define MAP_HUGE_SHIFT HUGETLB_FLAG_ENCODE_SHIFT
33 #define MAP_HUGE_MASK HUGETLB_FLAG_ENCODE_MASK
34 #define MAP_HUGE_16KB HUGETLB_FLAG_ENCODE_16KB
35 #define MAP_HUGE_64KB HUGETLB_FLAG_ENCODE_64KB
36 #define MAP_HUGE_512KB HUGETLB_FLAG_ENCODE_512KB
37 #define MAP_HUGE_1MB HUGETLB_FLAG_ENCODE_1MB
38 #define MAP_HUGE_2MB HUGETLB_FLAG_ENCODE_2MB
39 #define MAP_HUGE_8MB HUGETLB_FLAG_ENCODE_8MB
40 #define MAP_HUGE_16MB HUGETLB_FLAG_ENCODE_16MB
41 #define MAP_HUGE_32MB HUGETLB_FLAG_ENCODE_32MB
42 #define MAP_HUGE_256MB HUGETLB_FLAG_ENCODE_256MB
43 #define MAP_HUGE_512MB HUGETLB_FLAG_ENCODE_512MB
44 #define MAP_HUGE_1GB HUGETLB_FLAG_ENCODE_1GB
45 #define MAP_HUGE_2GB HUGETLB_FLAG_ENCODE_2GB
46 #define MAP_HUGE_16GB HUGETLB_FLAG_ENCODE_16GB
47 #endif
48