From owner-freebsd-current Mon Feb 12 17:21:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id F117737B65D for ; Mon, 12 Feb 2001 17:21:25 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f1D1LHU56217; Mon, 12 Feb 2001 17:21:17 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200102130121.f1D1LHU56217@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Daniel Eischen Cc: Warner Losh , John Indra , freebsd-current@FreeBSD.ORG Subject: Re: Patch for FILE problems (was Re: -CURRENT is bad for me...) In-Reply-To: <3A887FAE.CF15C4BE@vigrid.com> Date: Mon, 12 Feb 2001 17:21:17 -0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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... 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. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message