Set the owner of a file
#include <sys/ioctl.h> #define FIOSETOWN _IOW('f', 124, int)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | FIOSETOWN |
Additional argument | A pointer to an int |
This command sets the owner of the file. It's implemented as a call to fcntl() with a command of F_SETOWN.
If the file descriptor refers to a socket, the process or process group ID that you want 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.
None.