Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFREADDIR

POSIX Subroutine: Reads the current directory entry.

Module

USE IFPOSIX

CALL PXFREADDIR (idirid,jdirent,ierror)

idirid

(Input) INTEGER(4). The ID of a directory obtained from PXFOPENDIR.

jdirent

(Output) INTEGER(4). A handle of structure dirent.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The PXFREADDIR subroutine reads the entry of the directory associated with idirid into the structure associated with handle jdirent.

NOTE:

To get a handle for an instance of the dirent structure, use PXFSTRUCTCREATE with the string 'dirent' for the structure name.