18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _UAPI__SPARC_MMAN_H__ 38c2ecf20Sopenharmony_ci#define _UAPI__SPARC_MMAN_H__ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm-generic/mman-common.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* SunOS'ified... */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define PROT_ADI 0x10 /* ADI enabled */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ 128c2ecf20Sopenharmony_ci#define MAP_NORESERVE 0x40 /* don't reserve swap pages */ 138c2ecf20Sopenharmony_ci#define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ 148c2ecf20Sopenharmony_ci#define MAP_LOCKED 0x100 /* lock the mapping */ 158c2ecf20Sopenharmony_ci#define _MAP_NEW 0x80000000 /* Binary compatibility is fun... */ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#define MAP_GROWSDOWN 0x0200 /* stack-like segment */ 188c2ecf20Sopenharmony_ci#define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 198c2ecf20Sopenharmony_ci#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ 228c2ecf20Sopenharmony_ci#define MCL_FUTURE 0x4000 /* lock all additions to address space */ 238c2ecf20Sopenharmony_ci#define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif /* _UAPI__SPARC_MMAN_H__ */ 26