122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef _ASM_MMAN_H 2022851890Sopenharmony_ci#define _ASM_MMAN_H 2122851890Sopenharmony_ci#define PROT_NONE 0x00 2222851890Sopenharmony_ci#define PROT_READ 0x01 2322851890Sopenharmony_ci#define PROT_WRITE 0x02 2422851890Sopenharmony_ci#define PROT_EXEC 0x04 2522851890Sopenharmony_ci#define PROT_SEM 0x10 2622851890Sopenharmony_ci#define PROT_GROWSDOWN 0x01000000 2722851890Sopenharmony_ci#define PROT_GROWSUP 0x02000000 2822851890Sopenharmony_ci#define MAP_TYPE 0x00f 2922851890Sopenharmony_ci#define MAP_FIXED 0x010 3022851890Sopenharmony_ci#define MAP_RENAME 0x020 3122851890Sopenharmony_ci#define MAP_AUTOGROW 0x040 3222851890Sopenharmony_ci#define MAP_LOCAL 0x080 3322851890Sopenharmony_ci#define MAP_AUTORSRV 0x100 3422851890Sopenharmony_ci#define MAP_NORESERVE 0x0400 3522851890Sopenharmony_ci#define MAP_ANONYMOUS 0x0800 3622851890Sopenharmony_ci#define MAP_GROWSDOWN 0x1000 3722851890Sopenharmony_ci#define MAP_DENYWRITE 0x2000 3822851890Sopenharmony_ci#define MAP_EXECUTABLE 0x4000 3922851890Sopenharmony_ci#define MAP_LOCKED 0x8000 4022851890Sopenharmony_ci#define MAP_POPULATE 0x10000 4122851890Sopenharmony_ci#define MAP_NONBLOCK 0x20000 4222851890Sopenharmony_ci#define MAP_STACK 0x40000 4322851890Sopenharmony_ci#define MAP_HUGETLB 0x80000 4422851890Sopenharmony_ci#define MAP_FIXED_NOREPLACE 0x100000 4522851890Sopenharmony_ci#define MS_ASYNC 0x0001 4622851890Sopenharmony_ci#define MS_INVALIDATE 0x0002 4722851890Sopenharmony_ci#define MS_SYNC 0x0004 4822851890Sopenharmony_ci#define MCL_CURRENT 1 4922851890Sopenharmony_ci#define MCL_FUTURE 2 5022851890Sopenharmony_ci#define MCL_ONFAULT 4 5122851890Sopenharmony_ci#define MLOCK_ONFAULT 0x01 5222851890Sopenharmony_ci#define MADV_NORMAL 0 5322851890Sopenharmony_ci#define MADV_RANDOM 1 5422851890Sopenharmony_ci#define MADV_SEQUENTIAL 2 5522851890Sopenharmony_ci#define MADV_WILLNEED 3 5622851890Sopenharmony_ci#define MADV_DONTNEED 4 5722851890Sopenharmony_ci#define MADV_FREE 8 5822851890Sopenharmony_ci#define MADV_REMOVE 9 5922851890Sopenharmony_ci#define MADV_DONTFORK 10 6022851890Sopenharmony_ci#define MADV_DOFORK 11 6122851890Sopenharmony_ci#define MADV_MERGEABLE 12 6222851890Sopenharmony_ci#define MADV_UNMERGEABLE 13 6322851890Sopenharmony_ci#define MADV_HWPOISON 100 6422851890Sopenharmony_ci#define MADV_HUGEPAGE 14 6522851890Sopenharmony_ci#define MADV_NOHUGEPAGE 15 6622851890Sopenharmony_ci#define MADV_DONTDUMP 16 6722851890Sopenharmony_ci#define MADV_DODUMP 17 6822851890Sopenharmony_ci#define MADV_WIPEONFORK 18 6922851890Sopenharmony_ci#define MADV_KEEPONFORK 19 7022851890Sopenharmony_ci#define MADV_COLD 20 7122851890Sopenharmony_ci#define MADV_PAGEOUT 21 7222851890Sopenharmony_ci#define MAP_FILE 0 7322851890Sopenharmony_ci#define PKEY_DISABLE_ACCESS 0x1 7422851890Sopenharmony_ci#define PKEY_DISABLE_WRITE 0x2 7522851890Sopenharmony_ci#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) 7622851890Sopenharmony_ci#endif 77