flush(3F)
FLUSH - Writes data buffered by Fortran output statements to a file
Showing IRIX 6.5.30 (default release). Last changed in IRIX 6.5.19.
NAME FLUSH - Writes data buffered by Fortran output statements to a file SYNOPSIS CALL FLUSH(iunit, istat) DESCRIPTION FLUSH writes to a file any buffered data previously written by Fortran output statements. FLUSH may be called after reading or writing. The current file position is not changed. All arguments must be of default kind unless documented otherwise. On IRIX systems, the default kind is KIND=4. This routine has the following arguments: iunit Integer variable, expression, or constant containing a Fortran unit number. If this value is 101, it flushes the unit which is connected to standard output. If this value is 102, it flushes the unit which is connected to standard error. istat Integer variable or array element that receives the return status as follows: =0 Indicates that all buffered data, if any, was flushed. A file that was immediately read, or a file with a buffer that has not changed since the last flush, might return a 0 status even though no new data would be written to the file. -1 Indicates that the Fortran unit does not support FLUSH, and no data was written to the file. >0 Indicates that an error condition was encountered. The specific error number is returned. Use the explain(1) command for a description of the error code. NOTES If FLUSH is called with an unconnected unit, an error condition results (except for units 101 and 102). Calling FLUSH for a file for which the program does not have write permission returns a 0 status if no data was written to that file previously with Fortran I/O statements. SEE ALSO explain(1)