FIOGETOWN

Get the owner of a file

Synopsis:

#include <sys/ioctl.h>

#define FIOGETOWN       _IOR('f', 123, int)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request FIOGETOWN
Additional argument A pointer to an int

Description:

This command gets the owner of the file. It's implemented as a call to fcntl() with a command of F_GETOWN.

Input:

None.

Output:

If the file descriptor refers to a socket, the process or process group ID that's specified to receive SIGURG signals when out-of-band data is available. Positive values indicate a process ID; negative values—other than -1, which indicates an error—indicate a process group ID.

See also:

FIOSETOWN

fcntl(), ioctl() in the QNX Neutrino C Library Reference