minix/lib/syslib/sys_fork.c
Ben Gras 5d7f5fccf5 . rename message fields to endpoint variants
. remove or optionalify some pci debugging stuff
2006-03-03 09:44:55 +00:00

18 lines
397 B
C
Executable file

#include "syslib.h"
PUBLIC int sys_fork(parent, child, child_endpoint)
int parent; /* process doing the fork */
int child; /* which proc has been created by the fork */
int *child_endpoint;
{
/* A process has forked. Tell the kernel. */
message m;
int r;
m.PR_ENDPT = parent;
m.PR_SLOT = child;
r = _taskcall(SYSTASK, SYS_FORK, &m);
*child_endpoint = m.PR_ENDPT;
return r;
}