[Bug stdio/17063] fclose() may fail to flush data

siddhesh at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 23 15:15:00 GMT 2014


https://sourceware.org/bugzilla/show_bug.cgi?id=17063

--- Comment #3 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
(In reply to Paul Pluzhnikov from comment #2)
> This is quite end-user unfriendly behavior:
> - it's new ("broke" somewhere between glibc-2.15 and 2.19),
> - it's "broken" only for some, but not all, calls to output followed by
> input without intervening flush.

Yes, it broke when I wrote a new implementation of ftell.  The earlier
implementation was essentially an alias for fseek (fp, 0, SEEK_CUR), which is
why it worked as an intermediate function to switch between reads and writes. 
I didn't bother versioning the change because we explicitly forbid the
behaviour this bug relies on.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list