*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: rfork_thread | Section: 3 | Source: FreeBSD | File: rfork_thread.3.gz
RFORK_THREAD(3) FreeBSD Library Functions Manual RFORK_THREAD(3) NAME rfork_thread - create a rfork-based process thread LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <unistd.h> pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg); DESCRIPTION The rfork_thread() function has been deprecated in favor of pthread_create(3). The rfork_thread() function is a helper function for rfork(2). It arranges for a new process to be created and the child process will call the specified function with the specified argument, while running on the supplied stack. Using this function should avoid the need to implement complex stack swap code. RETURN VALUES Upon successful completion, rfork_thread() returns the process ID of the child process to the parent process. Otherwise, a value of -1 is returned to the parent process, no child process is created, and the global variable errno is set to indicate the error. The child process context is not aware of a return from the rfork_thread() function as it begins executing directly with the supplied function. ERRORS See rfork(2) for error return codes. SEE ALSO fork(2), intro(2), minherit(2), rfork(2), vfork(2), pthread_create(3) HISTORY The rfork_thread() function first appeared in FreeBSD 4.3. FreeBSD 14.1-RELEASE-p8 February 6, 2011 FreeBSD 14.1-RELEASE-p8

Navigation Options