Get the process group ID associated with a device
#include <sys/ioctl.h> #define TIOCGPGRP _IOR('t', 119, int) #define TIOCGETPGRP _IOR('t', 131, int)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | TIOCGETPGRP or TIOCGPGRP |
Additional argument | A pointer to an int |
These commands get the process group ID associated with a device. They're also implemented as the DCMD_CHR_TCGETPGRP devctl() command.
None.
The process group ID.
DCMD_CHR_TCGETPGRP, TIOCSETPGRP, TIOCSPGRP
ioctl() in the QNX Neutrino C Library Reference