DCMD_CHR_TCGETSID
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get the process group ID of a controlling terminal's session leader
Synopsis:
#include <sys/dcmd_chr.h>
#define DCMD_CHR_TCGETSID __DIOF(_DCMD_CHR, 7, pid_t)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_CHR_TCGETSID |
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 of the session leader for a controlling terminal.
Note:
This command is for internal use, and you shouldn't use it directly.
Instead use the
tcgetsid()
cover function.
Input:
None.
Output:
The process group ID.
See also:
devctl(), tcgetsid() in the QNX OS C Library Reference
Page updated: