Intel® Fortran Compiler 18.0 Developer Guide and Reference

PXFTCFLUSH (L*X, M*X)

POSIX Subroutine: Discards terminal input data, output data, or both.

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