Lines Matching refs:bp
584 char *bp, *host, *src, *suser, *thost, *tuser, *arg;
632 xasprintf(&bp, "%s -f %s%s", cmd,
634 if (do_cmd(host, suser, bp, &remin, &remout) < 0)
636 (void) xfree(bp);
638 xasprintf(&bp, "%s -t %s%s", cmd,
640 if (do_cmd2(host, tuser, bp, remin, remout) < 0)
642 (void) xfree(bp);
685 xasprintf(&bp, "%s -t %s%s", cmd,
688 if (do_cmd(host, tuser, bp, &remin,
693 (void) xfree(bp);
704 char *bp, *host, *src, *suser;
739 xasprintf(&bp, "%s -f %s%s",
741 if (do_cmd(host, suser, bp, &remin, &remout) < 0) {
742 (void) xfree(bp);
746 xfree(bp);
758 BUF *bp;
850 if ((bp = allocbuf(&buffer, fd, COPY_BUFLEN)) == NULL) {
860 for (haderr = i = 0; i < stb.st_size; i += bp->cnt) {
861 amt = bp->cnt;
865 if (atomicio(read, fd, bp->buf, amt) != amt)
870 (void)atomicio(vwrite, remout, bp->buf, amt);
873 if (atomicio6(vwrite, remout, bp->buf, amt, scpio,
985 BUF *bp;
1198 if ((bp = allocbuf(&buffer, ofd, COPY_BUFLEN)) == NULL) {
1202 cp = bp->buf;
1209 for (count = i = 0; i < size; i += bp->cnt) {
1210 amt = bp->cnt;
1227 if (count == bp->cnt) {
1230 if (atomicio(vwrite, ofd, bp->buf,
1237 cp = bp->buf;
1244 atomicio(vwrite, ofd, bp->buf, count) != count) {
1445 allocbuf(BUF *bp, int fd, int blksize)
1461 if (bp->cnt >= size)
1462 return (bp);
1463 if (bp->buf == NULL)
1464 bp->buf = xmalloc(size);
1466 bp->buf = xrealloc(bp->buf, 1, size);
1467 memset(bp->buf, 0, size);
1468 bp->cnt = size;
1469 return (bp);