z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


closedir

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-closedir--fd------------------------------------------------><

Function

closedir invokes the closedir callable service to close a directory.

Parameters

fd
The file descriptor (a number) for the directory to be closed.

Usage notes

closedir closes a directory file descriptor opened by the opendir syscall command. The rddir command reads a directory in the readdir callable service format. You can use opendir, rewinddir, and closedir together with the rddir syscall command, but not with the readdir syscall command. Alternatively, you can simply use the readdir syscall command to read an entire directory and format it in a stem.

Example

In the following example, assume that fd was assigned a value earlier in the exec:
"closedir" fd

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014