Improve the process for GNU tools
[minix3.git] / minix / commands / atnormalize / atnormalize.c
blobbc02b7cf794a220a37b44dd23dbd2161d6110dd3
1 #include <sys/types.h>
2 #include <stdio.h>
3 #include <termcap.h>
4 #include <errno.h>
5 #include <unistd.h>
6 #include <stddef.h>
7 #include <ctype.h>
8 #include <stdlib.h>
9 #include <string.h>
10 #include <signal.h>
11 #include <fcntl.h>
12 #include <time.h>
13 #include <dirent.h>
14 #include <limits.h>
15 #include <sys/stat.h>
16 #include <sys/wait.h>
17 #include <sys/ioctl.h>
18 #include <minix/config.h>
19 #include <minix/const.h>
20 #include <minix/partition.h>
21 #include <machine/partition.h>
22 #include <termios.h>
23 #include <stdarg.h>
25 int main(void)
27 int v, d;
28 char name[20];
30 for(d = 0; d < 4; d++) {
31 int device;
32 sprintf(name, "/dev/c0d%d", d);
33 if((device=open(name, O_RDONLY)) >= 0) {
34 v = 0;
35 ioctl(device, DIOCTIMEOUT, &v);
36 close(device);
40 return 0;