bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'fflush' test failure on Cygwin


From: Bruno Haible
Subject: Re: 'fflush' test failure on Cygwin
Date: Fri, 13 Apr 2007 12:15:11 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> I'm still worried, though, that after using
> rpl_fflush/rpl_fseek, will fread/fgetc pick up at the correct character?
> I hope not to rewrite the entire stdio.

This should be feasible, since a stream has a state when the buffer is empty
and the file descriptor is not block-aligned: namely, early after program
initialization. If you ensure that all internal pointers/counters are set
according to this state, I don't expect that you would need to override
fread(), fgetc(), etc.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]