move_pages: just use calloc
[trinity.git] / syscalls / getdents.c
blob1c5ae8836336ffa6d25dfb9170be9ba4eee5f117
1 /*
2 * SYSCALL_DEFINE3(getdents, unsigned int, fd,
3 struct linux_dirent __user *, dirent, unsigned int, count)
4 */
5 #include "sanitise.h"
7 struct syscallentry syscall_getdents = {
8 .name = "getdents",
9 .num_args = 3,
10 .arg1name = "fd",
11 .arg1type = ARG_FD,
12 .arg2name = "dirent",
13 .arg2type = ARG_ADDRESS,
14 .arg3name = "count",
15 .arg3type = ARG_LEN,
16 .rettype = RET_NUM_BYTES,
17 .flags = NEED_ALARM,
18 .group = GROUP_VFS,
23 * SYSCALL_DEFINE3(getdents64, unsigned int, fd,
24 struct linux_dirent64 __user *, dirent, unsigned int, count)
27 struct syscallentry syscall_getdents64 = {
28 .name = "getdents64",
29 .num_args = 3,
30 .arg1name = "fd",
31 .arg1type = ARG_FD,
32 .arg2name = "dirent",
33 .arg2type = ARG_ADDRESS,
34 .arg3name = "count",
35 .arg3type = ARG_LEN,
36 .rettype = RET_NUM_BYTES,
37 .flags = NEED_ALARM,
38 .group = GROUP_VFS,