note a leak that needs fixing eventually
[trinity.git] / syscalls / newfstat.c
blobed487d8a647c15d3d8288c4097ffebadde484fbe
1 /*
2 * SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_newfstat = {
7 .name = "newfstat",
8 .num_args = 2,
9 .arg1name = "fd",
10 .arg1type = ARG_FD,
11 .arg2name = "statbuf",
12 .arg2type = ARG_ADDRESS,
13 .flags = NEED_ALARM,
14 .group = GROUP_VFS,
19 * SYSCALL_DEFINE4(newfstatat, int, dfd, const char __user *, filename,
20 struct stat __user *, statbuf, int, flag)
22 #include <fcntl.h>
23 #include "sanitise.h"
25 struct syscallentry syscall_newfstatat = {
26 .name = "newfstatat",
27 .num_args = 4,
28 .arg1name = "dfd",
29 .arg1type = ARG_FD,
30 .arg2name = "filename",
31 .arg2type = ARG_PATHNAME,
32 .arg3name = "statbuf",
33 .arg3type = ARG_ADDRESS,
34 .arg4name = "flag",
35 .arg4type = ARG_LIST,
36 .arg4list = {
37 .num = 2,
38 .values = { 0, AT_SYMLINK_NOFOLLOW },
40 .group = GROUP_VFS,