Lines Matching defs:tape
15 * mt -- magnetic tape manipulation program
94 char *tape;
102 tape = argv[2];
105 tape = getenv("TAPE");
106 if (tape == NULL) {
107 tape = DEFAULT_NRW_TAPE;
129 mtfd = open(tape, comp->c_oflag);
138 "%s: no tape loaded or drive offline\n", tape);
141 "%s: write protected or reserved.\n", tape);
143 perror(tape);
161 * Handle absolute file positioning. Ask tape driver
162 * where tape is and then skip to desired file. If
164 * the tape and then space to the desired file.
182 * tape file position. If not, rewind the tape, and
185 * If file number is -1 tape position is unknown!
194 tape, comp->c_name, mt_fileno);
212 (void) fprintf(stderr, "%s %s %ld ", tape, comp->c_name,
220 /* Handle regular mag tape ioctls */
242 (void) fprintf(stderr, "%s %s %lld ", tape,
371 /* Handle SCSI tape drives specially. */
378 (void) printf("%s tape drive:\n", name);
402 (void) printf("unknown tape drive type (0x%x)\n",
406 (void) printf("%s tape drive:\n residual= %ld", name,
448 "wrong tape media", /* 0x16 */