TIOCGETPGRP, TIOCGPGRP

Get the process group ID associated with a device

Synopsis:

#include <sys/ioctl.h>

#define TIOCGPGRP       _IOR('t', 119, int)
#define TIOCGETPGRP     _IOR('t', 131, int)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TIOCGETPGRP or TIOCGPGRP
Additional argument A pointer to an int

Description:

These commands get the process group ID associated with a device. They're also implemented as the DCMD_CHR_TCGETPGRP devctl() command.

Note: These commands are for internal use, and you shouldn't use them directly. Instead use the tcgetpgrp() cover function.

Input:

None.

Output:

The process group ID.

See also:

DCMD_CHR_TCGETPGRP, TIOCSETPGRP, TIOCSPGRP

ioctl() in the QNX Neutrino C Library Reference