int access(char *path, int mode) - determine accessibility of file.
path points to a path name naming a file. access() checks the named file for accessibility according to mode, defined in #include <unistd.h>:
access() returns: 0 on success, -1 on failure and sets errno to indicate the error. See man pages for list of errors.