DCMD_CHR_TCSETPGRP

Set the process group ID associated with a device

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_TCSETPGRP   __DIOT(_CMD_IOCTL_TTY, 118, pid_t) /* TIOCSPGRP */

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_TCSETPGRP
dev_data_ptr A pointer to a pid_t
n_bytes sizeof(pid_t)
dev_info_ptr NULL

Description:

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

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

Input:

The process group ID.

Output:

None.

See also:

DCMD_CHR_TCGETPGRP, TIOCSPGRP

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