From owner-freebsd-current Sun Sep 10 16:21:57 2000 Delivered-To: freebsd-current@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 9854F37B424 for ; Sun, 10 Sep 2000 16:21:50 -0700 (PDT) Received: from vigrid.com (pm3-pt68.pcnet.net [206.105.29.142]) by pcnet1.pcnet.com (8.8.7/PCNet) with ESMTP id TAA16047; Sun, 10 Sep 2000 19:21:32 -0400 (EDT) Message-ID: <39BC16BA.4D089D86@vigrid.com> Date: Sun, 10 Sep 2000 19:18:18 -0400 From: "Daniel M. Eischen" X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-current@FreeBSD.org Cc: mitja@hermes.si, rse@engelschall.com Subject: Re: makecontext() & friends ? References: <20000909150305.A26019@lamu.hermes.si> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ Moved to -current ] Mitja Horvat wrote: > > Hi Dan, > > > I have implemented {make,get,set,swap}context as library routines > > for FreeBSD. They're gathering dust somewhere and need a bit of > > polishing. If you give me some time I can dust them off and > > send them to you. > > I would really appreciate if I could get my hands on this code. > Could you please specify a link, or if you prefer you can send the > tarball as an attachment to mitja@hermes.si. I've had a couple of requests for this in the past also. I've placed library versions of {make,get,set,swap}context() at: http://people.freebsd.org/~deischen/context/libc.diffs http://people.freebsd.org/~deischen/context/sys.diffs Also included are _getcontext() and _setcontext() which do not save and restore the signal mask. The alpha bits are included, but are uncompiled and untested. There are changes to which are needed to build libc, so you have to either hand patch /usr/include/sys/ucontext.h or install the include files after applying sys.diffs. Feedback and comments welcome, especially to the alpha bits. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message