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
var scope reduction
[trinity.git]
/
syscalls
/
flock.c
blob
218cc2907d8b3e71d633a58b8ecc4434a9dd6d09
1
/*
2
* SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd)
3
*
4
* On success, zero is returned.
5
* On error, -1 is returned, and errno is set appropriately.
6
*/
7
#include
"sanitise.h"
8
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
,
18
};