tar: use utime() to restore timestamps
[minix.git] / test / test12.c
blob16fc868673173da3c9bcf9928a551a32d9d6325c
1 /* test 12 */
3 /* Copyright (C) 1987 by Martin Leisner. All rights reserved. */
4 /* Used by permission. */
6 #include <sys/types.h>
7 #include <sys/wait.h>
8 #include <stdlib.h>
9 #include <unistd.h>
10 #include <stdio.h>
12 #define NUM_TIMES 1000
13 #define MAX_ERROR 2
15 #include "common.c"
17 int main(void);
19 int main()
21 register int i;
22 int k;
24 start(12);
26 for (i = 0; i < NUM_TIMES; i++) switch (fork()) {
27 case 0: exit(1); break;
28 case -1:
29 printf("fork broke\n");
30 exit(1);
31 default: wait(&k); break;
34 quit();
35 return(-1); /* impossible */