On 05/02/2011 08:40 AM, Eric Blake wrote:
>> ! @item
>> ! @code{fflush} on an input stream changes the position of the stream to the
>> ! end of the previous buffer, on some platforms: mingw.
>>
>> Likewise not relevant: the position of the stream is irrelevant in fclose().
> 
> Yes it is.  test-closein has a test that validates that:
> 
> { test-closein consume; cat; } < file
> 
> outputs the remainder of file after the 6 bytes consumed by test-closein.

Then again, the GPL 'closein' module depends on fflush, so in the spirit
of modularity, fclose in isolation need not guarantee file offset as
long as fclose+fflush does.  I'm still testing patches...

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to