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);
1303 hdrcbdata.outs = &outs;
1395 /* If outs.metalink_parser is non-NULL, delete it first. */
1396 if(outs.metalink_parser)
1397 metalink_parser_context_delete(outs.metalink_parser);
1398 outs.metalink_parser = metalink_parser_context_new();
1399 if(outs.metalink_parser == NULL) {
1419 if(!result && !outs.stream && !outs.bytes) {
1427 if(!cond_unmet && !tool_create_output_file(&outs))
1431 if(outs.is_cd_filename && outs.stream && !global->mute &&
1432 outs.filename)
1433 printf("curl: Saved to filename '%s'\n", outs.filename);
1517 if(outs.bytes && outs.filename && outs.stream) {
1523 outs.bytes);
1524 fflush(outs.stream);
1527 if(ftruncate(fileno(outs.stream), outs.init)) {
1538 fseek(outs.stream, 0, SEEK_END);
1544 fseek(outs.stream, (long)outs.init, SEEK_SET);
1546 outs.bytes = 0; /* clear for next round */
1599 ourWriteOut(curl, &outs, config->writeout);
1645 if(!result && config->xattr && outs.fopened && outs.stream) {
1646 int rc = fwrite_xattr(curl, fileno(outs.stream));
1653 if(outs.fopened && outs.stream) {
1654 int rc = fclose(outs.stream);
1661 else if(!outs.s_isreg && outs.stream) {
1663 int rc = fflush(outs.stream);
1672 if(!result && outs.s_isreg && outs.filename) {
1676 SetComment(outs.filename, url);
1682 if(!result && config->remote_time && outs.s_isreg && outs.filename) {
1690 utime(outs.filename, ×); /* set the time we got */
1697 int rv = parse_metalink(config, &outs, this_url);
1706 int rv = metalink_check_hash(global, mlfile, outs.filename);
1714 if(outs.alloc_filename)
1715 Curl_safefree(outs.filename);
1717 if(outs.metalink_parser)
1718 metalink_parser_context_delete(outs.metalink_parser);
1720 memset(&outs, 0, sizeof(struct OutStruct));
1721 hdrcbdata.outs = NULL;