source: trunk/minix/lib/syslib/sys_fork.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

  • Property svn:executable set to *
File size: 397 bytes
Line 
1#include "syslib.h"
2
3PUBLIC int sys_fork(parent, child, child_endpoint)
4int parent; /* process doing the fork */
5int child; /* which proc has been created by the fork */
6int *child_endpoint;
7{
8/* A process has forked. Tell the kernel. */
9
10 message m;
11 int r;
12
13 m.PR_ENDPT = parent;
14 m.PR_SLOT = child;
15 r = _taskcall(SYSTASK, SYS_FORK, &m);
16 *child_endpoint = m.PR_ENDPT;
17 return r;
18}
Note: See TracBrowser for help on using the repository browser.