------- Comment #4 from burnus at gcc dot gnu dot org 2010-06-28 19:29 ------- (In reply to comment #2) > See unix.c:buf_flush(). Called via the sflush() inline function/function > pointer thingy. libgfortran does not use C stdio > (fread/fwrite/fflush/fseek/...), but rather the lower level unbuffered > POSIX IO (read/write/lseek)
Seemingly, I mixed this up with O_NONBLOCK; thus, indeed the POSIX I/O should be unbuffered. Thus, the question is why does MinGW buffer? Cf. http://www.opengroup.org/onlinepubs/000095399/functions/write.html -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktietz at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44698