freebsd-dev/lib/libc/amd64
Peter Wemm c932e5d18f 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.
2000-07-29 07:14:04 +00:00
..
gen rfork(2) wrapper for simple rfork-style threads. I have lost count of 2000-07-29 07:14:04 +00:00
net $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
sys Remove osig* from NOASM. It bogus now. 1999-10-14 10:00:39 +00:00
SYS.h Take care to avoid having "strong" and "weak" symbols of the same name in 2000-03-16 02:14:41 +00:00