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