source: trunk/minix/commands/ibm/atnormalize.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 782 bytes
Line 
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 <a.out.h>
16#include <sys/stat.h>
17#include <sys/wait.h>
18#include <sys/ioctl.h>
19#include <minix/config.h>
20#include <minix/const.h>
21#include <minix/partition.h>
22#include <minix/u64.h>
23#include <ibm/partition.h>
24#include <termios.h>
25#include <stdarg.h>
26
27int main(void)
28{
29 int v, d;
30 char name[20];
31
32 for(d = 0; d < 4; d++) {
33 int device;
34 sprintf(name, "/dev/c0d%d", d);
35 if((device=open(name, O_RDONLY)) >= 0) {
36 v = 0;
37 ioctl(device, DIOCTIMEOUT, &v);
38 close(device);
39 }
40 }
41
42 return 0;
43}
Note: See TracBrowser for help on using the repository browser.