18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 38c2ecf20Sopenharmony_ci#define __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm-generic/mman-common.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* We need this because we need to have tools/include/uapi/ included in the tools 88c2ecf20Sopenharmony_ci * header search path to get access to stuff that is not yet in the system's 98c2ecf20Sopenharmony_ci * copy of the files in that directory, but since this cset: 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * 746c9398f5ac ("arch: move common mmap flags to linux/mman.h") 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * We end up making sys/mman.h, that is in the system headers, to not find the 148c2ecf20Sopenharmony_ci * MAP_SHARED and MAP_PRIVATE defines because they are not anymore in our copy 158c2ecf20Sopenharmony_ci * of asm-generic/mman-common.h. So we define them here and include this header 168c2ecf20Sopenharmony_ci * from each of the per arch mman.h headers. 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci#ifndef MAP_SHARED 198c2ecf20Sopenharmony_ci#define MAP_SHARED 0x01 /* Share changes */ 208c2ecf20Sopenharmony_ci#define MAP_PRIVATE 0x02 /* Changes are private */ 218c2ecf20Sopenharmony_ci#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */ 228c2ecf20Sopenharmony_ci#endif 238c2ecf20Sopenharmony_ci#endif // __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 24