Lines Matching refs:bsz
584 read_with_restart(int fd, void *buf, int bsz)
588 while (((r = read(fd, buf, bsz)) < 0) && errno == EINTR)
602 rmtread_with_restart(int fd, void *buf, int bsz)
606 while (((r = rmtread(fd, buf, bsz)) < 0) && errno == EINTR)
622 xread(int fd, void *buf, int bsz)
630 if ((r = rmtread_with_restart(fd, b, bsz)) <= 0)
633 if ((r = read_with_restart(fd, b, bsz)) <= 0)
637 bsz -= r;
639 } while (bsz > 0);
654 write_with_restart(int fd, void *buf, int bsz)
658 while (((r = write(fd, buf, bsz)) < 0) && errno == EINTR)
673 rmtwrite_with_restart(int fd, void *buf, int bsz)
677 while (((r = rmtwrite(fd, buf, bsz)) < 0) && errno == EINTR)
693 xwrite(int fd, void *buf, int bsz)
701 if ((r = rmtwrite_with_restart(fd, b, bsz)) <= 0)
704 if ((r = write_with_restart(fd, b, bsz)) <= 0)
708 bsz -= r;
710 } while (bsz > 0);
816 ar_write(char *buf, int bsz)
828 if ((res = xwrite(arfd, buf, bsz)) == bsz) {
831 return bsz;