note a leak that needs fixing eventually
[trinity.git] / syscalls / access.c
blobff78e74987646b7c81c4cbc9f231f155ee5c8e36
1 /*
2 * SYSCALL_DEFINE2(access, const char __user *, filename, int, mode)
4 * On success (all requested permissions granted), zero is returned.
5 * On error (at least one bit in mode asked for a permission that is denied,
6 * or some other error occurred), -1 is returned, and errno is set appropriately.
7 */
8 #include "sanitise.h"
10 struct syscallentry syscall_access = {
11 .name = "access",
12 .num_args = 2,
13 .arg1name = "filename",
14 .arg1type = ARG_PATHNAME,
15 .arg2name = "mode",
16 .arg2type = ARG_MODE_T,
17 .group = GROUP_VFS,