Lines Matching refs:nread
370 int nread;
380 nread = read(h->sd, readbuf, sizeof(readbuf));
381 if (nread < 0) {
385 wpa_hexdump_ascii(MSG_MSGDUMP, "httpread - read", readbuf, nread);
386 if (nread == 0) {
425 if (nread == 0)
433 nread--;
480 if (nread == 0)
487 if (h->body_alloc_nbytes < (h->body_nbytes + nread + 1)) {
601 if (nread <= 0)
613 nread--;
619 ncopy = nread;
627 if (ncopy > nread)
628 ncopy = nread;
633 nread -= ncopy;
645 if (nread <= 0)
648 nread--;