Date: Sat, 29 Jul 2000 10:23:03 -0600 (MDT) From: Nate Williams <nate@yogotech.com> To: Peter Wemm <peter@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/i386/gen rfork_thread.S Makefile.inc Message-ID: <200007291623.KAA29162@nomad.yogotech.com> In-Reply-To: <200007290714.AAA13726@freefall.freebsd.org> References: <200007290714.AAA13726@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007291623.KAA29162>