diff options
author | peter <peter@FreeBSD.org> | 2000-07-29 11:53:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-07-29 11:53:35 +0000 |
commit | c749b2743d2232cb7447bb86ac98af43645d1b58 (patch) | |
tree | 60c01504ba4b18f709ef597302df67a8ba994a68 /include/unistd.h | |
parent | 509e3bd40204da3685b40b7af34b97c78605c35d (diff) | |
download | FreeBSD-src-c749b2743d2232cb7447bb86ac98af43645d1b58.zip FreeBSD-src-c749b2743d2232cb7447bb86ac98af43645d1b58.tar.gz |
Add a prototype for rfork_thread().
pid_t rfork_thread(int forkflags, void *stack, int (*func)(void *arg),
void *arg);
A new process is created, presumably using RFMEM shared address space.
The child process switches to the supplied stack, which is set up with a
function call frame. The function is called with the supplied arguement.
If the function returns, the return value will be used with _exit(2).
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h index 3d877b0..45679e5 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -174,6 +174,7 @@ int readlink __P((const char *, char *, int)); int reboot __P((int)); int revoke __P((const char *)); pid_t rfork __P((int)); +pid_t rfork_thread __P((int, void *, int (*) __P((void *)), void *)); int rresvport __P((int *)); int rresvport_af __P((int *, int)); int ruserok __P((const char *, int, const char *, const char *)); |