Commit | Line | Data |
---|---|---|
928e3092 BJ |
1 | #include <sys/param.h> |
2 | #include <sys/ino.h> | |
3 | #include <dumprestor.h> | |
4 | ||
5 | #include <stdio.h> | |
6 | ||
7 | main() | |
8 | { | |
9 | struct idates idt; | |
10 | ||
11 | if (freopen("/etc/ddate", "r", stdin) < 0) | |
12 | perror("/etc/ddate"), exit(1); | |
13 | while (fread(&idt, sizeof idt, 1, stdin) == 1) | |
14 | printf("%16.16s %c %s", idt.id_name, idt.id_incno, | |
15 | ctime(&idt.id_ddate)); | |
16 | } |