5f6164f309
Make new MADV_REMOVE, MADV_DONTFORK, MADV_DOFORK consistent across all arches. The idea is to make it possible to use them portably even before distros include them in libc headers. Move common flags to asm-generic/mman.h Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Cc: Roland Dreier <rolandd@cisco.com> Cc: Badari Pulavarty <pbadari@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
26 lines
822 B
C
26 lines
822 B
C
#ifndef _ASM_IA64_MMAN_H
|
|
#define _ASM_IA64_MMAN_H
|
|
|
|
/*
|
|
* Based on <asm-i386/mman.h>.
|
|
*
|
|
* Modified 1998-2000, 2002
|
|
* David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
|
|
*/
|
|
|
|
#include <asm-generic/mman.h>
|
|
|
|
#define MAP_GROWSDOWN 0x00100 /* stack-like segment */
|
|
#define MAP_GROWSUP 0x00200 /* register stack-like segment */
|
|
#define MAP_DENYWRITE 0x00800 /* ETXTBSY */
|
|
#define MAP_EXECUTABLE 0x01000 /* mark it as an executable */
|
|
#define MAP_LOCKED 0x02000 /* pages are locked */
|
|
#define MAP_NORESERVE 0x04000 /* don't check for reservations */
|
|
#define MAP_POPULATE 0x08000 /* populate (prefault) pagetables */
|
|
#define MAP_NONBLOCK 0x10000 /* do not block on IO */
|
|
|
|
#define MCL_CURRENT 1 /* lock all current mappings */
|
|
#define MCL_FUTURE 2 /* lock all future mappings */
|
|
|
|
#endif /* _ASM_IA64_MMAN_H */
|