repo.or.cz
/
trinity.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
merge clone variants
[trinity.git]
/
syscalls
/
mlock.c
blob
9dda94a41313d8da6c0bd62e555fe39e144c9978
1
/*
2
* SYSCALL_DEFINE2(mlock, unsigned long, start, size_t, len)
3
*/
4
#include <stdlib.h>
5
#include
"maps.h"
6
#include
"shm.h"
7
#include
"sanitise.h"
8
9
static void
sanitise_mlock
(
int
childno
)
10
{
11
(
void
)
common_set_mmap_ptr_len
(
childno
);
12
}
13
14
struct
syscallentry syscall_mlock
= {
15
.
name
=
"mlock"
,
16
.
num_args
=
2
,
17
.
arg1name
=
"addr"
,
18
.
arg1type
=
ARG_MMAP
,
19
.
arg2name
=
"len"
,
20
.
group
=
GROUP_VM
,
21
.
sanitise
=
sanitise_mlock
,
22
};