Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2001 20:31:41 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        Warner Losh <imp@harmony.village.org>, freebsd-current@FreeBSD.ORG
Subject:   Re: Patch for FILE problems (was Re: -CURRENT is bad for me...) 
Message-ID:  <Pine.SUN.3.91.1010212202717.11226A-100000@pcnet1.pcnet.com>
In-Reply-To: <200102130121.f1D1LHU56217@mobile.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 12 Feb 2001, Peter Wemm wrote:
> Daniel Eischen wrote:
> 
> > Attached is a patch that attempts to work around recent stdio
> > breakage in -current.  I've verified it compiles, but won't be
> > able to test it until at least tomorrow.  If someone wants to
> > review it and verify it works, I'll commit it.
> > 
> > Thanks,
> 
> >  __BEGIN_DECLS
> > -extern FILE __sF[];
> > +extern __old_FILE __sF[];
> >  __END_DECLS
> 
> > -#define	stdin	(&__sF[0])
> > -#define	stdout	(&__sF[1])
> > -#define	stderr	(&__sF[2])
> > +#define	stdin	((FILE *)&__sF[0])
> > +#define	stdout	((FILE *)&__sF[1])
> > +#define	stderr	((FILE *)&__sF[2])
> 
> The problem with this is that it carries the baggage into 5.0-RELEASE
> and beyond...

No, this hack was to be removed just before 5.0-release, not
to stay in throughout the 5.0 cycle.

> I wish there was a way we could get rid the array entirely
> and still stay compatable, but I dont see how. :-(  A major bump makes it
> easy.

I think there's merit in DES' verion bump to 500, 501, etc.

-- 
Dan Eischen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.1010212202717.11226A-100000>