From owner-freebsd-current Tue Feb 12 2:22: 1 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 CBE6D37B402 for ; Tue, 12 Feb 2002 02:21:56 -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 VAA16152; Tue, 12 Feb 2002 21:17:47 +1100 Date: Tue, 12 Feb 2002 21:20:40 +1100 (EST) From: Bruce Evans X-X-Sender: To: Daniel Eischen Cc: Garrett Wollman , Subject: Re: function name collision on "getcontext" with ports/editors/joe In-Reply-To: Message-ID: <20020212211137.F3838-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 Mon, 11 Feb 2002, Daniel Eischen wrote: > On Mon, 11 Feb 2002, Garrett Wollman wrote: > > < said: > > > > > How do you easily forward declare something that is a typedef? > > > > There is a reason style(9) says not to use such typedefs. > > Unfortunately, this one it written into a standard. Since We Are The > > Implementation, there is no difficulty in simply writing the > > appropriate structure type into the relevant declarations. > > OK, thanks. I believe there is a difficulty: POSIX at least used to require applications to be able to declare prototypes for functions in POSIX headers using lexically the same definition as in the standard. In the case of ucontext_t, this might not be a problem, since the implementation can declare ucontext_t as an incomplete struct type. The both the implementation and applications can use ucontext_t * in prototypes. OTOH, sigreturn() is not a POSIX function so the POSIX rules don't apply directly. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message