Annotation of 3BSD/cmd/ddate.c, revision 1.1.1.1

1.1       root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.