merge newfstat variants
[trinity.git] / syscalls / fchmod.c
blob6e51de21e71f14b028ce1cf15d174fd91195bd6d
1 /*
2 * SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode)
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_fchmod = {
10 .name = "fchmod",
11 .num_args = 2,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "mode",
15 .arg2type = ARG_MODE_T,
16 .rettype = RET_ZERO_SUCCESS,
17 .flags = NEED_ALARM,
18 .group = GROUP_VFS,
23 * SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode)
25 * On success, fchmodat() returns 0.
26 * On error, -1 is returned and errno is set to indicate the error.
29 struct syscallentry syscall_fchmodat = {
30 .name = "fchmodat",
31 .num_args = 3,
32 .arg1name = "dfd",
33 .arg1type = ARG_FD,
34 .arg2name = "filename",
35 .arg2type = ARG_PATHNAME,
36 .arg3name = "mode",
37 .arg3type = ARG_MODE_T,
38 .rettype = RET_ZERO_SUCCESS,
39 .flags = NEED_ALARM,
40 .group = GROUP_VFS,