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