[PATCH] Also flush write when reading large amount of data (BZ #18659)

Siddhesh Poyarekar siddhesh.poyarekar@gmail.com
Sat Jul 11 08:24:00 GMT 2015


On 11 July 2015 at 13:47, Andreas Schwab <schwab@linux-m68k.org> wrote:
> That testcase is INVALID.
>
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/fopen.html
>
> However, the application shall ensure that output is not directly
> followed by input without an intervening call to fflush() or to a file
> positioning function (fseek(), fsetpos(), or rewind()),

Ouch, of course, I don't know how I missed that.  I withdraw my patch
because an intervening fflush fixes the problem.

Thanks,
Siddhesh
-- 
http://siddhesh.in



More information about the Libc-alpha mailing list