Lines Matching defs:tape
32 * tape (cartridge)
87 struct tape {
91 } *tape;
270 ntape = expandmem(i, (void **)&tape,
271 sizeof (struct tape));
280 tape[i].name = nm;
283 if (lstat(tape[i].name, &stat) < 0) {
291 if ((sz = readlink(tape[i].name, linkvalue,
299 tape[i].device = nm;
302 cp = strrchr(tape[i].device, '/');
304 (void) sscanf(cp, "%d", &tape[i].number);
328 ntape = expandmem(i, (void **)&tape,
329 sizeof (struct tape));
338 tape[i].name = nm;
346 tape[i].device = nm;
348 (void) sscanf(dep->d_name, "%d", &tape[i].number);
359 if (strcmp(tape[i].device, tape[j].device))
361 tape[j].number = -1;
376 if (tape[j].number != i)
379 (void) da_add_list(&devlist, tape[j].name, i,
382 /* print device_allocate for tape devices */
405 /* print device_maps for tape devices */
422 (void) printf("%s", tape[j].name);
434 for (entry = devlist.tape; entry != NULL; entry = entry->next) {
1259 tape = (struct tape *)calloc(DFLT_NTAPE, sizeof (struct tape));
1274 if (tape == NULL || audio == NULL || cd == NULL || fp == NULL)
1278 devlist.tape = NULL;