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).
This commit is contained in:
Peter Wemm 2000-07-29 11:53:35 +00:00
parent 13dfe2f092
commit 253fafca68
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64005

View File

@ -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 *));