16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 254579826SDavid Howells #ifndef _UAPI__SPARC_MMAN_H__ 354579826SDavid Howells #define _UAPI__SPARC_MMAN_H__ 454579826SDavid Howells 554579826SDavid Howells #include <asm-generic/mman-common.h> 654579826SDavid Howells 754579826SDavid Howells /* SunOS'ified... */ 854579826SDavid Howells 9*74a04967SKhalid Aziz #define PROT_ADI 0x10 /* ADI enabled */ 10*74a04967SKhalid Aziz 1154579826SDavid Howells #define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ 1254579826SDavid Howells #define MAP_NORESERVE 0x40 /* don't reserve swap pages */ 1354579826SDavid Howells #define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ 1454579826SDavid Howells #define MAP_LOCKED 0x100 /* lock the mapping */ 1554579826SDavid Howells #define _MAP_NEW 0x80000000 /* Binary compatibility is fun... */ 1654579826SDavid Howells 1754579826SDavid Howells #define MAP_GROWSDOWN 0x0200 /* stack-like segment */ 1854579826SDavid Howells #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 1954579826SDavid Howells #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 2054579826SDavid Howells 2154579826SDavid Howells #define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ 2254579826SDavid Howells #define MCL_FUTURE 0x4000 /* lock all additions to address space */ 23b0f205c2SEric B Munson #define MCL_ONFAULT 0x8000 /* lock all pages that are faulted in */ 2454579826SDavid Howells 2554579826SDavid Howells #endif /* _UAPI__SPARC_MMAN_H__ */ 26