Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / pmax / test / t05.c
blob0bd68530f3fdfa445435dc44fa07fe3dfa99e353
1 main(argc, argv)
2 char **argv;
4 int fout = open("/dev/console", 1);
6 switch(fork()) {
7 case 0: /* child */
8 write(fout, "child\n", 6);
9 return(1);
11 case -1:
12 write(fout, "error\n", 6);
13 return(2);
15 default:
16 write(fout, "parent\n", 7);
17 return(0);