note a leak that needs fixing eventually
[trinity.git] / syscalls / fsync.c
blob9edfe7ce8f7305e997463b47515d8b2e55e2352c
1 /*
2 * SYSCALL_DEFINE1(fsync, unsigned int, fd)
4 * On success, these system calls return zero.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_fsync = {
10 .name = "fsync",
11 .num_args = 1,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .rettype = RET_ZERO_SUCCESS,
15 .flags = NEED_ALARM,
16 .group = GROUP_VFS,