var scope reduction
[trinity.git] / syscalls / flock.c
blob218cc2907d8b3e71d633a58b8ecc4434a9dd6d09
1 /*
2 * SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd)
4 * On success, zero is returned.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_flock = {
10 .name = "flock",
11 .num_args = 2,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "cmd",
15 .rettype = RET_ZERO_SUCCESS,
16 .flags = NEED_ALARM,
17 .group = GROUP_VFS,