Buglet in fseek?

Corinna Vinschen vinschen@redhat.com
Mon Feb 20 17:55:00 GMT 2006


On Feb 20 11:44, Jeff Johnston wrote:
> Regarding your other note, we could make my initial solution simpler. 
> fflush() on a read-only stream sets the _SNPT flag on and fseek() clears 
> it appropriately after doing the lseek.  This solves the problem and 
> doesn't care about what is done in-between.  If you fflush() a read-only 
> stream, then the next fseek()/rewind() you do will be unoptimized.  I 
> think that is fair.

Yep, that sounds good to me.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Newlib mailing list