Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
fcntl() z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
The operating characteristics
of sockets can be controlled with the fcntl() call.
Note: COMMAND
values that are supported by the UNIX Systems Services fcntl() callable service are also supported.
The operations
to be controlled are determined by cmd.
The arg parameter is a variable, the meaning
of which depends on the value of the cmd parameter. The following commands are valid fcntl() commands:
Note: This function does not reject other values that
might be rejected downstream.
Return valuesFor the F_GETFL command, the return value
is the flags, set as a bit mask. For the F_SETFL command, the value 0 indicates success; the value -1 indicates an
error. Errno identifies the specific error.
Example
Related callsioctl(), getsockopt(), setsockopt(), socket() |
Copyright IBM Corporation 1990, 2014
|