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