Home | History | Annotate | Download | only in src

Lines Matching defs:outs

475         struct OutStruct outs;
491 memset(&outs, 0, sizeof(struct OutStruct));
492 outs.stream = stdout;
493 outs.config = config;
584 DEBUGASSERT(!outs.filename);
615 outs.fopened = TRUE;
616 outs.stream = file;
617 outs.init = config->resume_from;
620 outs.stream = NULL; /* open when needed */
622 outs.filename = outfile;
623 outs.s_isreg = TRUE;
728 if(output_expected(this_url, uploadfile) && outs.stream &&
729 isatty(fileno(outs.stream)))
802 my_setopt(curl, CURLOPT_WRITEDATA, &outs);
803 my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs);
1335 hdrcbdata.outs = &outs;
1440 /* If outs.metalink_parser is non-NULL, delete it first. */
1441 if(outs.metalink_parser)
1442 metalink_parser_context_delete(outs.metalink_parser);
1443 outs.metalink_parser = metalink_parser_context_new();
1444 if(outs.metalink_parser == NULL) {
1464 if(!result && !outs.stream && !outs.bytes) {
1472 if(!cond_unmet && !tool_create_output_file(&outs))
1476 if(outs.is_cd_filename && outs.stream && !global->mute &&
1477 outs.filename)
1478 printf("curl: Saved to filename '%s'\n", outs.filename);
1574 if(outs.bytes && outs.filename && outs.stream) {
1580 outs.bytes);
1581 fflush(outs.stream);
1584 if(ftruncate(fileno(outs.stream), outs.init)) {
1595 fseek(outs.stream, 0, SEEK_END);
1601 fseek(outs.stream, (long)outs.init, SEEK_SET);
1603 outs.bytes = 0; /* clear for next round */
1656 ourWriteOut(curl, &outs, config->writeout);
1702 if(!result && config->xattr && outs.fopened && outs.stream) {
1703 int rc = fwrite_xattr(curl, fileno(outs.stream));
1710 if(outs.fopened && outs.stream) {
1711 int rc = fclose(outs.stream);
1718 else if(!outs.s_isreg && outs.stream) {
1720 int rc = fflush(outs.stream);
1729 if(!result && outs.s_isreg && outs.filename) {
1733 SetComment(outs.filename, url);
1739 if(!result && config->remote_time && outs.s_isreg && outs.filename) {
1747 utime(outs.filename, &times); /* set the time we got */
1754 int rv = parse_metalink(config, &outs, this_url);
1763 int rv = metalink_check_hash(global, mlfile, outs.filename);
1771 if(outs.alloc_filename)
1772 Curl_safefree(outs.filename);
1774 if(outs.metalink_parser)
1775 metalink_parser_context_delete(outs.metalink_parser);
1777 memset(&outs, 0, sizeof(struct OutStruct));
1778 hdrcbdata.outs = NULL;