Changes in libcfa/src/fstream.cfa [bbdf954:874b16e]
- File:
-
- 1 edited
-
libcfa/src/fstream.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/fstream.cfa
rbbdf954 r874b16e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jun 17 08:51:12202313 // Update Count : 5 2812 // Last Modified On : Mon Jun 5 22:00:23 2023 13 // Update Count : 518 14 14 // 15 15 … … 169 169 if ( cnt == 9 ) abort( "ofstream fmt EINTR spinning exceeded" ); 170 170 } // for 171 if ( len == EOF ) { // error writing ? 172 abort | IO_MSG "invalid write"; 171 if ( len == EOF ) { 172 if ( ferror( (FILE *)(os.file$) ) ) { 173 abort | IO_MSG "invalid write"; 174 } // if 173 175 } // if 174 176 va_end( args ); … … 300 302 if ( len != EOF || errno != EINTR ) break; // timer interrupt ? 301 303 } // for 302 if ( len == EOF ) { // EOF or matching failure ?303 if ( ! feof( (FILE *)(is.file$) ) &&ferror( (FILE *)(is.file$) ) ) {304 if ( len == EOF ) { 305 if ( ferror( (FILE *)(is.file$) ) ) { 304 306 abort | IO_MSG "invalid read"; 305 307 } // if
Note:
See TracChangeset
for help on using the changeset viewer.