162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 362306a36Sopenharmony_ci#define __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm-generic/mman-common.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* We need this because we need to have tools/include/uapi/ included in the tools 862306a36Sopenharmony_ci * header search path to get access to stuff that is not yet in the system's 962306a36Sopenharmony_ci * copy of the files in that directory, but since this cset: 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * 746c9398f5ac ("arch: move common mmap flags to linux/mman.h") 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * We end up making sys/mman.h, that is in the system headers, to not find the 1462306a36Sopenharmony_ci * MAP_SHARED and MAP_PRIVATE defines because they are not anymore in our copy 1562306a36Sopenharmony_ci * of asm-generic/mman-common.h. So we define them here and include this header 1662306a36Sopenharmony_ci * from each of the per arch mman.h headers. 1762306a36Sopenharmony_ci */ 1862306a36Sopenharmony_ci#ifndef MAP_SHARED 1962306a36Sopenharmony_ci#define MAP_SHARED 0x01 /* Share changes */ 2062306a36Sopenharmony_ci#define MAP_PRIVATE 0x02 /* Changes are private */ 2162306a36Sopenharmony_ci#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */ 2262306a36Sopenharmony_ci#endif 2362306a36Sopenharmony_ci#endif // __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 24