2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 FSTAT --- Get file status
9 *************************
11 .. index:: FSTAT, file system, file status
13 .. function:: FSTAT(UNIT, VALUES, STATUS)
15 ``FSTAT`` is identical to :ref:`STAT`, except that information about an
16 already opened file is obtained.
19 An open I/O unit number of type ``INTEGER``.
22 The type shall be ``INTEGER(4), DIMENSION(13)``.
25 (Optional) status flag of type ``INTEGER(4)``. Returns 0
26 on success and a system specific error code otherwise.
35 .. code-block:: fortran
37 CALL FSTAT(UNIT, VALUES [, STATUS])
38 STATUS = FSTAT(UNIT, VALUES)
41 See :ref:`STAT` for an example.