Lines Matching refs:tibuf
60 static char *tibuf[2]; /* plan b buffers */
90 free(tibuf[0]);
91 free(tibuf[1]);
92 tibuf[0] = tibuf[1] = NULL;
423 tibuf[0] = malloc(BUFFERSIZE + 1);
424 if (tibuf[0] == NULL)
426 tibuf[1] = malloc(BUFFERSIZE + 1);
427 if (tibuf[1] == NULL)
430 p = tibuf[0] + maxlen * (i % lines_per_buf);
432 if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE)
437 if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE)
482 if (read(tifd, tibuf[whichbuf], BUFFERSIZE) < 0)
485 return tibuf[whichbuf] + (tireclen * offline);