diff options
author | Szabolcs Nagy <nsz@port70.net> | 2016-01-24 01:19:38 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-01-26 18:31:05 -0500 |
commit | 789ff6a9f8ec91729cde7fdcb0568d5d928eeba5 (patch) | |
tree | 2e7b75b6a7845486d033701140794536bd32e07e /arch/powerpc/bits/mman.h | |
parent | 51d5f139ca9e79d621a396542dde5b8cd76c5c3f (diff) | |
download | musl-789ff6a9f8ec91729cde7fdcb0568d5d928eeba5.tar.gz musl-789ff6a9f8ec91729cde7fdcb0568d5d928eeba5.tar.bz2 musl-789ff6a9f8ec91729cde7fdcb0568d5d928eeba5.tar.xz musl-789ff6a9f8ec91729cde7fdcb0568d5d928eeba5.zip |
add MCL_ONFAULT and MLOCK_ONFAULT mlockall and mlock2 flags
they lock faulted pages into memory (useful when a small part of a
large mapped file needs efficient access), new in linux v4.4, commit
b0f205c2a3082dd9081f9a94e50658c5fa906ff1
MLOCK_* is not in the POSIX reserved namespace for sys/mman.h
Diffstat (limited to 'arch/powerpc/bits/mman.h')
-rw-r--r-- | arch/powerpc/bits/mman.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/bits/mman.h b/arch/powerpc/bits/mman.h index 779fddec..6581edc5 100644 --- a/arch/powerpc/bits/mman.h +++ b/arch/powerpc/bits/mman.h @@ -38,6 +38,7 @@ #define MCL_CURRENT 0x2000 #define MCL_FUTURE 0x4000 +#define MCL_ONFAULT 0x8000 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define MADV_NORMAL 0 |