Lines Matching refs:filesize
222 static CURLcode ftp_state_retr(struct Curl_easy *data, curl_off_t filesize);
2191 curl_off_t filesize) in ftp_state_retr() argument
2199 if(data->set.max_filesize && (filesize > data->set.max_filesize)) { in ftp_state_retr()
2203 ftp->downloadsize = filesize; in ftp_state_retr()
2208 if(filesize == -1) { in ftp_state_retr()
2220 if(filesize < -data->state.resume_from) { in ftp_state_retr()
2223 data->state.resume_from, filesize); in ftp_state_retr()
2229 data->state.resume_from = filesize - ftp->downloadsize; in ftp_state_retr()
2232 if(filesize < data->state.resume_from) { in ftp_state_retr()
2235 data->state.resume_from, filesize); in ftp_state_retr()
2239 ftp->downloadsize = filesize-data->state.resume_from; in ftp_state_retr()
2279 curl_off_t filesize = -1; in ftp_state_size_resp() local
2300 (void)curlx_strtoofft(fdigit, NULL, 10, &filesize); in ftp_state_size_resp()
2314 if(-1 != filesize) { in ftp_state_size_resp()
2317 "Content-Length: %" FMT_OFF_T "\r\n", filesize); in ftp_state_size_resp()
2323 Curl_pgrsSetDownloadSize(data, filesize); in ftp_state_size_resp()
2327 Curl_pgrsSetDownloadSize(data, filesize); in ftp_state_size_resp()
2328 result = ftp_state_retr(data, filesize); in ftp_state_size_resp()
2331 data->state.resume_from = filesize; in ftp_state_size_resp()