Subject: Re: src/gnu/usr.bin/egcs/common
To: Noriyuki Soda <>
From: Bill Sommerfeld <>
List: tech-userlevel
Date: 12/21/1999 15:18:17
> At least, ANSI/ISO-C permits that stdin/stdout/stderr are
> variable (not constant), thus, programs which are doing (A)
> are not portable, from the ANSI/ISO-C point of view.

True.  But we could avoid breaking such programs with something like:

	extern FILE __sFstdin[], __sFstdout[], __sFstderr[];

	#define stdin __sFstdin[0]
	#define stdout __sFstdout[0]
	#define stderr __sFstderr[0]

						- Bill