Lines Matching refs:outs
480 struct OutStruct outs;
495 memset(&outs, 0, sizeof(struct OutStruct));
496 outs.stream = stdout;
497 outs.config = config;
580 DEBUGASSERT(!outs.filename);
604 outs.fopened = TRUE;
605 outs.stream = file;
606 outs.init = config->resume_from;
609 outs.stream = NULL; /* open when needed */
611 outs.filename = outfile;
612 outs.s_isreg = TRUE;
700 && outs.stream && isatty(fileno(outs.stream)))
764 my_setopt(curl, CURLOPT_WRITEDATA, &outs);
1172 my_setopt(curl, CURLOPT_HEADERDATA, &outs);
1219 if(config->content_disposition && outs.stream && !config->mute &&
1220 outs.filename)
1221 printf("curl: Saved to filename '%s'\n", outs.filename);
1301 if(outs.bytes && outs.filename) {
1307 outs.bytes);
1308 fflush(outs.stream);
1311 if(ftruncate( fileno(outs.stream), outs.init)) {
1322 fseek(outs.stream, 0, SEEK_END);
1328 fseek(outs.stream, (long)outs.init, SEEK_SET);
1330 outs.bytes = 0; /* clear for next round */
1394 if(!res && config->xattr && outs.fopened && outs.stream) {
1395 int rc = fwrite_xattr(curl, fileno(outs.stream));
1402 if(outs.fopened && outs.stream) {
1403 int rc = fclose(outs.stream);
1410 else if(!outs.s_isreg && outs.stream) {
1412 int rc = fflush(outs.stream);
1421 if(!res && outs.s_isreg && outs.filename) {
1425 SetComment(outs.filename, url);
1431 if(!res && config->remote_time && outs.s_isreg && outs.filename) {
1439 utime(outs.filename, ×); /* set the time we got */
1444 if(outs.alloc_filename)
1445 Curl_safefree(outs.filename);
1446 memset(&outs, 0, sizeof(struct OutStruct));