Get the process group ID associated with a device
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCGETPGRP __DIOF(_CMD_IOCTL_TTY, 119, pid_t) /* TIOCGPGRP */
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device. |
| dcmd | DCMD_CHR_TCGETPGRP |
| dev_data_ptr | A pointer to a pid_t |
| n_bytes | sizeof(pid_t) |
| dev_info_ptr | NULL |
This command gets the process group ID associated with a device. It's also implemented as the TIOCGPGRP ioctl() command.
None.
The process group ID.
devctl(), tcgetpgrp() in the QNX Neutrino C Library Reference