From owner-freebsd-arch Sat Jan 5 21:36:39 2002 Delivered-To: freebsd-arch@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id D494837B402 for ; Sat, 5 Jan 2002 21:36:37 -0800 (PST) Received: from vigrid.com (pm3-pt5.pcnet.net [206.105.29.79]) by pcnet1.pcnet.com (8.12.1/8.12.1) with ESMTP id g065ZUrU017702; Sun, 6 Jan 2002 00:35:31 -0500 (EST) Message-ID: <3C37E559.B011DF29@vigrid.com> Date: Sun, 06 Jan 2002 00:49:13 -0500 From: Dan Eischen X-Mailer: Mozilla 4.74 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: arch@freebsd.org Subject: Request for review: getcontext, setcontext, etc Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've got getcontext, setcontext, makecontext, and swapcontext implemented and would like to add them to libc. I've made the patch available at: http://people.freebsd.org/~deischen/ucontext/uc-libc-sys.diffs These are library level versions of these functions. Solaris has getcontext and setcontext as system calls. My intent is to replace libc_r's use of setjmp/longjmp and jmp_buf munging with these functions, so I don't want them as system calls. I also want to use them with the KSE-enabled threads library. Is there a reason that getcontext and setcontext need to be system calls? For those not familiar with these functions, see: http://www.opengroup.org/onlinepubs/007908799/xsh/ucontext.h.html -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message