Home | History | Annotate | Download | only in openssh

Lines Matching defs:BUF

343 	char *buf;
344 } BUF;
346 BUF *allocbuf(BUF *, int, int);
725 static BUF buffer;
726 BUF *bp;
730 char *last, *name, buf[2048], encname[MAXPATHLEN];
777 (void) snprintf(buf, sizeof buf, "T%lu 0 %lu 0\n",
784 buf);
786 (void) atomicio(vwrite, remout, buf, strlen(buf));
791 snprintf(buf, sizeof buf, "C%04o %lld %s\n",
795 fprintf(stderr, "Sending file modes: %s", buf);
797 (void) atomicio(vwrite, remout, buf, strlen(buf));
815 if (atomicio(read, fd, bp->buf, amt) != amt)
820 (void)atomicio(vwrite, remout, bp->buf, amt);
823 if (atomicio6(vwrite, remout, bp->buf, amt, scpio,
900 static BUF buffer;
905 BUF *bp;
912 char ch, *cp, *np, *targ, *why, *vect[1], buf[2048];
935 cp = buf;
944 } while (cp < &buf[sizeof(buf) - 1] && ch != '\n');
947 fprintf(stderr, "Sink: %s", buf);
949 if (buf[0] == '\01' || buf[0] == '\02') {
952 buf + 1, strlen(buf + 1));
953 if (buf[0] == '\02')
958 if (buf[0] == 'E') {
965 cp = buf;
999 for (++cp; cp < buf + 5; cp++) {
1034 if (buf[0] == 'D') {
1077 cp = bp->buf;
1105 if (atomicio(vwrite, ofd, bp->buf,
1112 cp = bp->buf;
1119 atomicio(vwrite, ofd, bp->buf, count) != count) {
1292 BUF *
1293 allocbuf(BUF *bp, int fd, int blksize)
1311 if (bp->buf == NULL)
1312 bp->buf = xmalloc(size);
1314 bp->buf = xrealloc(bp->buf, 1, size);
1315 memset(bp->buf, 0, size);