Added lance entry to drivers.conf.
[minix3-old.git] / lib / syslib / sys_fork.c
blobfb0117d5fb596372821b7caf6935173e45d4fd99
1 #include "syslib.h"
3 PUBLIC int sys_fork(parent, child, child_endpoint, map_ptr)
4 int parent; /* process doing the fork */
5 int child; /* which proc has been created by the fork */
6 int *child_endpoint;
7 struct mem_map *map_ptr;
9 /* A process has forked. Tell the kernel. */
11 message m;
12 int r;
14 m.PR_ENDPT = parent;
15 m.PR_SLOT = child;
16 m.PR_MEM_PTR = (char *) map_ptr;
17 r = _taskcall(SYSTASK, SYS_FORK, &m);
18 *child_endpoint = m.PR_ENDPT;
19 return r;