DCMD_CHR_TTYINFO
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get information about a terminal device
Synopsis:
#include <sys/dcmd_chr.h>
#define DCMD_CHR_TTYINFO __DIOF(_DCMD_CHR, 10, struct _ttyinfo)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_CHR_TTYINFO |
dev_data_ptr | A pointer to a struct _ttyinfo (see below) |
n_bytes | sizeof(struct _ttyinfo) |
dev_info_ptr | NULL |
Description:
This command obtains information about a terminal device. It returns the name of the device associated with its file descriptor, and the number of clients that have an open file descriptor to this terminal device.
Input:
None.
Output:
A filled-in _ttyinfo structure:
struct _ttyinfo {
int opencount;
char ttyname[32];
};
See also:
devctl() in the QNX OS C Library Reference
Page updated: