#include <unistd.h> int access( const char *pathname, int mode );
pathname.
pathname points outside your accessible address space.
Mode was incorrectly specified.
pathname is too long.
pathname would have been accessible but
does not exist or was a dangling symbolic link.
pathname is not, in fact,
a directory.
Access checks whether the process would be allowed to read, write or
test for existence of the file (or other file system object) whose name is
pathname. If pathname is a symbolic link permissions of the
file referred by this symbolic link are tested.
Mode is a mask consisting of one or more of R_OK, W_OK, X_OK and F_OK.
NONE
Copyright © 1988-2004 OAR Corporation