From owner-freebsd-current Tue Sep 7 4:23:44 1999 Delivered-To: freebsd-current@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 1B75A14FF0; Tue, 7 Sep 1999 04:23:37 -0700 (PDT) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i140.ztm.euronet.nl [194.134.112.101]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id NAA02380; Tue, 7 Sep 1999 13:22:04 +0200 (MET DST) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id NAA84290; Tue, 7 Sep 1999 13:21:59 +0200 (CEST) (envelope-from marcel@scc.nl) Message-ID: <37D4F557.F4F743E7@scc.nl> Date: Tue, 07 Sep 1999 13:21:59 +0200 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Wemm Cc: Garrett Wollman , current@FreeBSD.ORG, jb@FreeBSD.ORG Subject: Re: Signal changes and {,sig}{set,long}jmp References: <19990907103348.2801F1CA8@overcee.netplex.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Wemm wrote: > > Before getting too far here, can we consider some other standard interfaces? > > #include > > 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