diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-11-27 17:14:29 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-11-27 17:14:29 +0100 |
commit | 4bab02240e9076b49702b30bb8a1d23a0afe58cb (patch) | |
tree | fc60d42e429ae1032be1f0291145232594e1ee4e /sysdeps/unix/sysv/linux/kernel-features.h | |
parent | a23aa5b7272ec4a04578d82399ec2bf536281119 (diff) | |
download | glibc-4bab02240e9076b49702b30bb8a1d23a0afe58cb.tar.gz glibc-4bab02240e9076b49702b30bb8a1d23a0afe58cb.tar.xz glibc-4bab02240e9076b49702b30bb8a1d23a0afe58cb.zip |
Implement the mlock2 function
Fallback using mlock is provided if the flags argument is zero. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/kernel-features.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index 2e1fe6597a..59b613377f 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -107,3 +107,7 @@ #if __LINUX_KERNEL_VERSION >= 0x031300 # define __ASSUME_EXECVEAT 1 #endif + +#if __LINUX_KERNEL_VERSION >= 0x040400 +# define __ASSUME_MLOCK2 1 +#endif |