access(3f)

Name
access - determines accessibility of a file

Syntax
integer access, err
external access
character*len name, mode
err = access ( name, mode )

Description
The access function checks the given file name for accessibility with respect to the caller according to mode. The mode can include one or more of the following (in any order and in any combination):

    r   Test for read permission

    w   Test for write permission

    x   Test for execute permission

    (blank)
        Test for existence

Restrictions
Pathnames cannot be longer than MAXPATHLEN (as defined in sys/param.h ).

Return Values
If the specified access is successful, a zero is returned. An error code is returned if either argument is illegal, or if the file cannot be accessed in all of the specified modes.

Files
libU77.a

See Also
access(2)