162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef _UAPI__SPARC_MMAN_H__ 362306a36Sopenharmony_ci#define _UAPI__SPARC_MMAN_H__ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm-generic/mman-common.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* SunOS'ified... */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define PROT_ADI 0x10 /* ADI enabled */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ 1262306a36Sopenharmony_ci#define MAP_NORESERVE 0x40 /* don't reserve swap pages */ 1362306a36Sopenharmony_ci#define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ 1462306a36Sopenharmony_ci#define MAP_LOCKED 0x100 /* lock the mapping */ 1562306a36Sopenharmony_ci#define _MAP_NEW 0x80000000 /* Binary compatibility is fun... */ 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define MAP_GROWSDOWN 0x0200 /* stack-like segment */ 1862306a36Sopenharmony_ci#define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 1962306a36Sopenharmony_ci#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ 2262306a36Sopenharmony_ci#define MCL_FUTURE 0x4000 /* lock all additions to address space */ 2362306a36Sopenharmony_ci#define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* _UAPI__SPARC_MMAN_H__ */ 26