next up previous contents index
Next: TCGetAttr 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
Thu Sep 10 13:59:33 CEST 1998