• Home
  • Raw
  • Download

Lines Matching refs:nread

163   size_t nread;  in Curl_fillreadbuffer()  local
247 nread = readfunc(data->req.upload_fromhere, 1, in Curl_fillreadbuffer()
251 if(nread == CURL_READFUNC_ABORT) { in Curl_fillreadbuffer()
256 if(nread == CURL_READFUNC_PAUSE) { in Curl_fillreadbuffer()
277 else if(nread > buffersize) { in Curl_fillreadbuffer()
323 "%zx%s", nread, endofline_native); in Curl_fillreadbuffer()
327 nread += hexlen; in Curl_fillreadbuffer()
335 if((nread-hexlen) == 0 && in Curl_fillreadbuffer()
343 memcpy(data->req.upload_fromhere + nread, in Curl_fillreadbuffer()
356 length = nread; in Curl_fillreadbuffer()
383 if((nread - hexlen) == 0 && in Curl_fillreadbuffer()
392 nread += strlen(endofline_network); /* for the added end of line */ in Curl_fillreadbuffer()
397 result = Curl_convert_to_network(data, data->req.upload_fromhere, nread); in Curl_fillreadbuffer()
404 *nreadp = nread; in Curl_fillreadbuffer()
566 ssize_t nread; /* number of bytes read */ in readwrite_data() local
606 result = Curl_read(data, conn->sockfd, buf, bytestoread, &nread); in readwrite_data()
619 nread = 0; in readwrite_data()
631 is_empty_data = ((nread == 0) && (k->bodywrites == 0)) ? TRUE : FALSE; in readwrite_data()
633 if(0 < nread || is_empty_data) { in readwrite_data()
634 buf[nread] = 0; in readwrite_data()
640 if(is_http2 && !nread) in readwrite_data()
654 result = conn->handler->readwrite(data, conn, &nread, &readmore); in readwrite_data()
667 result = Curl_http_readwrite_headers(data, conn, &nread, &stop_reading); in readwrite_data()
672 (k->maxdownload <= 0 && nread > 0)) { in readwrite_data()
673 result = conn->handler->readwrite(data, conn, &nread, &readmore); in readwrite_data()
683 if(nread > 0) { in readwrite_data()
688 nread, data->state.up.path); in readwrite_data()
700 if(!k->header && (nread > 0 || is_empty_data)) { in readwrite_data()
732 k->str, (size_t)nread); in readwrite_data()
736 k->str, (size_t)nread); in readwrite_data()
749 Curl_httpchunk_read(data, k->str, nread, &nread, &extra); in readwrite_data()
783 (k->bytecount + nread >= k->maxdownload)) { in readwrite_data()
785 excess = (size_t)(k->bytecount + nread - k->maxdownload); in readwrite_data()
797 nread = (ssize_t) (k->maxdownload - k->bytecount); in readwrite_data()
798 if(nread < 0) /* this should be unusual */ in readwrite_data()
799 nread = 0; in readwrite_data()
804 k->bytecount += nread; in readwrite_data()
808 if(!k->chunk && (nread || k->badheader || is_empty_data)) { in readwrite_data()
836 if(!k->ignorebody && nread) { in readwrite_data()
839 result = Curl_pop3_write(data, k->str, nread); in readwrite_data()
843 nread); in readwrite_data()
846 else if(!k->ignorebody && nread) in readwrite_data()
847 result = Curl_unencode_write(data, k->writer_stack, k->str, nread); in readwrite_data()
859 k->str += nread; in readwrite_data()
866 nread = (ssize_t)excess; in readwrite_data()
868 result = conn->handler->readwrite(data, conn, &nread, &readmore); in readwrite_data()
957 ssize_t nread; /* number of bytes read */ in readwrite_upload() local
1012 nread = fillcount; in readwrite_upload()
1015 nread = 0; /* we're done uploading/reading */ in readwrite_upload()
1017 if(!nread && (k->keepon & KEEP_SEND_PAUSE)) { in readwrite_upload()
1021 if(nread <= 0) { in readwrite_upload()
1029 k->upload_present = nread; in readwrite_upload()
1054 for(i = 0, si = 0; i < nread; i++, si++) { in readwrite_upload()
1069 if(si != nread) { in readwrite_upload()
1072 nread = si; in readwrite_upload()
1078 k->upload_present = nread; in readwrite_upload()
1084 result = Curl_smtp_escape_eob(data, nread); in readwrite_upload()