repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Expand PMF_FN_* macros.
[netbsd-mini2440.git]
/
sys
/
arch
/
pmax
/
test
/
t05.c
blob
0bd68530f3fdfa445435dc44fa07fe3dfa99e353
1
main
(
argc
,
argv
)
2
char
**
argv
;
3
{
4
int
fout
=
open
(
"/dev/console"
,
1
);
5
6
switch
(
fork
()) {
7
case
0
:
/* child */
8
write
(
fout
,
"child
\n
"
,
6
);
9
return
(
1
);
10
11
case
-
1
:
12
write
(
fout
,
"error
\n
"
,
6
);
13
return
(
2
);
14
15
default
:
16
write
(
fout
,
"parent
\n
"
,
7
);
17
return
(
0
);
18
}
19
}