add new renameat2 syscall
[trinity.git] / syscalls / fsetxattr.c
blobf51a366d5b31d354cd6aad19a2c9aa96c9815e35
1 /*
2 * SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
3 const void __user *,value, size_t, size, int, flags)
4 */
6 #include <linux/xattr.h>
7 #include "sanitise.h"
9 struct syscallentry syscall_fsetxattr = {
10 .name = "fsetxattr",
11 .num_args = 5,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "name",
15 .arg2type = ARG_ADDRESS,
16 .arg3name = "value",
17 .arg3type = ARG_ADDRESS,
18 .arg4name = "size",
19 .arg4type = ARG_LEN,
20 .arg5name = "flags",
21 .arg5type = ARG_LIST,
22 .arg5list = {
23 .num = 2,
24 .values = { XATTR_CREATE , XATTR_REPLACE },
26 .rettype = RET_ZERO_SUCCESS,
27 .flags = NEED_ALARM,
28 .group = GROUP_VFS,