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


f_getfd

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

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

Function

f_getfd invokes the fcntl callable service to get the file descriptor flags for a file.

Parameters

fd
The file descriptor (a number) for the file.

Usage notes

The file descriptor flags are returned in RETVAL. The only POSIX-defined flag is FCTLCLOEXEC. To determine if this flag is set, use this expression: (retval//2)=1

Example

To get the file descriptor flags for file descriptor 0:
"f_getfd 0"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014