add new renameat2 syscall
[trinity.git] / syscalls / pipe.c
blob23ee3aaf55c0df42fe1d3585140d240954aacfd5
1 /*
2 * SYSCALL_DEFINE1(pipe, int __user *, fildes)
3 */
4 #include <unistd.h>
5 #include <fcntl.h>
6 #include "sanitise.h"
7 #include "compat.h"
9 struct syscallentry syscall_pipe = {
10 .name = "pipe",
11 .num_args = 1,
12 .arg1name = "fildes",
13 .arg1type = ARG_ADDRESS,
14 .group = GROUP_VFS,
18 * SYSCALL_DEFINE2(pipe2, int __user *, fildes, int, flags)
21 struct syscallentry syscall_pipe2 = {
22 .name = "pipe2",
23 .num_args = 2,
24 .arg1name = "fildes",
25 .arg1type = ARG_ADDRESS,
26 .arg2name = "flags",
27 .arg2type = ARG_LIST,
28 .arg2list = {
29 .num = 3,
30 .values = { O_CLOEXEC, O_NONBLOCK, O_DIRECT },
32 .group = GROUP_VFS,