Lines Matching refs:tbf
43 static char *tbf = NULL; variable
167 if (tbf != NULL) in newtapebuf()
168 free(tbf); in newtapebuf()
169 tbf = (char *)malloc(nsize); in newtapebuf()
170 if (tbf == NULL) { in newtapebuf()
433 if (tbf == NULL) { in getvol()
490 (void) strcpy(tbf, ": "); in getvol()
494 tbf, i+1); in getvol()
495 (void) strcpy(tbf, ", "); in getvol()
504 (void) fgets(tbf, (int)tbfsize, terminal); in getvol()
505 } while (!feof(terminal) && tbf[0] == '\n'); in getvol()
508 newvol = atoi(tbf); in getvol()
540 (void) fgets(tbf, (int)tbfsize, terminal); in getvol()
546 if (tbf[0] != '\n') { in getvol()
547 (void) strncpy(magtape, tbf, sizeof (magtape)); in getvol()
1473 if (tbf == NULL) { in readtape()
1489 sp = &((union u_spcl *)&tbf[bct*tp_bsize])->s_spcl; in readtape()
1496 &tbf[i*tp_bsize])->c_magic = 0; in readtape()
1502 bcopy(&tbf[(bct++*tp_bsize)], b, (size_t)tp_bsize); in readtape()
1511 ((struct s_spcl *)&tbf[i*sizeof (struct s_spcl)])->c_magic = 0; in readtape()
1521 i = rmtread(&tbf[rd], cnt); in readtape()
1523 i = read(mt, &tbf[rd], cnt); in readtape()
1585 bzero(tbf, (size_t)i); in readtape()
1603 sp = &((union u_spcl *)tbf)->s_spcl; in readtape()
1624 bcopy((char *)&endoftapemark, &tbf[rd], (size_t)tp_bsize); in readtape()
1627 bcopy(&tbf[(bct++*tp_bsize)], b, (size_t)tp_bsize); in readtape()
1639 if (tbf == NULL) { in findtapeblksize()
1643 assert(tbf != NULL); in findtapeblksize()
1649 ((struct s_spcl *)&tbf[i * tp_bsize])->c_magic = 0; in findtapeblksize()
1652 tape_rec_size = rmtread(tbf, ntrec * tp_bsize); in findtapeblksize()
1654 tape_rec_size = read(mt, tbf, ntrec * tp_bsize); in findtapeblksize()