TIOCSETA, TIOCSETAF, TIOCSETAW
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
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:
- TIOCSETA — make the change immediately
- TIOCSETAF — Don't make the change until all currently written data has been transmitted, at which point any received but unread data is also discarded.
- TIOCSETAW — don't make the change until all currently written data has been transmitted.
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
Page updated: