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

ID 767251
Date 6/24/2024
Public

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

Document Table of Contents

PXFOPENDIR

POSIX Subroutine: Opens a directory and associates a stream with it.

Module

USE IFPOSIX

CALL PXFOPENDIR (dirname,lendirname,opendirid,ierror)

dirname

(Input) Character. The directory name.

lendirname

(Input) INTEGER(4). The length of dirname string.

opendirid

(Output) INTEGER(4). The returned ID for the directory.

ierror

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

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

This subroutine opens a directory pointed to by the dirname argument and returns the ID of the directory into opendirid. After the call, this ID can be used by functions PXFREADDIR, PXFREWINDDIR, PXFCLOSEDIR.