This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Question on stdio standard behaviour (Bugreport libc/755)
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