madvise: Support MADV_WIPEONFORK, MADV_KEEPONFORK and MADV_NORMAL

Change-Id: I1d4cf5affa580d7304dfdc34fa4f1707c0df617c
refs: #1374
This commit is contained in:
TOIDA,Suguru
2020-03-06 15:00:37 +09:00
parent d82ac31bc6
commit 3300e65efc
7 changed files with 131 additions and 2 deletions

View File

@ -54,6 +54,8 @@
#define MADV_NOHUGEPAGE 15
#define MADV_DONTDUMP 16
#define MADV_DODUMP 17
#define MADV_WIPEONFORK 18 /* Zero memory on fork, child only */
#define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK */
#define MADV_HWPOISON 100
#define MADV_SOFT_OFFLINE 101