Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / pmax / test / t06.c
blobf016352cddd3a929713fcd90ced4f334247d533a
1 int foo;
3 main(argc, argv)
4 char **argv;
6 int fout = open("/dev/console", 1);
7 int i;
9 foo = 0;
10 switch(fork()) {
11 case 0: /* child */
12 foo = 30;
13 for (i = 0; i < 10; i++) {
14 printf("child %d, foo %d\n", i, foo);
15 foo++;
17 return(1);
19 case -1:
20 perror("fork");
21 return(2);
23 default:
24 for (i = 0; i < 10; i++) {
25 printf("parent %d foo %d\n", i, foo);
26 foo++;
28 return(0);