TCSETS, TCSETSF, TCSETSW

Set terminal properties from a termios structure

Synopsis:

#include <sys/ioctl.h>

#define TCSETS          _IOW('T', 14, struct termios)
#define TCSETSW         _IOW('T', 15, struct termios)
#define TCSETSF         _IOW('T', 16, struct termios)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TCSETS, TCSETSF, or TCSETSW
Additional argument A pointer to a struct termios

Description:

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

They're similar to the following ioctl() commands:

TC* command TIOC* command
TCSETS TIOCSETA
TCSETSF TIOCSETAF
TCSETSW TIOCSETAW
Note: These commands are for internal use, and you shouldn't use them directly. Instead use the tcsetattr() cover function.

The TCSETA, TCSETAF, and TCSETAW ioctl() commands are similar, but they use a struct termio instead of a struct termios.

Input:

A termios structure.

Output:

None.

See also:

TCGETS, TCSETA, TCSETAF, TCSETAW, TIOCSETA, TIOCSETAF, TIOCSETAW

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