Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Sep 1999 13:21:59 +0200
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, current@FreeBSD.ORG, jb@FreeBSD.ORG
Subject:   Re: Signal changes and {,sig}{set,long}jmp
Message-ID:  <37D4F557.F4F743E7@scc.nl>
References:  <19990907103348.2801F1CA8@overcee.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm wrote:
> 
> Before getting too far here, can we consider some other standard interfaces?
> 
>      #include <ucontext.h>
> 
>      int getcontext(ucontext_t *ucp);
>      int setcontext(const ucontext_t *ucp);
>      void makecontext(ucontext_t *ucp, (void *func)(), int argc, ...);
>      int swapcontext(ucontext_t *oucp, const ucontext_t *ucp);
> 
> http://www.opengroup.org/onlinepubs/007908799/xsh/ucontext.h.html
> 
> setjmp,longjmp,sigreturn,etc can all be done with this interface and it can
> be used for libc_r and future kernel-assisted threading.

We're at a point where the discussion, altough meaningful and important,
has no direct impact on the sigset_t change. I agree with Peter that we
should as well consider the ucontext interface, but prefer to stay focussed
on changing sigset_t. So, here's where I shut up and let you discuss the
matter further :-)

FYI: I have reimplemented {sig|_}?{set|long}jmp to use the new sigset_t and
all works well. It's not really important for me at this time how these
functions are eventually implemented. For now I'm at least able to fix
userland code.

-- 
Marcel Moolenaar                        mailto:marcel@scc.nl
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:marcel@FreeBSD.org


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?37D4F557.F4F743E7>