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


f_setfl

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

Read syntax diagramSkip visual syntax diagram
>>-f_setfl--fd--flags------------------------------------------><

Function

f_setfl invokes the fcntl callable service to set file status flags.

Parameters

fd
The file descriptor (a number) for the file.
flags
A value that sets the file status flags. To specify the information, you can specify a numeric value (see REXX predefined variables) or a predefined variable beginning with O_ used to derive the appropriate numeric value. The permitted values are:
Variable Description
O_APPEND Set offset to EOF on write.
O_NONBLOCK Do not block an open, a read, or a write on the file (do not wait for terminal input).
O_SYNC Force synchronous updates.

Example

To set the O_APPEND file status flag for the file identified by file descriptor 1:
"f_setfl 1" o_append

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014