ACCESS(3F) — FORTRAN LIBRARY ROUTINES
NAME
access − return access mode (r,w,x) or existence of a file
SYNOPSIS
integer function access (name, mode)
character∗(∗) name, mode
USAGE
Example: ierr = access ( ’MyFile’, ’r’
DESCRIPTION
The access function checks the given file, name, for accessability with respect to the caller according to mode. The mode argument may include, in any order, and in any combination, one or more of
rtest for read permission
wtest for write permission
xtest for execute permission
(blank)
test for existence
An error code is returned if either argument is illegal, or if the file can not be accessed in all of the specified modes. 0 is returned if the specified access would be successful.
FILES
libF77.a
SEE ALSO
Sun Release 4.1 — Last change: 12 June 1990