• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/wget-1.12/src/

Lines Matching defs:hstat

1986    * hstat.local_file is set by http_loop to the argument of -O. */
2429 struct http_stat hstat; /* HTTP status */
2454 /* Setup hstat struct. */
2455 xzero (hstat);
2456 hstat.referer = referer;
2460 hstat.local_file = xstrdup (opt.output_document);
2465 hstat.local_file = url_file_name (u);
2471 if (got_name && file_exists_p (hstat.local_file) && opt.noclobber && !opt.output_document)
2478 quote (hstat.local_file));
2484 if (has_html_suffix_p (hstat.local_file))
2561 && stat (hstat.local_file, &st) == 0
2564 hstat.len even if count>1 because we don't want a failed
2566 hstat.restval = st.st_size;
2569 hstat.restval = hstat.len;
2571 hstat.restval = 0;
2586 err = gethttp (u, &hstat, dt, proxy, iri);
2592 if (hstat.newloc)
2593 *newloc = xstrdup (hstat.newloc);
2609 quote (hstat.local_file), strerror (errno));
2626 hstat.statcode);
2658 && (hstat.statcode == 500 || hstat.statcode == 501))
2679 tms, hstat.statcode,
2680 quotearg_style (escape_quoting_style, hstat.error));
2693 if (opt.timestamping && !hstat.remote_time)
2698 else if (hstat.remote_time)
2701 tmr = http_atotm (hstat.remote_time);
2714 if (hstat.orig_file_name) /* Perform the following
2719 if (hstat.remote_time &&
2728 if (hstat.orig_file_tstamp >= tmr)
2730 if (hstat.contlen == -1
2731 || hstat.orig_file_size == hstat.contlen)
2735 quote (hstat.orig_file_name));
2743 number_to_static_string (hstat.orig_file_size));
2754 /* free_hstat (&hstat); */
2755 hstat.timestamp_checked = true;
2796 tms, u->url, hstat.statcode,
2797 hstat.message ? quotearg_style (escape_quoting_style, hstat.message) : "");
2810 && ((hstat.len == hstat.contlen) ||
2811 ((hstat.res == 0) && (hstat.contlen == -1))))
2814 set_local_file (&fl, hstat.local_file);
2820 && hstat.remote_time && hstat.remote_time[0])
2822 newtmr = http_atotm (hstat.remote_time);
2831 tmrate = retr_rate (hstat.rd_size, hstat.dltime);
2832 total_download_time += hstat.dltime;
2834 if (hstat.len == hstat.contlen)
2845 write_to_stdout ? "" : quote (hstat.local_file),
2846 number_to_static_string (hstat.len),
2847 number_to_static_string (hstat.contlen));
2851 number_to_static_string (hstat.len),
2852 number_to_static_string (hstat.contlen),
2853 hstat.local_file, count);
2856 total_downloaded_bytes += hstat.len;
2860 downloaded_file(FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED, hstat.local_file);
2862 downloaded_file(FILE_DOWNLOADED_NORMALLY, hstat.local_file);
2867 else if (hstat.res == 0) /* No read error */
2869 if (hstat.contlen == -1) /* We don't know how much we were supposed
2881 write_to_stdout ? "" : quote (hstat.local_file),
2882 number_to_static_string (hstat.len));
2885 tms, u->url, number_to_static_string (hstat.len),
2886 hstat.local_file, count);
2889 total_downloaded_bytes += hstat.len;
2893 downloaded_file(FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED, hstat.local_file);
2895 downloaded_file(FILE_DOWNLOADED_NORMALLY, hstat.local_file);
2900 else if (hstat.len < hstat.contlen) /* meaning we lost the
2905 tms, tmrate, number_to_static_string (hstat.len));
2909 else if (hstat.len != hstat.restval)
2922 else /* from now on hstat.res can only be -1 */
2924 if (hstat.contlen == -1)
2928 tms, tmrate, number_to_static_string (hstat.len),
2929 hstat.rderrmsg);
2933 else /* hstat.res == -1 and contlen is given */
2938 number_to_static_string (hstat.len),
2939 number_to_static_string (hstat.contlen),
2940 hstat.rderrmsg);
2951 *local_file = xstrdup (hstat.local_file);
2952 free_hstat (&hstat);