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


8.117 FSTAT — Get file status

Synopsis:
CALL FSTAT(UNIT, VALUES [, STATUS])
STATUS = FSTAT(UNIT, VALUES)
Description:

FSTAT is identical to STAT, except that information about an already opened file is obtained.

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:
UNITAn open I/O unit number of type INTEGER.
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 a link:
LSTAT
To stat a file:
STAT