madvise: support MADV_DONTDUMP/DODUMP

refs #661
This commit is contained in:
Tomoki Shirasawa
2017-09-26 14:21:40 +09:00
parent 9c847c0a8f
commit a2fbe99b60
3 changed files with 21 additions and 2 deletions

View File

@ -52,6 +52,7 @@
#define VR_MEMTYPE_UC 0x01000000 /* uncachable */
#define VR_MEMTYPE_MASK 0x0f000000
#define VR_PAGEOUT 0x10000000
#define VR_DONTDUMP 0x20000000
#define PROT_TO_VR_FLAG(prot) (((unsigned long)(prot) << 16) & VR_PROT_MASK)
#define VRFLAG_PROT_TO_MAXPROT(vrflag) (((vrflag) & VR_PROT_MASK) << 4)