next up previous contents index
Next: The MMX unit Up: Functions and procedures Previous: TCFlow

TCFlush

   

Declaration:

Function TCFlush (Fd,QSel:longint) : Boolean;

Description:

TCFlush discards all data sent or received to/from file descriptor fd. QSel indicates which queue should be discard. It can be one of the following pre-defined values :

TCIFLUSH
input,
TCOFLUSH
output,
TCIOFLUSH
both input and output.

The function returns True if the call was succesfull, False otherwise.

Errors:

Errors are reported in LinuxError.

See also:

termios (2)



Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998