var scope reduction
[trinity.git] / syscalls / open_by_handle_at.c
blob63ff9201d9b1e9dd5e66abcb7fd56f20a29c4ac0
1 /*
2 * SYSCALL_DEFINE3(open_by_handle_at, int, mountdirfd,
3 * struct file_handle __user *, handle,
4 * int, flags)
5 */
6 #include <fcntl.h>
7 #include "sanitise.h"
8 #include "compat.h"
10 struct syscallentry syscall_open_by_handle_at = {
11 .name = "open_by_handle_at",
12 .num_args = 3,
13 .arg1name = "mountdirfd",
14 .arg1type = ARG_FD,
15 .arg2name = "handle",
16 .arg2type = ARG_ADDRESS,
17 .arg3name = "flags",
18 .arg3type = ARG_LIST,
19 .arg3list = {
20 .num = 20,
21 .values = { O_RDONLY, O_WRONLY, O_RDWR,
22 O_CREAT, O_EXCL, O_NOCTTY,
23 O_TRUNC, O_APPEND, O_NONBLOCK,
24 O_SYNC, O_ASYNC,
25 O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC,
26 O_DIRECT, O_NOATIME, O_PATH,
27 O_DSYNC, O_LARGEFILE, O_TMPFILE },
29 .flags = NEED_ALARM,