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
add to, and prioritize the TODO a little.
[trinity.git]
/
syscalls
/
close.c
blob
edeae71ef520b0370b91f2599ca5040edf220766
1
/*
2
* SYSCALL_DEFINE1(close, unsigned int, fd)
3
*
4
* returns zero on success.
5
* On error, -1 is returned, and errno is set appropriately.
6
*/
7
#include
"sanitise.h"
8
9
struct
syscallentry syscall_close
= {
10
.
name
=
"close"
,
11
.
num_args
=
1
,
12
.
arg1name
=
"fd"
,
13
.
arg1type
=
ARG_FD
,
14
.
flags
=
AVOID_SYSCALL
,
15
.
rettype
=
RET_ZERO_SUCCESS
,
16
};