Previous section.

Technical Standard: Networking Services (XNS), Issue 5.2 Draft 2.0
Copyright © 1999 The Open Group

NAME

fcntl - file control
Note:
The XSH specification contains the basic definition of this interface. The following additional information pertains to Sockets.

DESCRIPTION

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.

RETURN VALUE

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.

CHANGE HISTORY

First released in Issue 4.

Contents Next section Index