This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/44698] I/O: FLUSH does not actually flush the buffer?



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]