Get the owner of a file
#include <sys/ioctl.h> #define FIOGETOWN _IOR('f', 123, int)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | FIOGETOWN |
Additional argument | A pointer to an int |
This command gets the owner of the file. It's implemented as a call to fcntl() with a command of F_GETOWN.
None.
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.