merge newfstat variants
[trinity.git] / syscalls / chown.c
blob7b5ee1e118105790f653273b1d914405707e7d56
1 /*
2 * SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group)
4 * On success, zero is returned.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_chown = {
10 .name = "chown",
11 .num_args = 3,
12 .arg1name = "filename",
13 .arg1type = ARG_PATHNAME,
14 .arg2name = "user",
15 .arg3name = "group",
16 .rettype = RET_ZERO_SUCCESS,
17 .group = GROUP_VFS,
22 * SYSCALL_DEFINE3(chown16, const char __user *, filename, old_uid_t, user, old_gid_t, group)
24 * On success, zero is returned.
25 * On error, -1 is returned, and errno is set appropriately.
28 struct syscallentry syscall_chown16 = {
29 .name = "chown",
30 .num_args = 3,
31 .arg1name = "filename",
32 .arg1type = ARG_PATHNAME,
33 .arg2name = "user",
34 .arg3name = "group",
35 .rettype = RET_ZERO_SUCCESS,
36 .group = GROUP_VFS,