[Top][All Lists]
[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
- 'fflush' test failure on Cygwin, Bruno Haible, 2007/04/12
- Re: 'fflush' test failure on Cygwin, Eric Blake, 2007/04/12
- Re: operations on FILE streams, Bruno Haible, 2007/04/13
- Re: operations on FILE streams, Paul Eggert, 2007/04/13
- Re: operations on FILE streams, Bruno Haible, 2007/04/13
- Re: operations on FILE streams, Eric Blake-1, 2007/04/13
- Re: operations on FILE streams, Bruno Haible, 2007/04/13
- Re: operations on FILE streams, Paul Eggert, 2007/04/13
- Re: operations on FILE streams, Bruno Haible, 2007/04/13
- Re: 'fflush' test failure on Cygwin, Eric Blake, 2007/04/16