The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group
NAME
fcntl - file control
- Note:
- The XSH specification for
fcntl()
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.
UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]