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


f_setfd

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

Read syntax diagramSkip visual syntax diagram
>>-f_setfd--fd--close_exec-------------------------------------><

Function

f_setfd invokes the fcntl callable service to set file descriptor flags.

Parameters

fd
The file descriptor (a number) for the file.
close_exec
A numeric value to indicate whether this file descriptor should remain open after an exec:
  • 0 indicates that it should remain open.
  • 1 indicates that it should be closed.

Example

To set the flags for the file identified by file descriptor 0 and indicate that this file descriptor should remain open during an exec:
"f_setfd 0 0"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014