Lines Matching refs:nread
398 int nread; in httpread_read_handler() local
410 nread = read(h->sd, readbuf, sizeof(readbuf)); in httpread_read_handler()
411 if (nread < 0) in httpread_read_handler()
413 if (nread == 0) { in httpread_read_handler()
453 if (nread == 0) in httpread_read_handler()
459 nread--; in httpread_read_handler()
511 if (nread == 0) in httpread_read_handler()
518 if (h->body_alloc_nbytes < (h->body_nbytes + nread + 1)) { in httpread_read_handler()
604 if (nread <= 0) in httpread_read_handler()
616 nread--; in httpread_read_handler()
622 ncopy = nread; in httpread_read_handler()
625 if (ncopy > nread) in httpread_read_handler()
626 ncopy = nread; in httpread_read_handler()
631 nread -= ncopy; in httpread_read_handler()
644 if (nread <= 0) in httpread_read_handler()
647 nread--; in httpread_read_handler()