Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2002 21:23:46 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Daniel Eischen <eischen@pcnet1.pcnet.com>
Cc:        Terry Lambert <tlambert2@mindspring.com>, Kevin Day <toasty@shell.dragondata.com>, <current@FreeBSD.ORG>, <bde@FreeBSD.ORG>
Subject:   Re: function name collision on "getcontext" with ports/editors/joe
Message-ID:  <20020212212126.F3838-100000@gamplex.bde.org>
In-Reply-To: <Pine.GSO.4.10.10202111212450.2543-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Feb 2002, Daniel Eischen wrote:

> On Mon, 11 Feb 2002, Terry Lambert wrote:
> > Daniel Eischen wrote:
> > > Removing <sys/ucontext.h> from <sys/signal.h> prevents ucontext_t
> > > from being defined, so all users of <signal.h> would choke.
> > >
> > > We can change the prototype of sigreturn back to struct sigcontext *,
> > > or just forward declare ucontext_t in <signal.h> or <sys/signal.h>.
> >
> > Forward declare it.  People who need its internals will
> > include the proper header.

That header is traditionally <signal.h> :-).

> How do you easily forward declare something that is a typedef?
> You could forward declare struct __ucontext and use a pointer
> to that as the argument to sigreturn, but that doesn't seem
> right as it is relying on how ucontext_t is defined.

This is OK for the implementation -- see other followups.

Bruce


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?20020212212126.F3838-100000>