move_pages: just use calloc
[trinity.git] / syscalls / fstat64.c
blob5d76ecc3955608cd19272eb9380d0956284d8470
1 /*
2 * SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf)
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_fstat64 = {
10 .name = "fstat64",
11 .num_args = 2,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "statbuf",
15 .arg2type = ARG_ADDRESS,
16 .rettype = RET_ZERO_SUCCESS,
17 .flags = NEED_ALARM,
18 .group = GROUP_VFS,
22 * SYSCALL_DEFINE4(fstatat64, int, dfd, const char __user *, filename,
23 struct stat64 __user *, statbuf, int, flag)
25 * On success, fstatat() returns 0.
26 * On error, -1 is returned and errno is set to indicate the error.
29 struct syscallentry syscall_fstatat64 = {
30 .name = "fstatat64",
31 .num_args = 4,
32 .arg1name = "dfd",
33 .arg1type = ARG_FD,
34 .arg2name = "filename",
35 .arg2type = ARG_PATHNAME,
36 .arg3name = "statbuf",
37 .arg3type = ARG_ADDRESS,
38 .arg4name = "flag",
39 .rettype = RET_ZERO_SUCCESS,
40 .flags = NEED_ALARM,
41 .group = GROUP_VFS,