Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFTCFLUSH

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

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