TIOCMGET

Get all modem bits

Synopsis:

#include <sys/ioctl.h>

#define TIOCMGET        _IOR('t', 106, int)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TIOCMGET
Additional argument A pointer to an int

Description:

This command gets all modem status bits for the terminal device. It's also implemented as the DCMD_CHR_LINESTATUS devctl() command.

Input:

None.

Output:

The modem bits, a combination of the following:

See also:

DCMD_CHR_LINESTATUS, TIOCMBIC, TIOCMBIS, TIOCMSET

ioctl() in the QNX Neutrino C Library Reference