Next: , Previous: FSEEK, Up: Intrinsic Procedures


6.76 FSTAT — Get file status

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

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

Standard:
GNU extension
Class:
Non-elemental subroutine
Syntax:
CALL FSTAT(UNIT, BUFF [, STATUS])
Arguments:

UNIT An open I/O unit number of type INTEGER.
BUFF The 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.
See also:
To stat a link: LSTAT, to stat a file: STAT