DCMD_CHR_TCFLUSH

QNX SDP8.0Devctl and Ioctl CommandsDeveloper

Flush the input or output stream

Synopsis:

#include <sys/dcmd_chr.h>

#define DCMD_CHR_TCFLUSH   __DIOT(_CMD_IOCTL_TTY, 16, int) /* TIOCFLUSH */

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_CHR_TCFLUSH
dev_data_ptr A pointer to an int
n_bytes sizeof(int)
dev_info_ptr NULL

Description:

This command flushes the input and/or output stream associated with the file descriptor. It's also implemented as the TIOCFLUSH ioctl() command.

Note:
This command is for internal use, and you shouldn't use it directly. Instead use the tcflush() cover function.

Input:

The queue selector; one of:

  • TCIFLUSH — discard all data that's received, but not yet read, on the device associated with filedes.
  • TCOFLUSH — discard all data that's written, but not yet transmitted, on the device associated with filedes.
  • TCIOFLUSH — discard all data that's written, but not yet transmitted, as well as all data that's received, but not yet read, on the device associated with filedes.

Output:

None.

See also:

TIOCFLUSH

devctl(), tcflush() in the QNX OS C Library Reference

Page updated: