• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/wget-1.12/src/

Lines Matching defs:local_file

1317   char *local_file;             /* local file name. */
1325 * (might be != local_file if -K is set) */
1338 xfree_null (hs->local_file);
1993 * hstat.local_file is set by http_loop to the argument of -O. */
1994 if (!hs->local_file)
2000 || !parse_content_disposition (hdrval, &hs->local_file))
2004 hs->local_file = url_file_name (u);
2009 if (!hs->existence_checked && file_exists_p (hs->local_file))
2017 File %s already there; not retrieving.\n\n"), quote (hs->local_file));
2023 if (has_html_suffix_p (hs->local_file))
2032 char *unique = unique_name (hs->local_file, true);
2033 if (unique != hs->local_file)
2034 xfree (hs->local_file);
2035 hs->local_file = unique;
2044 size_t filename_len = strlen (hs->local_file);
2068 memcpy (filename_plus_orig_suffix, hs->local_file, filename_len);
2082 if (stat (hs->local_file, &st) == 0)
2083 local_filename = hs->local_file;
2321 mkalldirs (hs->local_file);
2323 rotate_backups (hs->local_file);
2330 fp = fopen (hs->local_file, "ab", FOPEN_OPT_ARGS);
2332 fp = fopen (hs->local_file, "ab");
2341 fp = fopen (hs->local_file, "wb", FOPEN_OPT_ARGS);
2343 fp = fopen (hs->local_file, "wb");
2348 fp = fopen_excl (hs->local_file, FOPEN_BIN_FLAG);
2357 hs->local_file);
2365 logprintf (LOG_NOTQUIET, "%s: %s\n", hs->local_file, strerror (errno));
2378 HYPHENP (hs->local_file) ? quote ("STDOUT") : quote (hs->local_file));
2434 http_loop (struct url *u, char **newloc, char **local_file, const char *referer,
2451 assert (local_file == NULL || *local_file == NULL);
2454 if (local_file && opt.output_document)
2455 *local_file = HYPHENP (opt.output_document) ? NULL : xstrdup (opt.output_document);
2476 hstat.local_file = xstrdup (opt.output_document);
2481 hstat.local_file = url_file_name (u);
2487 if (got_name && file_exists_p (hstat.local_file) && opt.noclobber && !opt.output_document)
2494 quote (hstat.local_file));
2500 if (has_html_suffix_p (hstat.local_file))
2577 && stat (hstat.local_file, &st) == 0
2625 quote (hstat.local_file), strerror (errno));
2830 set_local_file (&fl, hstat.local_file);
2861 write_to_stdout ? "" : quote (hstat.local_file),
2869 hstat.local_file, count);
2876 downloaded_file(FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED, hstat.local_file);
2878 downloaded_file(FILE_DOWNLOADED_NORMALLY, hstat.local_file);
2897 write_to_stdout ? "" : quote (hstat.local_file),
2902 hstat.local_file, count);
2909 downloaded_file(FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED, hstat.local_file);
2911 downloaded_file(FILE_DOWNLOADED_NORMALLY, hstat.local_file);
2967 *local_file = xstrdup (hstat.local_file);
3341 char *last_period_in_local_filename = strrchr (hs->local_file, '.');
3354 int local_filename_len = strlen (hs->local_file);
3357 hs->local_file = xrealloc (hs->local_file,
3359 strcpy (hs->local_file + local_filename_len, ext);
3362 if (!ALLOW_CLOBBER && file_exists_p (hs->local_file))
3366 sprintf (hs->local_file + local_filename_len,
3368 while (file_exists_p (hs->local_file));