Question on stdio standard behaviour (Bugreport libc/755)

Jonathan Larmour jlarmour@cygnus.co.uk
Tue Aug 25 02:31:00 GMT 1998


Wolfram Gloger wrote:
> 
> > we've received the appended bugreport.  The essence is that "perl
> > expects that fclose followed by fopen will return the same pointer".
> > This works on most platforms but not with libc5 and glibc2.
> 
> Considering that FILE structures are allocated with malloc(), this is
> a completely bogus assumption, IMHO.

Absolutely. And it also begs the question, why don't they use freopen()?
That's what its for.

Jonathan L.
-- 
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"Women marry hoping their husbands will change, men||Home e-mail: jifl @ 
marry hoping their wives never do. Both are rare." ||     jifvik.demon.co.uk
Help fight spam! http://spam.abuse.net/  These opinions are all my own fault



More information about the Libc-hacker mailing list