3 int sys_fork(parent
, child
, child_endpoint
, flags
, msgaddr
)
4 endpoint_t parent
; /* process doing the fork */
5 endpoint_t child
; /* which proc has been created by the fork */
6 endpoint_t
*child_endpoint
;
10 /* A process has forked. Tell the kernel. */
17 m
.PR_FORK_FLAGS
= flags
;
18 r
= _kernel_call(SYS_FORK
, &m
);
19 *child_endpoint
= m
.PR_ENDPT
;
20 *msgaddr
= (vir_bytes
) m
.PR_FORK_MSGADDR
;