"M. Warner Losh" wrote:
> Gotcha.  I'm thinking very seriously about keeping __sF support (but
> creating no new binaries with it in it) and the freeze on sizeof(FILE)
> through the 5.x series of releases because we botched the
> compatibility stuff so badly to give people a chance to catch their
> breaths before that reorg can happen.

Redefining stdio as:

#define stdin   (__stdio(0))
#define stdout  (__stdio(1))
#define stderr  (__stdio(2))

And then defining an __stdio() function that returns a pointer
to a struct FILE, would let you change the underlying implementation
however you wanted, later, without disrupting newly compiled programs.

This may not be entirely happy for static declarations:

FILE *fp = stdin;       /* default */

...but that's a compiler problem (I think).

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to