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
move_pages: just use calloc
[trinity.git]
/
syscalls
/
eventfd.c
blob
a27712364f536ab75f0108c84ab67d7088d630c0
1
/*
2
* SYSCALL_DEFINE1(eventfd, unsigned int, count)
3
*
4
* On success, eventfd() returns a new eventfd file descriptor.
5
* On error, -1 is returned and errno is set to indicate the error.
6
*/
7
#include
"sanitise.h"
8
9
struct
syscallentry syscall_eventfd
= {
10
.
name
=
"eventfd"
,
11
.
num_args
=
1
,
12
.
arg1name
=
"count"
,
13
.
arg1type
=
ARG_LEN
,
14
.
rettype
=
RET_FD
,
15
};