Annotation of researchv10no/ipc/internet/interlan.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: #include <sys/types.h>
        !             3: #include <sys/ill_reg.h>
        !             4: #include <sys/ioctl.h>
        !             5: 
        !             6: main(ac, av)
        !             7: char *av[];
        !             8: {
        !             9:        int fd;
        !            10:        unsigned int cmd;
        !            11: 
        !            12:        fd = open("/dev/il02", 2);
        !            13:        if (fd<0) {
        !            14:                perror("opening /dev/il02");
        !            15:                exit(1);
        !            16:        }
        !            17:        cmd = atoi(av[1])<<8;
        !            18:        if (ioctl(fd, ENIOCMD, &cmd) < 0) {
        !            19:                perror("ioctl");
        !            20:                exit(1);
        !            21:        }
        !            22:        printf("%x\n", cmd);
        !            23:        return 0;
        !            24: }

unix.superglobalmegacorp.com

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