mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
218 B
11 lines
218 B
|
8 years ago
|
#define _GNU_SOURCE 1
|
||
|
|
#include <sys/mman.h>
|
||
|
|
#include "syscall.h"
|
||
|
|
|
||
|
|
int mlock2(const void *addr, size_t len, unsigned flags)
|
||
|
|
{
|
||
|
|
if (flags == 0)
|
||
|
|
return mlock(addr, len);
|
||
|
|
return syscall(SYS_mlock2, addr, len, flags);
|
||
|
|
}
|