Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
PXFACCESS
POSIX Subroutine: Determines the accessibility of a file.
Module
USE IFPOSIX
CALL PXFACCESS (path,ilen,iamode,ierror)
path  |  
      (Input) Character. The name of the file.  |  
     ||||||||||||
ilen  |  
      (Input) INTEGER(4). The length of the path string.  |  
     ||||||||||||
iamode  |  
      (Input) INTEGER(4). One or more of the following: 
  |  
     ||||||||||||
ierror  |  
      (Output) INTEGER(4). The error status.  |  
     ||||||||||||
If access is permitted, the result value is zero; otherwise, an error code. Possible error codes are:
-1: A bad parameter was passed.
ENOENT: The named directory does not exist.
EACCES: Access requested was denied.
On Windows* systems, if the name given is a directory name, the function only checks for existence. All directories have read/write access on Windows systems.