Lines Matching defs:bp
457 char *bp, *host, *src, *suser, *thost, *tuser, *arg;
524 bp = xmalloc(len);
525 (void) snprintf(bp, len, "%s -t %s", cmd, targ);
527 if (do_cmd(host, tuser, bp, &remin,
532 (void) xfree(bp);
543 char *bp, *host, *src, *suser;
577 bp = xmalloc(len);
578 (void) snprintf(bp, len, "%s -f %s", cmd, src);
579 if (do_cmd(host, suser, bp, &remin, &remout, argc) < 0) {
580 (void) xfree(bp);
584 xfree(bp);
596 BUF *bp;
660 if ((bp
672 for (haderr = i = 0; i < stb.st_size; i += bp->cnt) {
673 amt = bp->cnt;
677 result = atomicio(read, fd, bp->buf, amt);
682 (void) atomicio(vwrite, remout, bp->buf, amt);
684 result = atomicio(vwrite, remout, bp->buf, amt);
829 BUF *bp;
996 if ((bp = allocbuf(&buffer, ofd, 4096)) == NULL) {
1000 cp = bp->buf;
1030 if (count == bp->cnt) {
1033 if (atomicio(vwrite, ofd, bp->buf,
1040 cp = bp->buf;
1048 atomicio(vwrite, ofd, bp->buf, count) != count) {
1221 allocbuf(BUF *bp, int fd, int blksize)
1237 if (bp->cnt >= size)
1238 return (bp);
1239 if (bp->buf == NULL)
1240 bp->buf = xmalloc(size);
1242 bp->buf = xrealloc(bp->buf, size);
1243 memset(bp->buf, 0, size);
1244 bp->cnt = size;
1245 return (bp);