split up constants.h some
[trinity.git] / syscalls / setxattr.c
blobfc1838190637c325a419991a58ff3c1a2b08b89a
1 /*
2 * SYSCALL_DEFINE5(setxattr, const char __user *, pathname,
3 const char __user *, name, const void __user *, value,
4 size_t, size, int, flags)
5 */
7 #include <linux/xattr.h>
8 #include "sanitise.h"
10 struct syscallentry syscall_setxattr = {
11 .name = "setxattr",
12 .num_args = 5,
13 .arg1name = "pathname",
14 .arg1type = ARG_PATHNAME,
15 .arg2name = "name",
16 .arg2type = ARG_ADDRESS,
17 .arg3name = "value",
18 .arg3type = ARG_ADDRESS,
19 .arg4name = "size",
20 .arg4type = ARG_LEN,
21 .arg5name = "flags",
22 .arg5type = ARG_LIST,
23 .arg5list = {
24 .num = 2,
25 .values = { XATTR_CREATE, XATTR_REPLACE },