merge newfstat variants
[trinity.git] / syscalls / mlock.c
blob9dda94a41313d8da6c0bd62e555fe39e144c9978
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"
9 static void sanitise_mlock(int childno)
11 (void) common_set_mmap_ptr_len(childno);
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,