Lines Matching refs:BUF
334 static BUF buffer;
335 BUF *bp;
341 char *last, *name, *cp, buf[BUFSIZ];
373 (void)snprintf(buf, sizeof(buf), "T%lld %ld %lld %ld\n",
378 (void)write(rem, buf, strlen(buf));
383 (void)snprintf(buf, sizeof(buf), "C%04o %lld %s\n",
385 (void)write(rem, buf, strlen(buf));
401 for (resid = (size_t)amt, cp = bp->buf; resid > 0;
409 for (resid = (size_t)amt, cp = bp->buf; resid > 0;
485 static BUF buffer;
488 BUF *bp;
500 char ch, *cp, *np, *targ, *vect[1], buf[BUFSIZ];
525 cp = buf;
534 } while (cp < &buf[BUFSIZ - 1] && ch != '\n');
537 if (buf[0] == '\01' || buf[0] == '\02') {
540 buf + 1, strlen(buf + 1));
541 if (buf[0] == '\02')
546 if (buf[0] == 'E') {
555 cp = buf;
589 for (++cp; cp < buf + 5; cp++) {
623 if (buf[0] == 'D') {
679 for (resid = (size_t)amt, cp = bp->buf; resid > 0;
687 for (resid = (size_t)amt, cp = bp->buf
830 char buf[2048];
839 n = snprintf(buf, sizeof(buf),
846 write(ttyfd, buf, (size_t)n);