2005-04-21 16:53:53 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
2005-07-29 17:01:59 +02:00
|
|
|
PUBLIC int sys_fork(parent, child)
|
2005-04-21 16:53:53 +02:00
|
|
|
int parent; /* process doing the fork */
|
|
|
|
int child; /* which proc has been created by the fork */
|
|
|
|
{
|
|
|
|
/* A process has forked. Tell the kernel. */
|
|
|
|
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.PR_PPROC_NR = parent;
|
|
|
|
m.PR_PROC_NR = child;
|
|
|
|
return(_taskcall(SYSTASK, SYS_FORK, &m));
|
|
|
|
}
|