repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
fork.c
blob
fab67c7264aed15510d1b12a3f8a6da35dfd63db
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <string.h>
6
#include <unistd.h>
7
8
#ifdef __weak_alias
9
__weak_alias
(
fork
,
_fork
)
10
#endif
11
12
pid_t
fork
(
void
)
13
{
14
message m
;
15
16
memset
(&
m
,
0
,
sizeof
(
m
));
17
return
(
_syscall
(
PM_PROC_NR
,
PM_FORK
, &
m
));
18
}