DCMD_CHR_TCSETATTR, DCMD_CHR_TCSETATTRD, DCMD_CHR_TCSETATTRF

QNX SDP8.0Devctl and Ioctl CommandsDeveloper

Set terminal properties

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_TCSETATTR    __DIOT(_CMD_IOCTL_TTY, 20, struct termios)  /* TIOCSETA */
#define DCMD_CHR_TCSETATTRD   __DIOT(_CMD_IOCTL_TTY, 21, struct termios)  /* TIOCSETAW */
#define DCMD_CHR_TCSETATTRF   __DIOT(_CMD_IOCTL_TTY, 22, struct termios)  /* TIOCSETAF */

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_TCSETATTR, DCMD_CHR_TCSETATTRD, or DCMD_CHR_TCSETATTRF
dev_data_ptr A pointer to a struct termios
n_bytes sizeof(struct termios)
dev_info_ptr NULL

Description:

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

  • DCMD_CHR_TCSETATTR — make the change immediately
  • DCMD_CHR_TCSETATTRD — don't make the change until all currently written data has been transmitted.
  • DCMD_CHR_TCSETATTRF — don't make the change until all currently written data has been transmitted, at which point any received but unread data is also discarded.

They're also implemented as devctl() commands:

devctl() command ioctl() command
DCMD_CHR_TCSETATTR TIOCSETA
DCMD_CHR_TCSETATTRD TIOCSETAW
DCMD_CHR_TCSETATTRF TIOCSETAF
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_TCGETATTR, TIOCSETA, TIOCSETAF, TIOCSETAW

devctl(), tcsetattr(), termios in the QNX OS C Library Reference

Page updated: