Next: , Previous: , Up: Intrinsic Procedures   [Contents][Index]


8.182 LSTAT — Get file status

Synopsis:
CALL LSTAT(NAME, VALUES [, STATUS])
STATUS = LSTAT(NAME, VALUES)
Description:

LSTAT is identical to STAT, except that if path is a symbolic link, then the operation is performed on the link itself, not the file that it refers to.

The elements in VALUES are the same as described by STAT.

This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.

Class:

Subroutine, function

Arguments:
NAMEThe type shall be CHARACTER of the default kind, a valid path within the file system.
VALUESThe type shall be INTEGER(4), DIMENSION(13).
STATUS(Optional) status flag of type INTEGER(4). Returns 0 on success and a system specific error code otherwise.
Example:

See STAT for an example.

Standard:

GNU extension

See also:

To stat an open file:
FSTAT
To stat a file:
STAT