On Mon, 11 Feb 2002, Daniel Eischen wrote:

> On Mon, 11 Feb 2002, Garrett Wollman wrote:
> > <<On Mon, 11 Feb 2002 12:16:44 -0500 (EST), Daniel Eischen 
> >
> > > 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.


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

Reply via email to