TCSETS, TCSETSF, TCSETSW
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
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:
- TCSETS — make the change immediately
- TCSETSF — Don't make the change until all currently written data has been transmitted, at which point any received but unread data is also discarded.
- TCSETSW — don't make the change until all currently written data has been transmitted.
They're similar to the following ioctl() commands:
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
Page updated: