Annotation of 3BSD/cmd/rewind.c, revision 1.1

1.1     ! root        1: /* rewinds mag tape drive */
        !             2: main(argc,argv) char**argv; {
        !             3:        char *f;
        !             4:        int fd;
        !             5: 
        !             6:        if (argc > 1) f = argv[1];
        !             7:                else  f = "/dev/mt0";
        !             8: 
        !             9:        fd = open(f,0);
        !            10:        if (fd < 0) printf("Can't open %s\n",f);
        !            11:                else close(fd);
        !            12: }

unix.superglobalmegacorp.com

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