This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/26509] incorrect behaviour of error-handler for internal read
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2006 14:56:03 -0000
- Subject: [Bug fortran/26509] incorrect behaviour of error-handler for internal read
- References: <bug-26509-11277@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from jvdelisle at gcc dot gnu dot org 2006-03-09 14:56 -------
If you are doing sequential writes, the write truncates the file. So if you
write out 8 bytes where there were 4 before, it just overwrites and extends the
file length if necessary. All data after the last write goes away. This is
normal behavior.
If it is DIRECT I/O you are doing, this is a different story and record sizes
are fixed length.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26509