Lines Matching refs:state
174 result = Curl_urldecode(data->state.up.path, 0, &real_path, in file_connect()
253 if(!data->state.upload && (fd == -1)) { in file_connect()
254 failf(data, "Couldn't open file %s", data->state.up.path); in file_connect()
327 if(data->state.resume_from) in file_upload()
338 if(-1 != data->state.infilesize) in file_upload()
340 Curl_pgrsSetUploadSize(data, data->state.infilesize); in file_upload()
343 if(data->state.resume_from < 0) { in file_upload()
349 data->state.resume_from = (curl_off_t)file_stat.st_size; in file_upload()
371 if(data->state.resume_from) { 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()
378 sendbuf = xfer_ulbuf + data->state.resume_from; in file_upload()
379 nread -= (size_t)data->state.resume_from; in file_upload()
380 data->state.resume_from = 0; in file_upload()
441 if(data->state.upload) in file_do()
458 if(fstated && !data->state.range && data->set.timecondition && in file_do()
518 if(data->state.resume_from < 0) { in file_do()
523 data->state.resume_from += (curl_off_t)statbuf.st_size; in file_do()
526 if(data->state.resume_from > 0) { in file_do()
530 if(data->state.resume_from <= expected_size) in file_do()
531 expected_size -= data->state.resume_from; in file_do()
554 if(data->state.resume_from) { in file_do()
556 if(data->state.resume_from != in file_do()
557 lseek(fd, data->state.resume_from, SEEK_SET)) in file_do()