Lines Matching refs:nread
117 ssize_t nread; in chunk_slurpn() local
126 nread = reader(reader_ctx, p, n, err); in chunk_slurpn()
127 if(nread > 0) { in chunk_slurpn()
128 DEBUGASSERT((size_t)nread <= n); in chunk_slurpn()
129 chunk->w_offset += nread; in chunk_slurpn()
131 return nread; in chunk_slurpn()
503 ssize_t nread = 0; in Curl_bufq_read() local
510 nread += n; in Curl_bufq_read()
516 if(nread == 0) { in Curl_bufq_read()
520 return nread; in Curl_bufq_read()
670 ssize_t nread; in Curl_bufq_sipn() local
684 nread = chunk_slurpn(tail, max_len, reader, reader_ctx, err); in Curl_bufq_sipn()
685 if(nread < 0) { in Curl_bufq_sipn()
688 else if(nread == 0) { in Curl_bufq_sipn()
692 return nread; in Curl_bufq_sipn()
708 ssize_t nread = 0, n; in bufq_slurpn() local
715 if(!nread || *err != CURLE_AGAIN) { in bufq_slurpn()
717 nread = -1; in bufq_slurpn()
728 nread += (size_t)n; in bufq_slurpn()
739 return nread; in bufq_slurpn()