Sign in
cobalt
/
cobalt
/
b95ea55ccebda33f820d043e4b4dc85c10d7584d
/
.
/
third_party
/
musl
/
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
);
}