Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
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.