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


f_dupfd

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

Read syntax diagramSkip visual syntax diagram
>>-f_dupfd--fd--fd2--------------------------------------------><

Function

f_dupfd invokes the fcntl callable service to duplicate the lowest file descriptor that is equal to or greater than fd2 and not already associated with an open file. The file descriptor is returned in RETVAL.

Parameters

fd
The file descriptor (a number) that you want to duplicate.
fd2
The file descriptor (a number) at which to start looking for an available file descriptor.

Example

In the following example, assume that fd and fd2 were assigned values earlier in the exec:
"f_dupfd" fd fd2

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014