fcntl - file control
- Note:
- The XSH specification contains the basic definition of this interface. The following additional information pertains to Sockets.
The following additional values for cmd are defined in<fcntl.h> :
- F_GETOWN
- If fildes refers to a socket, get the process or process group ID specified to receive SIGURG signals when out-of-band data is available. Positive values indicate a process ID; negative values, other than -1, indicate a process group ID. If fildes does not refer to a socket, the results are unspecified.
- F_SETOWN
- If fildes refers to a socket, set the process or process group ID specified to receive SIGURG signals when out-of-band data is available, using the value of the third argument, arg, taken as type int. Positive values indicate a process ID; negative values, other than -1, indicate a process group ID. If fildes does not refer to a socket, the results are unspecified.
Upon successful completion, the value returned depends on cmd as follows:
- F_GETOWN
- Value of the socket owner process or process group; this will not be -1.
- F_SETOWN
- Value other than -1.
First released in Issue 4.
Contents | Next section | Index |