Last change
on this file since 15 was 9, checked in by Mattia Monga, 14 years ago |
Minix 3.1.2a
|
-
Property svn:executable
set to
*
|
File size:
397 bytes
|
Line | |
---|
1 | #include "syslib.h"
|
---|
2 |
|
---|
3 | PUBLIC int sys_fork(parent, child, child_endpoint)
|
---|
4 | int parent; /* process doing the fork */
|
---|
5 | int child; /* which proc has been created by the fork */
|
---|
6 | int *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.