add new renameat2 syscall
[trinity.git] / syscalls / close.c
blobedeae71ef520b0370b91f2599ca5040edf220766
1 /*
2 * SYSCALL_DEFINE1(close, unsigned int, fd)
4 * returns zero on success.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
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,