1 #include <sys/mman.h>
2 #include "syscall.h"
3 #include <unsupported_api.h>
4 
mlock(const void *addr, size_t len)5 int mlock(const void *addr, size_t len)
6 {
7 	unsupported_api(__FUNCTION__);
8 #ifdef SYS_mlock
9 	return syscall(SYS_mlock, addr, len);
10 #else
11 	return syscall(SYS_mlock2, addr, len, 0);
12 #endif
13 }
14