add new renameat2 syscall
[trinity.git] / syscalls / fstatfs.c
blob8d1fb0b99d1a03d6a05fbe49046acefee7219f8c
1 /*
2 * SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf)
4 * On success, zero is returned.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_fstatfs = {
10 .name = "fstatfs",
11 .num_args = 2,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "buf",
15 .arg2type = ARG_ADDRESS,
16 .rettype = RET_ZERO_SUCCESS,
17 .flags = NEED_ALARM,
18 .group = GROUP_VFS,
23 * SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf)
25 * On success, zero is returned.
26 * On error, -1 is returned, and errno is set appropriately.
29 struct syscallentry syscall_fstatfs64 = {
30 .name = "fstatfs64",
31 .num_args = 3,
32 .arg1name = "fd",
33 .arg1type = ARG_FD,
34 .arg2name = "sz",
35 .arg3name = "buf",
36 .arg3type = ARG_ADDRESS,
37 .rettype = RET_ZERO_SUCCESS,
38 .flags = NEED_ALARM,
39 .group = GROUP_VFS,