DCMD_CHR_TCGETPGRP

Get the process group ID associated with a device

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_TCGETPGRP   __DIOF(_CMD_IOCTL_TTY, 119, pid_t) /* TIOCGPGRP */

Arguments to devctl():

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

Description:

This command gets the process group ID associated with a device. It's also implemented as the TIOCGPGRP ioctl() command.

Note: This command is for internal use, and you shouldn't use it directly. Instead use the tcgetpgrp() cover function.

Input:

None.

Output:

The process group ID.

See also:

DCMD_CHR_TCSETPGRP, TIOCGPGRP

devctl(), tcgetpgrp() in the QNX Neutrino C Library Reference