From owner-freebsd-current Sun Feb 10 16:51: 8 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 7625B37B41C; Sun, 10 Feb 2002 16:50:52 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id LAA26232; Mon, 11 Feb 2002 11:50:40 +1100 Date: Mon, 11 Feb 2002 11:53:28 +1100 (EST) From: Bruce Evans X-X-Sender: To: Daniel Eischen Cc: Kevin Day , , Subject: Re: function name collision on "getcontext" with ports/editors/joe In-Reply-To: Message-ID: <20020211114221.H10505-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 10 Feb 2002, Daniel Eischen wrote: > On Mon, 11 Feb 2002, Bruce Evans wrote: > > includes for the normal namespace > > pollution that was needed to use sigreturn(2) (except sigreturn(2) > > itself isn't actually declared anywhere). Including > > gives the corresponding namespace pollution for using the current > > sigreturn(2). This is probably a mistake. (Don't believe the > > sigreturn man page; it documents osigreturn(2) for the i386 only.) > > Programs shouldn't have any problems with this, since they should > > define _POSIX_SOURCE if they only want the POSIX namespace ;-). > > Poking about on a Solaris 8 system shows that they have a > that defines the {get,set,make,swap}context > prototypes. also includes > to get the definitions for ucontext_t. is just as nonstandard as . > Under FreeBSD, is a link to , > which both declare ucontext_t and {get,set,make,swap}context. The link part is intentional. We have to have for use in the kernel, so it is simpler not to have a separate user header. The only advantage of the Solaris implementation is that it punishes applications that include the nonstandard header. > What do you recommend we do? Should we not include > from , or do what Solaris does, or just leave > everything as is? Don't include from , and fix whatever breaks. I think applications that use the new sigreturn can be required to include both and . There should be fewer of them than there used to be -- they can now use setcontext(). The old sigcontext/sigreturn stuff should be cleaned up too (don't export it to userland). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message