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