curlx_strerror(errno, errbuf, sizeof(errbuf)));
return FALSE;
}
- outs->s_isreg = TRUE;
+ outs->regular_file = TRUE;
outs->fopened = TRUE;
outs->stream = file;
outs->bytes = 0;
/* regular file */
if(!*outs->filename)
check_fails = TRUE;
- if(!outs->s_isreg)
+ if(!outs->regular_file)
check_fails = TRUE;
if(outs->fopened && !outs->stream)
check_fails = TRUE;
}
else {
/* standard stream */
- if(!outs->stream || outs->s_isreg || outs->fopened)
+ if(!outs->stream || outs->regular_file || outs->fopened)
check_fails = TRUE;
if(outs->alloc_filename || outs->is_cd_filename || outs->init)
check_fails = TRUE;
{
struct OutStruct *outs = &per->outs;
return config->use_resume && config->resume_from_current &&
- config->resume_from >= 0 && outs->init == config->resume_from &&
- outs->bytes > 0 && outs->filename && outs->s_isreg && outs->fopened &&
- outs->stream && !ferror(outs->stream) &&
- !config->customrequest && !per->uploadfile &&
- (config->httpreq == TOOL_HTTPREQ_UNSPEC ||
- config->httpreq == TOOL_HTTPREQ_GET) &&
- /* CURLE_WRITE_ERROR could mean outs->bytes is not accurate */
- result != CURLE_WRITE_ERROR && result != CURLE_RANGE_ERROR;
+ config->resume_from >= 0 && outs->init == config->resume_from &&
+ outs->bytes > 0 && outs->filename && outs->regular_file && outs->fopened &&
+ outs->stream && !ferror(outs->stream) &&
+ !config->customrequest && !per->uploadfile &&
+ (config->httpreq == TOOL_HTTPREQ_UNSPEC ||
+ config->httpreq == TOOL_HTTPREQ_GET) &&
+ /* CURLE_WRITE_ERROR could mean outs->bytes is not accurate */
+ result != CURLE_WRITE_ERROR && result != CURLE_RANGE_ERROR;
}
static CURLcode retrycheck(struct OperationConfig *config,
result = CURLE_WRITE_ERROR;
}
- if(!outs->s_isreg && outs->stream) {
+ if(!outs->regular_file && outs->stream) {
/* Dump standard stream buffered data */
rc = fflush(outs->stream);
if(!result && rc) {
}
/* File time can only be set _after_ the file has been closed */
- if(!result && config->remote_time && outs->s_isreg && outs->filename) {
+ if(!result && config->remote_time && outs->regular_file && outs->filename) {
/* Ask libcurl if we got a remote file time */
curl_off_t filetime = -1;
curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime);
}
else {
etag_save->filename = config->etag_save_file;
- etag_save->s_isreg = TRUE;
+ etag_save->regular_file = TRUE;
etag_save->fopened = TRUE;
etag_save->stream = newfile;
}
}
else {
heads->filename = config->headerfile;
- heads->s_isreg = TRUE;
+ heads->regular_file = TRUE;
heads->fopened = TRUE;
heads->stream = newfile;
}
outs->stream = NULL; /* open when needed */
}
outs->filename = per->outfile;
- outs->s_isreg = TRUE;
+ outs->regular_file = TRUE;
return CURLE_OK;
}
* 'is_cd_filename' member is TRUE when string pointed by 'filename' has been
* set using a server-specified Content-Disposition filename, otherwise FALSE.
*
- * 's_isreg' member is TRUE when output goes to a regular file, this also
+ * 'regular_file' member is TRUE when output goes to a regular file, this also
* implies that output is 'seekable' and 'appendable' and also that member
* 'filename' points to filename's string. For any standard stream member
- * 's_isreg' will be FALSE.
+ * 'regular_file' will be FALSE.
*
* 'fopened' member is TRUE when output goes to a regular file and it
* has been fopen'ed, requiring it to be closed later on. In any other
#endif
BIT(alloc_filename);
BIT(is_cd_filename);
- BIT(s_isreg);
+ BIT(regular_file);
BIT(fopened);
BIT(out_null);
};