Lines Matching refs:nread
357 size_t nread; in file_upload() local
368 nread = readcount; in file_upload()
372 if((curl_off_t)nread <= data->state.resume_from) { in file_upload()
373 data->state.resume_from -= nread; in file_upload()
374 nread = 0; in file_upload()
379 nread -= (size_t)data->state.resume_from; in file_upload()
387 nwrite = write(fd, sendbuf, nread); in file_upload()
388 if((size_t)nwrite != nread) { in file_upload()
393 bytecount += nread; in file_upload()
571 ssize_t nread; in file_do() local
582 nread = read(fd, xfer_buf, bytestoread); in file_do()
584 if(nread > 0) in file_do()
585 xfer_buf[nread] = 0; in file_do()
587 if(nread <= 0 || (size_known && (expected_size == 0))) in file_do()
591 expected_size -= nread; in file_do()
593 result = Curl_client_write(data, CLIENTWRITE_BODY, xfer_buf, nread); in file_do()