freebsd-dev/lib/libc/amd64/gen
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
..
_setjmp.S Remove unnecessary alternate entry points for *setjmp(). Make the main 2000-01-20 21:58:27 +00:00
frexp.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
infinity.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
isinf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ldexp.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Makefile.inc rfork(2) wrapper for simple rfork-style threads. I have lost count of 2000-07-29 07:14:04 +00:00
setjmp.S Use assembler directives rather than ALTENTRY() so that longjmp() and 2000-05-04 04:36:26 +00:00
sigsetjmp.S Use assembler directives rather than ALTENTRY() so that longjmp() and 2000-05-04 04:36:26 +00:00