summaryrefslogtreecommitdiff
path: root/src/linux/mlock2.c
AgeCommit message (Collapse)AuthorLines
2018-06-20add mlock2 linux syscall wrapperSzabolcs Nagy-0/+10
mlock2 syscall was added in linux v4.4 and glibc has api for it. It falls back to mlock in case of flags==0, so that case works even on older kernels. MLOCK_ONFAULT is moved under _GNU_SOURCE following glibc.