From owner-freebsd-current Wed Mar 22 6:39: 5 2000 Delivered-To: freebsd-current@freebsd.org Received: from gizmo.internode.com.au (gizmo.internode.com.au [192.83.231.115]) by hub.freebsd.org (Postfix) with ESMTP id 3A63A37BCA4 for ; Wed, 22 Mar 2000 06:38:59 -0800 (PST) (envelope-from newton@gizmo.internode.com.au) Received: (from newton@localhost) by gizmo.internode.com.au (8.9.3/8.9.3) id BAA94006; Thu, 23 Mar 2000 01:08:25 +1030 (CST) (envelope-from newton) Date: Thu, 23 Mar 2000 01:08:25 +1030 From: Mark Newton To: Arun Sharma Cc: Marcel Moolenaar , Peter Wemm , current@FreeBSD.ORG Subject: Re: ucontext Message-ID: <20000323010825.A93949@internode.com.au> References: <19990907103348.2801F1CA8@overcee.netplex.com.au> <37D4F557.F4F743E7@scc.nl> <20000321225432.A4533@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20000321225432.A4533@sharmas.dhs.org> X-PGP-Key: http://www.on.net/~newton/pgpkey.txt Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 21, 2000 at 10:54:32PM -0800, Arun Sharma 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 [ ... ] > Is anyone working on this ? Porting JDKs to FreeBSD would be a lot easier > if these routines are implemented. If it helps at all, these are (approxmiately :-) implemented in the svr4 emulator. I'm not sure that svr4_setcontext() is doing entirely the right thing, and there are some holes related to signal mask handling (which might be related to the "entirely the right thing" bit), but it's a start. - mark -- Mark Newton Email: newton@internode.com.au (W) Network Engineer Email: newton@atdot.dotat.org (H) Internode Systems Pty Ltd Desk: +61-8-82232999 "Network Man" - Anagram of "Mark Newton" Mobile: +61-416-202-223 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message