move_pages: just use calloc
[trinity.git] / syscalls / fchown.c
blob1936d5ec5aee9cce5970f7c64b7d2059bde2dec1
1 /*
2 * SYSCALL_DEFINE3(fchown, unsigned int, fd, 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_fchown = {
10 .name = "fchown",
11 .num_args = 3,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "user",
15 .arg3name = "group",
16 .rettype = RET_ZERO_SUCCESS,
17 .flags = NEED_ALARM,
18 .group = GROUP_VFS,
22 * SYSCALL_DEFINE3(fchown16, unsigned int, fd, 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_fchown16 = {
29 .name = "fchown16",
30 .num_args = 3,
31 .arg1name = "fd",
32 .arg1type = ARG_FD,
33 .arg2name = "user",
34 .arg3name = "group",
35 .rettype = RET_ZERO_SUCCESS,
36 .group = GROUP_VFS,
41 * SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user,
42 gid_t, group, int, flag)
44 * On success, fchownat() returns 0.
45 * On error, -1 is returned and errno is set to indicate the error.
48 struct syscallentry syscall_fchownat = {
49 .name = "fchownat",
50 .num_args = 5,
51 .arg1name = "dfd",
52 .arg1type = ARG_FD,
53 .arg2name = "filename",
54 .arg2type = ARG_PATHNAME,
55 .arg3name = "user",
56 .arg4name = "group",
57 .arg5name = "flag",
58 .rettype = RET_ZERO_SUCCESS,
59 .flags = NEED_ALARM,
60 .group = GROUP_VFS,