Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / pmax / test / t04.c
blob38f74c78818e49f6fbff91b31d0bcbdf275ff1f3
1 #include <stdio.h>
3 main(argc, argv)
4 char **argv;
6 int fin = open("/dev/console", 0);
7 int fout = open("/dev/console", 1);
8 int ferr = open("/dev/console", 1);
9 int pid;
11 switch(pid = fork()) {
12 case 0: /* child */
13 printf("child\n");
14 return(1);
15 case -1:
16 perror("fork");
17 return(2);
19 default:
20 printf("parent %d\n", pid);
22 return(0);