ACCESS(2)

NAME
access - determine a users permissions for a file.

SYNOPSIS
#include <unistd.h>
int access (const char *filename, int mode);

DESCRIPTION
access() returns weather a user can have permissions mode on a given file. If this succeeds, 0 is returned, if not, -EACCESS is returned.

ERRORS
-EACCESS is returned if the user does not have permissions on the specified file.

FILES
linux/fs/open.c, /usr/include/linux/sys.h, /usr/include/unistd.h

SEE ALSO
stat(2)