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 #6 from ktietz at gcc dot gnu dot org  2010-06-29 20:24 -------
(In reply to comment #5)
> One possible cause of this problem is that in configuration there could be
> something going wrong with stat functions returning 32-bit vs 64-bit values.  

This seems not to be the issue here. sys/stat.h includes sys/types.h, so there
is no need to put it in front explicit.

The issue is that Windows C-runtimes uses OS buffer File I/O, which means that
data will be written just when page-size (4k) is full. By calling _commit,
which is like fsync, it is forced that buffer gets physical written to disk.

Kai


-- 


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]