Lines Matching defs:tape
59 static int tape = -1;
103 if (tape >= 0)
104 (void) close(tape);
113 tape = open(device, atoi(mode), 0666);
114 if (tape < 0)
121 if (close(tape) < 0)
123 tape = -1;
130 rval = lseek(tape, (off_t)strtoll(count, NULL, 10), atoi(pos));
147 rval = write(tape, record, n);
157 rval = read(tape, record, n);
172 if (ioctl(tape, MTIOCTOP, (char *)&mtop) < 0)
181 if (ioctl(tape, MTIOCGET, (char *)&mtget) < 0)