diff options
Diffstat (limited to 'libc-top-half/musl/src/mman/mlock.c')
-rw-r--r-- | libc-top-half/musl/src/mman/mlock.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/mman/mlock.c b/libc-top-half/musl/src/mman/mlock.c new file mode 100644 index 0000000..71af582 --- /dev/null +++ b/libc-top-half/musl/src/mman/mlock.c @@ -0,0 +1,11 @@ +#include <sys/mman.h> +#include "syscall.h" + +int mlock(const void *addr, size_t len) +{ +#ifdef SYS_mlock + return syscall(SYS_mlock, addr, len); +#else + return syscall(SYS_mlock2, addr, len, 0); +#endif +} |