| Updated: October 28, 2024 |
Get all modem bits
#include <sys/ioctl.h>
#define TIOCMGET _IOR('t', 106, int)
| Argument | Value |
|---|---|
| fd | A file descriptor that you obtained by opening the device |
| request | TIOCMGET |
| Additional argument | A pointer to an int |
This command gets all modem status bits for the terminal device. It's also implemented as the DCMD_CHR_LINESTATUS devctl() command.
None.
The modem bits, a combination of the following:
DCMD_CHR_LINESTATUS, TIOCMBIC, TIOCMBIS, TIOCMSET
ioctl() in the QNX Neutrino C Library Reference