Sign in
android
/
platform
/
external
/
musl
/
3ea3fcf78a5532e118856846df8adbf3f60ef716
/
.
/
src
/
linux
/
mlock2.c
blob: 10132742d0605f262646d708512476496c212fb8 [
file
] [
log
] [
blame
]
#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
);
}