TIOCSETA, TIOCSETAF, TIOCSETAW

Set terminal properties from a termios structure

Synopsis:

#include <sys/ioctl.h>

#define TIOCSETA        _IOW('t', 20, struct termios)   /* set termios struct */
#define TIOCSETAW       _IOW('t', 21, struct termios)   /* drain output, set */
#define TIOCSETAF       _IOW('t', 22, struct termios)   /* drn out, fls in, set */

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TIOCSETA, TIOCSETAF, or TIOCSETAW
Additional argument A pointer to a struct termios

Description:

These commands change the current terminal control settings of a device:

They're also implemented as devctl() commands:

ioctl() command devctl() command
TIOCSETA DCMD_CHR_TCSETATTR
TIOCSETAF DCMD_CHR_TCSETATTRF
TIOCSETAW DCMD_CHR_TCSETATTRD
Note: These commands are for internal use, and you shouldn't use them directly. Instead use the tcsetattr() cover function.

Input:

A termios structure.

Output:

None.

See also:

DCMD_CHR_TCSETATTR, DCMD_CHR_TCSETATTRD, DCMD_CHR_TCSETATTRF, TIOCGETA

ioctl(), termios in the QNX Neutrino C Library Reference