Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

PXFTCFLUSH

POSIX Subroutine: Discards terminal input data, output data, or both. This routine is only available for Linux.

Module

USE IFPOSIX

CALL PXFTCFLUSH (ifildes,iaction,ierror)

ifildes

(Input) INTEGER(4). The file descriptor associated with the terminal.

iaction

(Input) INTEGER(4). The action to perform.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The action performed depends on the value of iaction, which must be one of the following constant names:

Constant 1

Action

TCIFLUSH

Discards all data that has been received but not read.

TCOFLUSH

Discards all data that has been written but not transmitted.

TCIOFLUSH

Discards both data received but not read and data written but not transmitted. (Performs TCIFLUSH and TCOFLUSH actions.)

1These names can be used in PXFCONST or IPXFCONST.

See Also