Lines Matching defs:nbytes
857 ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll) {
864 while (nbytes > 0) {
867 k = read(fd, p, nbytes);
889 nbytes -= k;
896 int loop_read_exact(int fd, void *buf, size_t nbytes, bool do_poll) {
899 n = loop_read(fd, buf, nbytes, do_poll);
902 if ((size_t) n != nbytes)
907 int loop_write(int fd, const void *buf, size_t nbytes, bool do_poll) {
918 k = write(fd, p, nbytes);
935 if (nbytes > 0 && k == 0) /* Can't really happen */
939 nbytes -= k;
940 } while (nbytes > 0);