HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)

a
access(2) access(2)
ERRORS
If access() fails, errno is set to one of the following values.
[EACCES] Search permission is denied on a component of the path prefix.
[EACCES] The access control list does not permit the requested access and the real user ID is not
a user with DACREAD or DACWRITE privileges.
[EFAULT] path points outside the allocated address space for the process. The reliable detection
of this error is implementation dependent.
[ELOOP] Too many symbolic links were encountered in translating the path name.
[ENAMETOOLONG]
The length of the specified path name exceeds
PATH_MAX bytes, or the length of a
component of the path name exceeds
NAME_MAX bytes while
_POSIX_NO_TRUNC is
in effect.
[ENOENT] Read, write, or execute (search) permission is requested for a null path name.
[ENOENT] The named file does not exist.
[ENOTDIR] A component of the path prefix is not a directory.
[EROFS] Write access is requested for a file on a read-only file system.
[ETXTBSY] Write access is requested for a pure procedure (shared text) file that is being executed.
SEE ALSO
acl(2), chmod(2), stat(2), setacl(2), acl(5), aclv(5), privileges(5), unistd(5).
STANDARDS CONFORMANCE
access(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
32 Hewlett-Packard Company 2 HP-UX 11i Version 3: February 2007