move_pages: just use calloc
[trinity.git] / syscalls / readlink.c
blob91ebc2c3ed811f2be457122dc77183563ce1c699
1 /*
2 * SYSCALL_DEFINE3(readlink, const char __user *, path, char __user *, buf, int, bufsiz)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_readlink = {
7 .name = "readlink",
8 .num_args = 3,
9 .arg1name = "path",
10 .arg1type = ARG_PATHNAME,
11 .arg2name = "buf",
12 .arg2type = ARG_ADDRESS,
13 .arg3name = "bufsiz",
14 .arg3type = ARG_LEN,
15 .group = GROUP_VFS,
20 * SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname,
21 char __user *, buf, int, bufsiz)
24 struct syscallentry syscall_readlinkat = {
25 .name = "readlinkat",
26 .num_args = 4,
27 .arg1name = "dfd",
28 .arg1type = ARG_FD,
29 .arg2name = "pathname",
30 .arg2type = ARG_PATHNAME,
31 .arg3name = "buf",
32 .arg3type = ARG_ADDRESS,
33 .arg4name = "bufsiz",
34 .arg4type = ARG_LEN,
35 .flags = NEED_ALARM,
36 .group = GROUP_VFS,