move_pages: just use calloc
[trinity.git] / syscalls / name_to_handle_at.c
blob55525c58e560bb00e9e1c13776e00bd3d033d96e
1 /*
2 * SYSCALL_DEFINE5(name_to_handle_at, int, dfd, const char __user *, name,
3 * struct file_handle __user *, handle, int __user *, mnt_id,
4 * int, flag)
5 */
6 #include <fcntl.h>
7 #include "sanitise.h"
8 #include "compat.h"
10 struct syscallentry syscall_name_to_handle_at = {
11 .name = "name_to_handle_at",
12 .num_args = 5,
13 .arg1name = "fd",
14 .arg1type = ARG_FD,
15 .arg2name = "name",
16 .arg2type = ARG_ADDRESS,
17 .arg3name = "handle",
18 .arg3type = ARG_ADDRESS,
19 .arg4name = "mnt_id",
20 .arg4type = ARG_ADDRESS,
21 .arg5name = "flag",
22 .arg5type = ARG_LIST,
23 .arg5list = {
24 .num = 6,
25 .values = { AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR, AT_SYMLINK_FOLLOW, AT_NO_AUTOMOUNT, AT_EMPTY_PATH },
27 .flags = NEED_ALARM,