Subject: Re: quick question to C programmers
To: Hauke Fath <hf@spg.tu-darmstadt.de>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 04/07/2005 18:20:48
> That's why I asked for the preprocessor output... As listed above, 
> NetBSD uses a constant array for stdin, stdout. When I search the 
> preprocessor output on a debian linux (gcc 3.3.5), I get an
> 
> extern struct _IO_FILE *stdin;
> extern struct _IO_FILE *stdout;
> extern struct _IO_FILE *stderr;
> 
> which looks not necessarily constant for gcc. So it looks like you 
> are stumbling over libc stdio implementation details here.

I would find it hard to believe to be the first one to do so, given that
the affected platforms are not too exotic :-)
In fact, it seems to be a pretty old issue:
http://sources.redhat.com/ml/cygwin/1997-12/msg00130.html
According to this article, it should be trated as a bug of the code.
So should x11/Xaw-Xpm get a patch?


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de  +49 178 8545053