Lines Matching refs:tbf
43 static char *tbf = NULL; variable
168 if (tbf != NULL) in newtapebuf()
169 free(tbf); in newtapebuf()
170 tbf = (char *)malloc(nsize); in newtapebuf()
171 if (tbf == NULL) { in newtapebuf()
434 if (tbf == NULL) { in getvol()
491 (void) strcpy(tbf, ": "); in getvol()
495 tbf, i+1); in getvol()
496 (void) strcpy(tbf, ", "); in getvol()
505 (void) fgets(tbf, (int)tbfsize, terminal); in getvol()
506 } while (!feof(terminal) && tbf[0] == '\n'); in getvol()
509 newvol = atoi(tbf); in getvol()
541 (void) fgets(tbf, (int)tbfsize, terminal); in getvol()
547 if (tbf[0] != '\n') { in getvol()
548 (void) strncpy(magtape, tbf, sizeof (magtape)); in getvol()
1470 if (tbf == NULL) { in readtape()
1486 sp = &((union u_spcl *)&tbf[bct*tp_bsize])->s_spcl; in readtape()
1493 &tbf[i*tp_bsize])->c_magic = 0; in readtape()
1499 bcopy(&tbf[(bct++*tp_bsize)], b, (size_t)tp_bsize); in readtape()
1508 ((struct s_spcl *)&tbf[i*sizeof (struct s_spcl)])->c_magic = 0; in readtape()
1518 i = rmtread(&tbf[rd], cnt); in readtape()
1520 i = read(mt, &tbf[rd], cnt); in readtape()
1582 bzero(tbf, (size_t)i); in readtape()
1600 sp = &((union u_spcl *)tbf)->s_spcl; in readtape()
1621 bcopy((char *)&endoftapemark, &tbf[rd], (size_t)tp_bsize); in readtape()
1624 bcopy(&tbf[(bct++*tp_bsize)], b, (size_t)tp_bsize); in readtape()
1636 if (tbf == NULL) { in findtapeblksize()
1640 assert(tbf != NULL); in findtapeblksize()
1646 ((struct s_spcl *)&tbf[i * tp_bsize])->c_magic = 0; in findtapeblksize()
1649 tape_rec_size = rmtread(tbf, ntrec * tp_bsize); in findtapeblksize()
1651 tape_rec_size = read(mt, tbf, ntrec * tp_bsize); in findtapeblksize()