From owner-cvs-all Sat Jul 29 9:23:24 2000 Delivered-To: cvs-all@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id A4BCC37BA6C; Sat, 29 Jul 2000 09:23:17 -0700 (PDT) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id KAA20110; Sat, 29 Jul 2000 10:23:13 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id KAA29162; Sat, 29 Jul 2000 10:23:03 -0600 (MDT) (envelope-from nate) Date: Sat, 29 Jul 2000 10:23:03 -0600 (MDT) Message-Id: <200007291623.KAA29162@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Peter Wemm Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/i386/gen rfork_thread.S Makefile.inc In-Reply-To: <200007290714.AAA13726@freefall.freebsd.org> References: <200007290714.AAA13726@freefall.freebsd.org> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > peter 2000/07/29 00:14:05 PDT > > Modified files: > lib/libc/i386/gen Makefile.inc > Added files: > lib/libc/i386/gen rfork_thread.S > Log: > rfork(2) wrapper for simple rfork-style threads. I have lost count of > the number of times I have given this to people and got asked: why isn't > it in libc? It is impossible to do this without assembler glue to reset > the stack for the new child process. > > int rfork_thread(flags, stack_addr, start_fnc, start_arg) > int flags; Flags to rfork system call. See rfork(2). > void *stack_addr; Top of stack for thread. > int (*start_fnc)(void *); Address of thread function to call in child. > void *start_arg; Argument to pass to the thread function in child. > > This is deliberately not documented or prototyped in includes until the > corresponding alpha version is written. Whoo hoo!! Thanks Peter! Nate > > Revision Changes Path > 1.11 +2 -2 src/lib/libc/i386/gen/Makefile.inc > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message