]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/linux/mlock2.c
WASI libc prototype implementation.
[wasi-libc.git] / libc-top-half / musl / src / linux / mlock2.c
1 #define _GNU_SOURCE 1
2 #include <sys/mman.h>
3 #include "syscall.h"
4
5 int mlock2(const void *addr, size_t len, unsigned flags)
6 {
7 if (flags == 0)
8 return mlock(addr, len);
9 return syscall(SYS_mlock2, addr, len, flags);
10 }