DCMD_CHR_TCGETATTR

Updated: April 19, 2023

Get the terminal properties

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_TCGETATTR   __DIOF(_CMD_IOCTL_TTY, 19, struct termios)  /* TIOCGETA */

Arguments to devctl():

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

Description:

This command gets the current terminal control settings of a device. It's also implemented as the TIOCGETA ioctl() command.

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

Input:

None.

Output:

A filled-in termios structure.

See also:

DCMD_CHR_TCSETATTR, DCMD_CHR_TCSETATTRD, DCMD_CHR_TCSETATTRF, TIOCGETA

devctl(), tcgetattr(), termios in the QNX Neutrino C Library Reference