merge unlink variants
[trinity.git] / syscalls / faccessat.c
blob83aefbc75f54cf7da140c00de39c486171a0166b
1 /*
2 * SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
4 * On success, (all requested permissions granted) faccessat() returns 0.
5 * On error, -1 is returned and errno is set to indicate the error.
6 */
7 #include "sanitise.h"
9 struct syscallentry syscall_faccessat = {
10 .name = "faccessat",
11 .num_args = 3,
12 .arg1name = "dfd",
13 .arg1type = ARG_FD,
14 .arg2name = "filename",
15 .arg2type = ARG_PATHNAME,
16 .arg3name = "mode",
17 .arg3type = ARG_MODE_T,
18 .rettype = RET_ZERO_SUCCESS,
19 .flags = NEED_ALARM,
20 .group = GROUP_VFS,