repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
loongarch64: add TLSDESC support
[musl.git]
/
src
/
mman
/
mlock.c
blob
71af582fe6a3eb1538a59a1dded009d16ab062b8
1
#include <sys/mman.h>
2
#include
"syscall.h"
3
4
int
mlock
(
const void
*
addr
,
size_t
len
)
5
{
6
#ifdef SYS_mlock
7
return
syscall
(
SYS_mlock
,
addr
,
len
);
8
#else
9
return
syscall
(
SYS_mlock2
,
addr
,
len
,
0
);
10
#endif
11
}