add new renameat2 syscall
[trinity.git] / syscalls / fdatasync.c
blobd08ac6c4337d7e5f87f2488dc92af2da9d265f28
1 /*
2 * SYSCALL_DEFINE1(fdatasync, unsigned int, fd)
4 * On success, returns zero.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_fdatasync = {
10 .name = "fdatasync",
11 .num_args = 1,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .rettype = RET_ZERO_SUCCESS,
15 .flags = NEED_ALARM,
16 .group = GROUP_VFS,