TCSETA, TCSETAF, TCSETAW
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Set terminal properties from a termio structure
Synopsis:
#include <sys/ioctl.h>
#define TCSETA _IOW('T', 2, struct termio)
#define TCSETAW _IOW('T', 3, struct termio)
#define TCSETAF _IOW('T', 4, struct termio)
Arguments to ioctl():
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | TCSETA, TCSETAF, or TCSETAW |
Additional argument | A pointer to a struct termio |
Description:
These commands change the current terminal control settings of a device:
- TCSETA — make the change immediately
- TCSETAF — Don't make the change until all currently written data has been transmitted, at which point any received but unread data is also discarded.
- TCSETAW — don't make the change until all currently written data has been transmitted.
Note:
These commands are for internal use, and you shouldn't use them directly.
Instead use the
tcsetattr()
cover function.
The TCSETS, TCSETSF, and TCSETSW ioctl() commands are similar, but they use a struct termios instead of a struct termio.
Input:
A termio structure.
Output:
None.
See also:
TCGETA, TCSETS, TCSETSF, TCSETSW, TIOCSETA, TIOCSETAF, TIOCSETAW
ioctl(), in the QNX OS C Library Reference
Page updated: