DCMD_CHR_TCFLUSH

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:

Output:

None.

See also:

TIOCFLUSH

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