# Automatically generated by `hgimportsvn`
syntax:glob
.svn
+**.orig
configure
config.log
**Makefile
src/config.h
src/config.h.in
src/wget
+src/tags
+src/TAGS
doc/wget.1
doc/wget.pod
doc/wget.info
doc/sample.wgetrc.munged_for_texi_inclusion
+doc/wget.aux
+doc/wget.cp
+doc/wget.cps
+doc/wget.dvi
+doc/wget.fn
+doc/wget.ky
+doc/wget.log
+doc/wget.pdf
+doc/wget.pg
+doc/wget.toc
+doc/wget.tp
+doc/wget.vr
+doc/wget_a4.ps
+doc/wget_us.ps
po/Makefile.in
po/POTFILES
po/*.gmo
prototype implementation of the new recursive code, and more.
Co-maintained Wget during the 1.8 release cycle.
-Gisle Vanem. Contributed Windows improvements, including a port of
-run_with_timeout to Windows, additions to Makefiles, and many bug
-reports and fixes.
+Gisle Vanem. Contributed Windows and MS-DOS improvements, including a
+port of run_with_timeout to Windows, additions to Makefiles, and many
+bug reports and fixes.
Mauro Tortonesi. Improved IPv6 support, adding support for dual
family systems. Refactored and enhanced FTP IPv6 code. Maintained GNU
Daniel Stenberg. NTLM authentication in http-ntlm.c and http-ntlm.h
originally written for curl donated for use in GNU Wget.
+
+Micah Cowan. Current Wget maintainer, from mid-2007.
+2007-10-03 Micah Cowan <micah@cowan.name>
+
+ * NEWS: Note missing functionality from GnuTLS support. Call out
+ attention to content_disposition's experimental status.
+
+2007-09-25 Micah Cowan <micah@cowan.name>
+
+ * configure.in: Remove unnecessary heuristic to generate exeext
+ variable, since AC_PROG_CC and others automatically set EXEEXT.
+ Pointed out by Steve Kenton <skenton@ou.edu>.
+
+2007-09-12 Micah Cowan <micah@cowan.name>
+
+ * AUTHORS: Added... me...
+ * TODO: file removed, bugtracker is authoritative source for
+ planned changes.
+
2007-08-26 Micah Cowan <micah@cowan.name>
* po/POTFILES.in: Added spider.c.
windows/ChangeLog: documents only changes to files in the windows directory
+ msdos/ChangeLog: documents only changes to files in the msdos directory
+
When checking to see if a patch you sent in has been applied, please
look in the appropriate ChangeLog(s).
# Makefile for `Wget' utility
-# Copyright (C) 1995, 1996, 1997, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2006, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
GNU Wget NEWS -- history of user-visible changes.
-Copyright (C) 1997-2006 Free Software Foundation, Inc.
+Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+2006, 2007 Free Software Foundation, Inc.
See the end for copying conditions.
Please send GNU Wget bug reports to <bug-wget@gnu.org>.
\f
* Changes in Wget 1.11.
+** TODO file removed: we use a bugtracker now; see
+http://wget.addictivecode.org/BugTracker. Also,
+http://wget.addictivecode.org/FeatureSpecifications.
+
** Timestamping now uses the value from the most recent HTTP response,
rather than the first one it got.
file name used by many web dynamically generated pages. For the time
being, Content-Disposition is not used by default, to avoid the extra
round-trips incurred (must specify "-e contentdisposition=yes"); this
-may change in a future version.
-
-** The GnuTLS library is now also supported for https downloads.
-This is still work-in-progress. OpenSSL is still used by default; use
---with-ssl=gnutls to build with GnuTLS. OpenSSL is still required for
-NTLM authorization to work, but this should eventually change.
+may change in a future version. NOTE: This functionality is currently
+considered "experimental", and may not be fully functional.
+
+** The GnuTLS library is now also experimentally supported for https
+downloads. This is still work-in-progress. OpenSSL is still used by
+default; use --with-ssl=gnutls to build with GnuTLS. OpenSSL is still
+required for NTLM authorization to work, but this should eventually
+change. NOTE: Certificate verification is _not_ currently supported:
+this means that you can currently only use GnuTLS to encrypt
+connections, but _not_ to verify that a host is who it claims to be. Use
+of OpenSSL is suggested until this missing feature is implemented.
** The new option `--ignore-case' makes Wget ignore case when
matching files, directories, and wildcards. This affects the -X, -I,
for a detailed listing of all contributions.
-Copyright (C) 1995-2005 Free Software Foundation, Inc.
+Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+2005, 2006, 2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
+++ /dev/null
- -*- outline -*-
-
-This is the to-do list for GNU Wget. There is no timetable of when we
-plan to implement these features -- this is just a list of features
-we'd like to see in Wget, as well as a list of problems that need
-fixing. Patches to implement these items are likely to be accepted,
-especially if they follow the coding convention outlined in PATCHES
-and if they patch the documentation as well.
-
-The items are not listed in any particular order (except that
-recently-added items may tend towards the top). Not all of these
-represent user-visible changes.
-
-* Change the file name generation logic so that redirects can't dictate
- file names (but redirects should still be followed). By default, file
- names should be generated only from the URL the user provided. However,
- with an appropriate flag, Wget will allow the remote server to specify
- the file name, either through redirection (as is always the case now)
- or via the increasingly popular header `Content-Disposition: XXX;
- filename="FILE"'.
-
- The file name should be generated and displayed *after* processing
- the server's response, not before, as it is done now. This will
- allow trivial implementation of -nc, of O_EXCL when opening the
- file, --html-extension will stop being a horrible hack, and so on.
-
-* -O should be respected, with no exceptions. It should work in
- conjunction with -N and -k. (This is hard to achieve in the current
- code base.) Ancillary files, such as directory listings and such,
- should be downloaded either directly to memory, or to /tmp.
-
-* Implement digest and NTLM authorization for proxies. This is harder
- than it seems because it requires some rethinking of the HTTP code.
-
-* Rethink the interaction between recur.c (the recursive download code)
- and HTTP/FTP code. Ideally, the downloading code should have a way
- to retrieve a file and, optionally, to specify a list of URLs for
- continuing the "recursive" download. FTP code will surely benefit
- from such a restructuring because its current incarnation is way too
- smart for its own good.
-
-* Both HTTP and FTP connections should be first-class objects that can
- be reused after a download is done. Currently information about both
- is kept implicitly on the stack, and forgotten after each download.
-
-* Restructure the FTP code to remove massive amounts of code duplication
- and repetition. Remove all the "intelligence" and make it work as
- outlined in the previous bullet.
-
-* Add support for SFTP. Teach Wget about newer features of more
- recent FTP servers in general, such as receiving reliable checksums
- and timestamps. This can be used to implement really robust
- downloads.
-
-* Wget shouldn't delete rejected files that were not downloaded, but
- just found on disk because of `-nc'. For example, `wget -r -nc
- -A.gif URL' should allow the user to get all the GIFs without
- removing any of the existing HTML files.
-
-* Be careful not to lose username/password information given for the
- URL on the command line. For example,
- wget -r http://username:password@server/path/ should send that
- username and password to all content under /path/ (this is apparently
- what browsers do).
-
-* Don't send credentials using "Basic" authorization before the server
- has a chance to tell us that it supports Digest or NTLM!
-
-* Add a --range parameter allowing you to explicitly specify a range
- of bytes to get from a file over HTTP (FTP only supports ranges
- ending at the end of the file, though forcibly disconnecting from
- the server at the desired endpoint would work). For example,
- --range=n-m would specify inclusive range (a la the Range header),
- and --range=n:m would specify exclusive range (a la Python's
- slices). -c should work with --range by assuming the range is
- partially downloaded on disk, and contuing from there (effectively
- requesting a smaller range).
-
-* If multiple FTP URLs are specified that are on the same host, Wget should
- re-use the connection rather than opening a new one for each file.
- This should be easy provided the above restructuring of FTP code that
- would include the FTP connection becoming a first-class objects.
-
-* Try to devise a scheme so that, when password is unknown, Wget asks
- the user for one. This is harder than it seems because the password
- may be requested by some page encountered long after the user has
- left Wget to run.
-
-* If -c used with -N, check to make sure a file hasn't changed on the server
- before "continuing" to download it (preventing a bogus hybrid file).
-
-* Generalize --html-extension to something like --mime-extensions and
- have consult mime.types for the preferred extension. Non-HTML files
- with filenames changed this way would be re-downloaded each time
- despite -N unless .orig files were saved for them. (#### Why? The
- HEAD request we use to implement -N would still be able to construct
- the correct file name based on the declared Content-Type.)
-
- Since .orig would contain the same data as non-.orig, the latter
- could be just a link to the former. Another possibility would be to
- implement a per-directory database called something like
- .wget_url_mapping containing URLs and their corresponding filenames.
-
-* When spanning hosts, there's no way to say that you are only
- interested in files in a certain directory on _one_ of the hosts (-I
- and -X apply to all). Perhaps -I and -X should take an optional
- "hostname:" before the directory?
-
-* --retr-symlinks should cause wget to traverse links to directories too.
-
-* Make wget return non-zero status in more situations, like incorrect HTTP auth.
- Create and document different exit statuses for different errors.
-
-* Make -K compare X.orig to X and move the former on top of the latter if
- they're the same, rather than leaving identical .orig files laying around.
-
-* Make `-k' check for files that were downloaded in the past and convert links
- to them in newly-downloaded documents.
-
-* Devise a way for options to have effect on a per-URL basis. This is very
- natural for some options, such as --post-data. It could be implemented
- simply by having more than one struct options.
-
-* Add option to clobber existing file names (no `.N' suffixes).
-
-* Add option to only list wildcard matches without doing the download. The same
- could be generalized to support something like apt's --print-uri.
-
-* Handle MIME types correctly. There should be an option to (not)
- retrieve files based on MIME types, e.g. `--accept-types=image/*'.
- This would work for FTP by translating file extensions to MIME types
- using mime.types.
-
-* Allow time-stamping by arbitrary date. For example,
- wget --if-modified-after DATE URL.
-
-* Make quota apply to single files, preferrably so that the download of an
- oversized file is not attempted at all.
-
-* When updating an existing mirror, download to temporary files (such as .in*)
- and rename the file after the download is done.
-
-* Add an option to delete or move no-longer-existent files when mirroring.
-
-* Implement uploading (--upload=FILE URL?) in FTP and HTTP. A beginning of
- this is available in the form of --post-file, but it should be expanded to
- be really useful.
-
-* Make HTTP timestamping use If-Modified-Since facility.
-
-* Add more protocols (such as news or possibly some of the streaming
- protocols), implementing them in a modular fashion.
-
-* Add a "rollback" option to have continued retrieval throw away a
- configurable number of bytes at the end of a file before resuming
- download. Apparently, some stupid proxies insert a "transfer
- interrupted" string we need to get rid of.
# The (trivial) script for preparing the sources following the
# checkout from version control.
-# Copyright (C) 2005 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+# Foundation, Inc.
timestamp='2005-05-27'
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+# Foundation, Inc.
timestamp='2005-06-02'
@echo off\r
rem Configure batch file for `Wget' utility\r
-rem Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.\r
+rem Copyright (C) 1995, 1996, 1997, 2007 Free Software Foundation, Inc.\r
\r
rem This program is free software; you can redistribute it and/or modify\r
rem it under the terms of the GNU General Public License as published by\r
dnl Template file for GNU Autoconf
-dnl Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
+dnl Copyright (C) 1995, 1996, 1997, 2001, 2007 Free Software Foundation, Inc.
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
fi
fi
-dnl
-dnl In case of {cyg,gnu}win32. Should be a _target_ test.
-dnl Might also be erelevant for DJGPP.
-dnl
-case "$host_os" in
- *win32) exeext='.exe';;
- *) exeext='';;
-esac
-AC_SUBST(exeext)
-
dnl
dnl Checks for basic compiler characteristics.
dnl
+2007-10-03 Micah Cowan <micah@cowan.name>
+
+ * wget.texi <Wgetrc Commands>: Cleaned up alphabetization,
+ more consistent use of underscores. Added a description of the
+ content_disposition wgetrc command.
+
+2007-10-01 Micah Cowan <micah@cowan.name>
+
+ * wget.texi: Updated information in Mailing Lists, Reporting
+ Bugs. Added Web Site section, and add information about Mac OS
+ X, MS-DOS, and VMS in Portability.
+
+2007-09-27 Micah Cowan <micah@cowan.name>
+
+ * wget.texi: Removed "for more details" from parenthesese
+ enclosing @pxref{}s, so that texi2pod.pl knows to remove the
+ whole reference. Made some gramattical improvements, and
+ strengthened the recommendation to use the info manual instead.
+ * texi2pod.pl: Brought in some updates from the GCC version. Not
+ an entire update, since a couple "fixes" there breaks stuff
+ here.
+
+2007-09-12 Micah Cowan <micah@cowan.name>
+
+ * wget.texi: Expanded the description of -O. Clarified the
+ detection of elements as "patterns" versus "suffixes" in -A,
+ -R. Describe -p in relation to -nc.
+
2007-07-28 Micah Cowan <micah@cowan.name>
* wget.texi <HTTP Options>: Added --max-redirect option.
# Makefile for `wget' utility
-# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#! /usr/bin/env perl
-# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2003, 2007 Free Software
+# Foundation, Inc.
# This file is part of GCC.
/^\@include\s+(.+)$/ and do {
push @instack, $inf;
$inf = gensym();
+ $file = postprocess($1);
# Try cwd and $ibase.
- open($inf, "<" . $1)
- or open($inf, "<" . $ibase . "/" . $1)
- or die "cannot open $1 or $ibase/$1: $!\n";
+ open($inf, "<" . $file)
+ or open($inf, "<" . $ibase . "/" . $file)
+ or die "cannot open $file or $ibase/$file: $!\n";
next;
};
$ic =~ s/\@(?:code|kbd)/C/;
$ic =~ s/\@(?:dfn|var|emph|cite|i)/I/;
$ic =~ s/\@(?:file)/F/;
- $ic =~ s/\@(?:asis)/S/; # punt
$_ = "\n=over 4\n";
};
$sects{NAME} = "$fn \- $tl\n";
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
-for $sect (qw(NAME SYNOPSIS DESCRIPTION OPTIONS ENVIRONMENT EXAMPLES FILES
+for $sect (qw(NAME SYNOPSIS DESCRIPTION OPTIONS ENVIRONMENT FILES
BUGS NOTES FOOTNOTES SEEALSO AUTHOR COPYRIGHT)) {
if(exists $sects{$sect}) {
$head = $sect;
s/\@w\{([^\}]*)\}/S<$1>/g;
s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
+ # keep references of the form @ref{...}, print them bold
+ s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;
+
+ # Change double single quotes to double quotes.
+ s/''/"/g;
+ s/``/"/g;
+
# Cross references are thrown away, as are @noindent and @refill.
# (@noindent is impossible in .pod, and @refill is unnecessary.)
# @* is also impossible in .pod; we discard it and any newline that
Currently maintained by Micah Cowan <micah@cowan.name>.
@c man end
@c man begin SEEALSO
-GNU Info entry for @file{wget}.
+This is @strong{not} the complete manual for GNU Wget.
+For more complete information, including more detailed explanations of
+some of the options, and a number of commands available
+for use with @file{.wgetrc} files and the @samp{-e} option, see the GNU
+Info entry for @file{wget}.
@c man end
@end ignore
@end example
The space between the option accepting an argument and the argument may
-be omitted. Instead @samp{-o log} you can write @samp{-olog}.
+be omitted. Instead of @samp{-o log} you can write @samp{-olog}.
You may put several options that do not require arguments together,
like:
disabling link conversion. (Use @samp{./-} to print to a file
literally named @samp{-}.)
-Note that a combination with @samp{-k} is only well-defined for
-downloading a single document.
+Use of @samp{-O} is @emph{not} intended to mean simply ``use the name
+@var{file} instead of the one in the URL;'' rather, it is
+analogous to shell redirection:
+@samp{wget -O file http://foo} is intended to work like
+@samp{wget -O - http://foo > file}; @file{file} will be truncated
+immediately, and @emph{all} downloaded content will be written there.
+
+Note that a combination with @samp{-k} is only permitted when
+downloading a single document, and combination with any of @samp{-r},
+@samp{-p}, or @samp{-N} is not allowed.
@cindex clobbering, file
@cindex downloading multiple times
cases, the local file will be @dfn{clobbered}, or overwritten, upon
repeated download. In other cases it will be preserved.
-When running Wget without @samp{-N}, @samp{-nc}, or @samp{-r},
+When running Wget without @samp{-N}, @samp{-nc}, @samp{-r}, or @samp{p},
downloading the same file in the same directory will result in the
original copy of @var{file} being preserved and the second copy being
named @samp{@var{file}.1}. If that file is downloaded yet again, the
preventing clobbering), but rather the multiple version saving that's
prevented.
-When running Wget with @samp{-r}, but without @samp{-N} or @samp{-nc},
-re-downloading a file will result in the new copy simply overwriting the
-old. Adding @samp{-nc} will prevent this behavior, instead causing the
-original version to be preserved and any newer copies on the server to
-be ignored.
+When running Wget with @samp{-r} or @samp{-p}, but without @samp{-N}
+or @samp{-nc}, re-downloading a file will result in the new copy
+simply overwriting the old. Adding @samp{-nc} will prevent this
+behavior, instead causing the original version to be preserved and any
+newer copies on the server to be ignored.
-When running Wget with @samp{-N}, with or without @samp{-r}, the
-decision as to whether or not to download a newer copy of a file depends
-on the local and remote timestamp and size of the file
-(@pxref{Time-Stamping}). @samp{-nc} may not be specified at the same
-time as @samp{-N}.
+When running Wget with @samp{-N}, with or without @samp{-r} or
+@samp{-p}, the decision as to whether or not to download a newer copy
+of a file depends on the local and remote timestamp and size of the
+file (@pxref{Time-Stamping}). @samp{-nc} may not be specified at the
+same time as @samp{-N}.
Note that when @samp{-nc} is specified, files with the suffixes
@samp{.html} or @samp{.htm} will be loaded from the local disk and
@cindex timeout, read
@item --read-timeout=@var{seconds}
Set the read (and write) timeout to @var{seconds} seconds. The
-``time'' of this timeout refers @dfn{idle time}: if, at any point in
+``time'' of this timeout refers to @dfn{idle time}: if, at any point in
the download, no data is received for more than the specified number
of seconds, reading fails and the download is restarted. This option
does not directly affect the duration of the entire download.
@itemx --http-password=@var{password}
Specify the username @var{user} and password @var{password} on an
@sc{http} server. According to the type of the challenge, Wget will
-encode them using either the @code{basic} (insecure) or the
-@code{digest} authentication scheme.
+encode them using either the @code{basic} (insecure),
+the @code{digest}, or the Windows @code{NTLM} authentication scheme.
Another way to specify username and password is in the @sc{url} itself
(@pxref{URL Format}). Either method reveals your password to anyone who
@item -A @var{acclist} --accept @var{acclist}
@itemx -R @var{rejlist} --reject @var{rejlist}
Specify comma-separated lists of file name suffixes or patterns to
-accept or reject (@pxref{Types of Files} for more details).
+accept or reject (@pxref{Types of Files}). Note that if
+any of the wildcard characters, @samp{*}, @samp{?}, @samp{[} or
+@samp{]}, appear in an element of @var{acclist} or @var{rejlist},
+it will be treated as a pattern, rather than a suffix.
@item -D @var{domain-list}
@itemx --domains=@var{domain-list}
@item -I @var{list}
@itemx --include-directories=@var{list}
Specify a comma-separated list of directories you wish to follow when
-downloading (@pxref{Directory-Based Limits} for more details.) Elements
+downloading (@pxref{Directory-Based Limits}). Elements
of @var{list} may contain wildcards.
@item -X @var{list}
@itemx --exclude-directories=@var{list}
Specify a comma-separated list of directories you wish to exclude from
-download (@pxref{Directory-Based Limits} for more details.) Elements of
+download (@pxref{Directory-Based Limits}). Elements of
@var{list} may contain wildcards.
@item -np
@item add_hostdir = on/off
Enable/disable host-prefixed file names. @samp{-nH} disables it.
-@item continue = on/off
-If set to on, force continuation of preexistent partially retrieved
-files. See @samp{-c} before setting it.
-
@item background = on/off
Enable/disable going to background---the same as @samp{-b} (which
enables it).
the specified client authorities. The default is ``on''. The same as
@samp{--check-certificate}.
+@item connect_timeout = @var{n}
+Set the connect timeout---the same as @samp{--connect-timeout}.
+
+@item content_disposition = on/off
+If this is set to on, experimental (not fully-functional) support for
+@samp{Content-Disposition} headers is enabled. This can currently result in
+extra round-trips to the server for a @samp{HEAD} request, which is why
+it is not currently enabled by default.
+
+This option is useful for some file-downloading CGI programs that use
+@samp{Content-Disposition} headers to describe what the name of a
+downloaded file should be.
+
+@item continue = on/off
+If set to on, force continuation of preexistent partially retrieved
+files. See @samp{-c} before setting it.
+
@item convert_links = on/off
Convert non-relative links locally. The same as @samp{-k}.
@item cookies = on/off
When set to off, disallow cookies. See the @samp{--cookies} option.
-@item connect_timeout = @var{n}
-Set the connect timeout---the same as @samp{--connect-timeout}.
-
@item cut_dirs = @var{n}
Ignore @var{n} remote directory components. Equivalent to
@samp{--cut-dirs=@var{n}}.
suit your needs, or you can use the predefined @dfn{styles}
(@pxref{Download Options}).
+@item dot_spacing = @var{n}
+Specify the number of dots in a single cluster (10 by default).
+
@item dots_in_line = @var{n}
Specify the number of dots that will be printed in each line throughout
the retrieval (50 by default).
-@item dot_spacing = @var{n}
-Specify the number of dots in a single cluster (10 by default).
-
@item egd_file = @var{file}
Use @var{string} as the EGD socket file name. The same as
@samp{--egd-file=@var{file}}.
@item logfile = @var{file}
Set logfile to @var{file}, the same as @samp{-o @var{file}}.
+@item max_redirect = @var{number}
+Specifies the maximum number of redirections to follow for a resource.
+See @samp{--max-redirect=@var{number}}.
+
@item mirror = on/off
Turn mirroring on/off. The same as @samp{-m}.
@item netrc = on/off
Turn reading netrc on or off.
-@item noclobber = on/off
+@item no_clobber = on/off
Same as @samp{-nc}.
@item no_parent = on/off
When set, use the protocol name as a directory component of local file
names. The same as @samp{--protocol-directories}.
-@item proxy_user = @var{string}
-Set proxy authentication user name to @var{string}, like
-@samp{--proxy-user=@var{string}}.
-
@item proxy_password = @var{string}
Set proxy authentication password to @var{string}, like
@samp{--proxy-password=@var{string}}.
+@item proxy_user = @var{string}
+Set proxy authentication user name to @var{string}, like
+@samp{--proxy-user=@var{string}}.
+
@item quiet = on/off
Quiet mode---the same as @samp{-q}.
@item referer = @var{string}
Set HTTP @samp{Referer:} header just like
-@samp{--referer=@var{string}}. (Note it was the folks who wrote the
-@sc{http} spec who got the spelling of ``referrer'' wrong.)
+@samp{--referer=@var{string}}. (Note that it was the folks who wrote
+the @sc{http} spec who got the spelling of ``referrer'' wrong.)
@item relative_only = on/off
Follow only relative links---the same as @samp{-L} (@pxref{Relative
Wait @var{n} seconds between retrievals---the same as @samp{-w
@var{n}}.
-@item waitretry = @var{n}
+@item wait_retry = @var{n}
Wait up to @var{n} seconds between retries of failed retrievals
only---the same as @samp{--waitretry=@var{n}}. Note that this is
turned on by default in the global @file{wgetrc}.
This chapter contains all the stuff that could not fit anywhere else.
@menu
-* Proxies:: Support for proxy servers
+* Proxies:: Support for proxy servers.
* Distribution:: Getting the latest version.
+* Web Site:: GNU Wget's presence on the World Wide Web.
* Mailing List:: Wget mailing list for announcements and discussion.
* Reporting Bugs:: How and where to report bugs.
* Portability:: The systems Wget works on.
Wget @value{VERSION} can be found at
@url{ftp://ftp.gnu.org/pub/gnu/wget/wget-@value{VERSION}.tar.gz}
+@node Web Site
+@section Web Site
+@cindex web site
+
+The official web site for GNU Wget is at
+@url{http://www.gnu.org/software/wget/}. However, most useful
+information resides at ``The Wget Wgiki'',
+@url{http://wget.addictivecode.org/}.
+
@node Mailing List
@section Mailing List
@cindex mailing list
@cindex list
-There are several Wget-related mailing lists, all hosted by
-SunSITE.dk. The general discussion list is at
-@email{wget@@sunsite.dk}. It is the preferred place for bug reports
-and suggestions, as well as for discussion of development. You are
-invited to subscribe.
+There are several Wget-related mailing lists. The general discussion
+list is at @email{wget@@sunsite.dk}. It is the preferred place for
+support requests and suggestions, as well as for discussion of
+development. You are invited to subscribe.
To subscribe, simply send mail to @email{wget-subscribe@@sunsite.dk}
and follow the instructions. Unsubscribe by mailing to
@url{http://www.mail-archive.com/wget%40sunsite.dk/} and at
@url{http://news.gmane.org/gmane.comp.web.wget.general}.
-The second mailing list is at @email{wget-patches@@sunsite.dk}, and is
+Another mailing list is at @email{wget-patches@@sunsite.dk}, and is
used to submit patches for review by Wget developers. A ``patch'' is
a textual representation of change to source code, readable by both
humans and programs. The file @file{PATCHES} that comes with Wget
send general suggestions or bug reports to @samp{wget-patches}; use it
only for patch submissions.
-To subscribe, simply send mail to @email{wget-subscribe@@sunsite.dk}
-and follow the instructions. Unsubscribe by mailing to
-@email{wget-unsubscribe@@sunsite.dk}. The mailing list is archived at
+Subscription is the same as above for @email{wget@@sunsite.dk}, except
+that you send to @email{wget-patches-subscribe@@sunsite.dk}, instead.
+The mailing list is archived at
@url{http://news.gmane.org/gmane.comp.web.wget.patches}.
+Finally, there is the @email{wget-notify@@addictivecode.org} mailing
+list. This is a non-discussion list that receives commit notifications
+from the source repository, and also bug report-change notifications.
+This is the highest-traffic list for Wget, and is recommended only for
+people who are seriously interested in ongoing Wget development.
+Subscription is through the @code{mailman} interface at
+@url{http://addictivecode.org/mailman/listinfo/wget-notify}.
+
@node Reporting Bugs
@section Reporting Bugs
@cindex bugs
@cindex bug reports
@c man begin BUGS
-You are welcome to send bug reports about GNU Wget to
-@email{bug-wget@@gnu.org}.
+You are welcome to submit bug reports via the GNU Wget bug tracker (see
+@url{http://wget.addictivecode.org/BugTracker}).
Before actually submitting a bug report, please try to follow a few
simple guidelines.
Please try to ascertain that the behavior you see really is a bug. If
Wget crashes, it's a bug. If Wget does not behave as documented,
it's a bug. If things work strange, but you are not sure about the way
-they are supposed to work, it might well be a bug.
+they are supposed to work, it might well be a bug, but you might want to
+double-check the documentation and the mailing lists (@pxref{Mailing
+List}).
@item
Try to repeat the bug in as simple circumstances as possible. E.g. if
``special'' features of any particular Unix, it should compile (and
work) on all common Unix flavors.
-Various Wget versions have been compiled and tested under many kinds
-of Unix systems, including GNU/Linux, Solaris, SunOS 4.x, OSF (aka
-Digital Unix or Tru64), Ultrix, *BSD, IRIX, AIX, and others. Some of
-those systems are no longer in widespread use and may not be able to
+Various Wget versions have been compiled and tested under many kinds of
+Unix systems, including GNU/Linux, Solaris, SunOS 4.x, Mac OS X, OSF
+(aka Digital Unix or Tru64), Ultrix, *BSD, IRIX, AIX, and others. Some
+of those systems are no longer in widespread use and may not be able to
support recent versions of Wget. If Wget fails to compile on your
system, we would like to know about it.
@email{wget@@sunsite.dk} where the volunteers who maintain the
Windows-related features might look at them.
+Support for building on MS-DOS via DJGPP has been contributed by Gisle
+Vanem; a port to VMS is maintained by Steven Schweda, and is available
+at @url{http://antinode.org/}.
+
@node Signals
@section Signals
@cindex signal handling
Junio Hamano---donated support for Opie and @sc{http} @code{Digest}
authentication.
+@item
+Mauro Tortonesi---Improved IPv6 support, adding support for dual
+family systems. Refactored and enhanced FTP IPv6 code. Maintained GNU
+Wget from 2004--2007.
+
+@item
+Christopher G.@: Lewis---Maintenance of the Windows version of GNU WGet.
+
+@item
+Gisle Vanem---Many helpful patches and improvements, especially for
+Windows and MS-DOS support.
+
@item
People who provided donations for development---including Brian Gough.
@end itemize
Dieter Baron,
Roger Beeman,
Dan Berger,
-T. Bharath,
+T.@: Bharath,
Christian Biere,
Paul Bludov,
Daniel Bodea,
Andy Eskilsson,
Christian Fraenkel,
David Fritz,
-Charles C. Fu,
+Charles C.@: Fu,
FUJISHIMA Satsuki,
Masashi Fujita,
Howard Gayle,
@end ifnottex
Christian Lackas,
Hrvoje Lacko,
-Daniel S. Lewart,
+Daniel S.@: Lewart,
@iftex
Nicol@'{a}s Lichtmeier,
@end iftex
Nicolas Lichtmeier,
@end ifnottex
Dave Love,
-Alexander V. Lukyanov,
+Alexander V.@: Lukyanov,
@iftex
Thomas Lu@ss{}nig,
@end iftex
@end ifnottex
Andre Majorel,
Aurelien Marchand,
-Matthew J. Mellon,
+Matthew J.@: Mellon,
Jordan Mendelson,
Lin Zhe Min,
Jan Minar,
Tim Mooney,
Keith Moore,
-Adam D. Moss,
+Adam D.@: Moss,
Simon Munton,
Charlie Negyesi,
-R. K. Owen,
+R.@: K.@: Owen,
Leonid Petrov,
Simone Piunno,
Andrew Pollock,
Bill Richardson,
Tyler Riddle,
Tobias Ringstrom,
+Jochen Roderburg,
@c Texinfo doesn't grok @'{@i}, so we have to use TeX itself.
@tex
Juan Jos\'{e} Rodr\'{\i}guez,
@ifnottex
Juan Jose Rodriguez,
@end ifnottex
-Maciej W. Rozycki,
-Edward J. Sabol,
+Maciej W.@: Rozycki,
+Edward J.@: Sabol,
Heinz Salzmann,
Robert Schmidt,
Nicolas Schodet,
Andreas Schwab,
-Steven M. Schweda,
+Steven M.@: Schweda,
Chris Seawood,
Dennis Smit,
Toomas Soome,
Zeljko Vrba,
@end ifnottex
Charles G Waldman,
-Douglas E. Wegscheid,
+Douglas E.@: Wegscheid,
+Ralf Wildenhues,
+Joshua David Williams,
YAMAZAKI Makoto,
Jasmin Zainul,
@iftex
# lib-ld.m4 serial 3 (gettext-0.13)
-dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
+dnl Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+dnl 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# lib-link.m4 serial 6 (gettext-0.14.3)
-dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
+dnl Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+dnl Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# lib-prefix.m4 serial 4 (gettext-0.14.2)
-dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
+dnl Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+dnl Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl Wget-specific Autoconf macros.
-dnl Copyright (C) 1996-2005, 2007 Free Software Foundation, Inc.
+dnl Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+dnl 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
--- /dev/null
+2007-09-24 Gisle Vanem <giva@bgnett.no>
+
+ * Makefile.DJ, config.h: Added to support building on MS-DOS via
+ DJGPP.
--- /dev/null
+#
+# GNU Makefile for wget / djgpp / MSDOS.
+# By Gisle Vanem <giva@bgnett.no>.
+#
+.SUFFIXES: .exe .map
+
+USE_OPENSSL = 0
+USE_IPV6 = 1
+
+OPENSSL_ROOT = e:/net/OpenSSL.099
+ZLIB_ROOT = e:/djgpp/contrib/zlib
+
+VPATH = ../src
+OBJ_DIR = djgpp.obj
+CC = gcc
+CFLAGS = -O2 -g -Wall -Wcast-align -I. -I../src -I/dev/env/WATT_ROOT/inc \
+ -DHAVE_CONFIG_H -DENABLE_DEBUG
+
+# LDFLAGS = -s
+
+ifeq ($(USE_OPENSSL),1)
+ CFLAGS += -DHAVE_OPENSSL -DHAVE_SSL -I$(OPENSSL_ROOT)
+ EX_LIBS += $(OPENSSL_ROOT)/lib/libssl.a $(OPENSSL_ROOT)/lib/libcrypt.a \
+ $(ZLIB_ROOT)/libz.a
+ SOURCES = ../src/openssl.c ../src/http-ntlm.c
+endif
+
+ifeq ($(USE_IPV6),1)
+ CFLAGS += -DENABLE_IPV6
+endif
+
+EX_LIBS += /dev/env/WATT_ROOT/lib/libwatt.a
+
+SOURCES += $(addprefix ../src/, cmpt.c connect.c cookies.c ftp.c ftp-basic.c \
+ ftp-ls.c ftp-opie.c getopt.c hash.c host.c html-parse.c html-url.c \
+ http.c init.c log.c main.c gen-md5.c gnu-md5.c netrc.c progress.c \
+ recur.c res.c retr.c safe-ctype.c url.c utils.c version.c convert.c \
+ xmalloc.c ptimer.c spider.c)
+
+OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
+
+all: $(OBJ_DIR) ../wget-dos.exe
+ @echo 'Welcome to Wget'
+
+$(OBJ_DIR):
+ mkdir $(OBJ_DIR)
+
+../wget-dos.exe: $(OBJECTS)
+ $(CC) $(LDFLAGS) -o $@ $^ $(EX_LIBS)
+
+clean:
+ rm -f $(OBJECTS) $(MAPFILE)
+
+vclean realclean: clean
+ rm -f ../wget-dos.exe depend.dj
+ - rmdir $(OBJ_DIR)
+
+$(OBJ_DIR)/%.o: %.c
+ $(CC) $(CFLAGS) -o $@ -c $<
+ @echo
+
+depend:
+ $(CC) -MM $(CFLAGS) $(SOURCES) | \
+ sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' > depend.dj
+
+-include depend.dj
+
--- /dev/null
+/* Configuration header file for MS-DOS/Watt-32
+ Copyright (C) 2007 Free Software Foundation, Inc.
+
+ This file is part of GNU Wget.
+
+ GNU Wget is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ GNU Wget is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Wget. If not, see <http://www.gnu.org/licenses/>.
+
+ In addition, as a special exception, the Free Software Foundation
+ gives permission to link the code of its release of Wget with the
+ OpenSSL project's "OpenSSL" library (or with modified versions of it
+ that use the same license as the "OpenSSL" library), and distribute
+ the linked executables. You must obey the GNU General Public License
+ in all respects for all of the code used other than "OpenSSL". If you
+ modify this file, you may extend this exception to your version of the
+ file, but you are not obligated to do so. If you do not wish to do
+ so, delete this exception statement from your version. */
+
+
+#ifndef CONFIG_DOS_H
+#define CONFIG_DOS_H
+
+#include <stdlib.h>
+#include <limits.h>
+#include <tcp.h>
+#include <malloc.h>
+
+#ifdef __DJGPP__
+#include <sys/config.h>
+#endif
+
+#include <sys/errno.h>
+
+#if defined(__WATCOMC__) && (__WATCOMC__ >= 1250) /* OW 1.5+ */
+ #define OPENWATCOM_15
+#endif
+
+#if defined(__HIGHC__)
+ #define inline
+ #define HAVE_UNISTD_H 1
+ #define HAVE_UTIME_H 1
+#endif
+
+#if defined(__WATCOMC__) || defined(__BORLANDC__)
+ #define inline
+#endif
+
+#ifdef HAVE_SSL
+ #define OPENSSL_NO_KRB5
+#endif
+
+#define STDC_HEADERS 1
+#define RETSIGTYPE void
+
+#define USE_OPIE 1
+#define USE_DIGEST 1
+#define DEBUG
+
+#ifdef __DJGPP__
+ #define HAVE_STRUCT_UTIMBUF 1
+ #define HAVE_UNAME 1
+ #define HAVE_UTIME_H 1
+ #define HAVE_STRCASECMP 1
+ #define HAVE_STRNCASECMP 1
+ #define HAVE_SYS_SELECT_H 1
+ #define HAVE_USLEEP 1
+ #define HAVE_SIGNAL 1
+ #define HAVE_BASENAME 1
+ #define HAVE_SIGSETJMP 1
+ #define HAVE_SIGBLOCK 1
+ #define HAVE__BOOL 1
+
+ #if (DJGPP_MINOR >= 4)
+ #include <stdbool.h>
+ #define HAVE_SNPRINTF 1
+ #define HAVE_VSNPRINTF 1
+ #define HAVE_UINT32_T 1
+ #endif
+#endif
+
+#ifdef __HIGHC__
+ #define HAVE_STRUCT_UTIMBUF 1
+ #define HAVE_UTIME_H 1
+#endif
+
+#ifdef OPENWATCOM_15
+ #define HAVE_STRCASECMP
+ #define HAVE_STRNCASECMP
+#endif
+
+#define HAVE_GETHOSTBYNAME 1
+#define HAVE_GETHOSTNAME 1
+#define HAVE_SELECT 1
+#define HAVE_STRDUP 1
+#define HAVE_STRERROR 1
+#define HAVE_STRSTR 1
+#define HAVE_MKTIME 1
+#define HAVE_STDARG_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SIGNAL_H 1
+#define HAVE_GETTIMEOFDAY 1
+#define HAVE_MD5 1
+#define HAVE_BUILTIN_MD5 1
+#define HAVE_ISATTY 1
+#define HAVE_MEMMOVE 1
+
+#define OS_TYPE "DOS"
+#define CTRLBREAK_BACKGND 1
+#define PROTOTYPES 1
+
+#define WGET_USE_STDARG
+
+#define lookup_host wget_lookuphost
+#define select select_s
+#define socklen_t int
+
+#define sock_read wget_sock_read
+#define sock_write wget_sock_write
+#define sock_close wget_sock_close
+
+#if defined(__DJGPP__)
+ #define MKDIR(p,a) mkdir(p,a)
+#else
+ #define strcasecmp stricmp
+ #define MKDIR(p,a) mkdir(p)
+#endif
+
+#if !defined(MSDOS)
+#define MSDOS
+#endif
+
+#endif /* CONFIG_DOS_H */
# List of files which containing translatable strings.
-# Copyright (C) 1998 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+# 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
# Package source files
src/cmpt.c
+2007-10-02 Micah Cowan <micah@cowan.name>
+
+ * ftp.c (getftp, ftp_loop_internal), http.c (http_loop), main
+ (main): Use datetime_str instead of time_str, for those who have
+ potentially long-running sessions. Based on suggestions by Saso
+ Tomat <miskox@hotmail.com> and Steven M. Schweda
+ <sms@antinode.org>.
+ * http.c (gethttp): Warn about host lookup failures. Adjusted
+ from Stephen Gildea's patch.
+
+2007-10-02 Stephen Gildea <stepheng+wget@gildea.com>
+
+ * connect.c (connect_to_host): Warn about host lookup failures.
+
+2007-09-25 Micah Cowan <micah@cowan.name>
+
+ * Makefile.in: Use EXEEXT instead of exeext.
+
+2007-09-24 Gisle Vanem <giva@bgnett.no>
+
+ * connect.c, init.c, main.c, openssl.c, options.h, sysdep.h,
+ url.c, utils.c: Added support for building on MS-DOS.
+
+2007-09-24 Jochen Roderburg <roderburg@uni-koeln.de>
+
+ * http.c (http_zero): Remove no-longer-used local_size variable.
+ Fixes bug #21057.
+
2007-09-12 Micah Cowan <micah@cowan.name>
* http.c (http_loop): Remove send_head_first from condition for
# Makefile for `wget' utility
-# Copyright (C) 1995-2006 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+# 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@
-exeext = @exeext@
+exeext = @EXEEXT@
INCLUDES = -I. -I$(srcdir)
/* Replacements for routines missing on some systems.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Establishing and handling network connections.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
retry:
if (!al)
- return E_HOST;
+ {
+ logprintf (LOG_NOTQUIET,
+ _("%s: unable to resolve host address `%s'\n"),
+ exec_name, host);
+ return E_HOST;
+ }
address_list_get_bounds (al, &start, &end);
for (i = start; i < end; i++)
\f
/* Basic socket operations, mostly EINTR wrappers. */
-#ifdef WINDOWS
+#if defined(WINDOWS) || defined(MSDOS)
# define read(fd, buf, cnt) recv (fd, buf, cnt, 0)
# define write(fd, buf, cnt) send (fd, buf, cnt, 0)
# define close(fd) closesocket (fd)
/* Declarations for connect.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Conversion of links to local files.
- Copyright (C) 2003-2006 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for convert.c
- Copyright (C) 2003-2006 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Support for cookies.
- Copyright (C) 2001-2006 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+ Software Foundation, Inc.
This file is part of GNU Wget.
/* Support for cookies.
- Copyright (C) 2001-2006 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+ Software Foundation, Inc.
This file is part of GNU Wget.
/* Basic FTP routines.
- Copyright (C) 1996-2007 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Parsing FTP `ls' output.
- Copyright (C) 1996-2004 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Opie (s/key) support for FTP.
- Copyright (C) 1998-2004 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* File Transfer Protocol support.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
expected_bytes ? expected_bytes - restval : 0,
restval, &rd_size, len, &con->dltime, flags);
- tms = time_str (time (NULL));
+ tms = datetime_str (time (NULL));
tmrate = retr_rate (rd_size, con->dltime);
total_download_time += con->dltime;
restval = 0;
/* Get the current time string. */
- tms = time_str (time (NULL));
+ tms = datetime_str (time (NULL));
/* Print fetch message, if opt.verbose. */
if (opt.verbose)
{
/* Not as great. */
abort ();
}
- tms = time_str (time (NULL));
+ tms = datetime_str (time (NULL));
if (!opt.spider)
tmrate = retr_rate (len - restval, con->dltime);
/* Declarations for FTP support.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* General MD5 support.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+ Foundation, Inc.
This file is part of GNU Wget.
/* General MD5 header file.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+ Foundation, Inc.
This file is part of GNU Wget.
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
according to the definition of MD5 in RFC 1321 from April 1992.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 2007 Free Software Foundation, Inc.
This file is part of the GNU C library.
The GNU C Library is free software; you can redistribute it and/or
/* md5.h - Declaration of functions and data types used for MD5 sum
computing library functions.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 2007 Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
/* SSL support via GnuTLS library.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Hash tables.
- Copyright (C) 2000-2006 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+ Software Foundation, Inc.
This file is part of GNU Wget.
/* Hash table declarations.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Host name resolution and matching.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for host.c
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* HTML parser for Wget.
- Copyright (C) 1998-2006 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for html-parse.c.
- Copyright (C) 1998-2006 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Collect URLs from HTML source.
- Copyright (C) 1998-2006 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* NTLM code.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
Contributed by Daniel Stenberg.
This file is part of GNU Wget.
#ifndef __HTTP_NTLM_H
#define __HTTP_NTLM_H
/* Declarations for http_ntlm.c
- Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 2000, 2007 Free Software Foundation, Inc.
Contributed by Daniel Stenberg.
This file is part of GNU Wget.
/* HTTP support.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
only hurts us. */
request_remove_header (req, "Authorization");
}
- }
-
- if (sock < 0)
- {
- /* In its current implementation, persistent_available_p will
- look up conn->host in some cases. If that lookup failed, we
- don't need to bother with connect_to_host. */
- if (host_lookup_failed)
+ else if (host_lookup_failed)
{
request_free (req);
+ logprintf(LOG_NOTQUIET,
+ _("%s: unable to resolve host address `%s'\n"),
+ exec_name, relevant->host);
return HOSTERR;
}
+ }
+ if (sock < 0)
+ {
sock = connect_to_host (conn->host, conn->port);
if (sock == E_HOST)
{
if (has_html_suffix_p (hs->local_file))
*dt |= TEXTHTML;
- return RETROK;
+ return RETRUNNEEDED;
}
else if (!ALLOW_CLOBBER)
{
const char *tmrate;
uerr_t err, ret = TRYLIMEXC;
time_t tmr = -1; /* remote time-stamp */
- wgint local_size = 0; /* the size of the local file */
struct http_stat hstat; /* HTTP status */
struct_stat st;
bool send_head_first = true;
hstat.local_file = xstrdup (opt.output_document);
got_name = true;
}
+ else if (!opt.content_disposition)
+ {
+ hstat.local_file = url_file_name (u);
+ got_name = true;
+ }
/* Reset the counter. */
count = 0;
sleep_between_retrievals (count);
/* Get the current time string. */
- tms = time_str (time (NULL));
+ tms = datetime_str (time (NULL));
if (opt.spider && !got_head)
logprintf (LOG_VERBOSE, _("\
err = gethttp (u, &hstat, dt, proxy);
/* Time? */
- tms = time_str (time (NULL));
+ tms = datetime_str (time (NULL));
/* Get the new location (with or without the redirection). */
if (hstat.newloc)
{
logprintf (LOG_VERBOSE, _("\
The sizes do not match (local %s) -- retrieving.\n"),
- number_to_static_string (local_size));
+ number_to_static_string (hstat.orig_file_size));
}
}
else
/* Declarations for HTTP.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Reading/parsing the initialization file.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
add any entries that allocate memory (e.g. cmd_string and
cmd_vector) to the cleanup() function below. */
-static struct {
+static const struct {
const char *name;
void *place;
bool (*action) (const char *, const char *, void *);
{ "useragent", NULL, cmd_spec_useragent },
{ "verbose", NULL, cmd_spec_verbose },
{ "wait", &opt.wait, cmd_time },
- { "waitretry", &opt.waitretry, cmd_time }
+ { "waitretry", &opt.waitretry, cmd_time },
+#ifdef MSDOS
+ { "wdebug", &opt.wdebug, cmd_boolean },
+#endif
};
/* Look up CMDNAME in the commands[] and return its position in the
#endif
/* The default for file name restriction defaults to the OS type. */
-#if !defined(WINDOWS) && !defined(__CYGWIN__)
- opt.restrict_files_os = restrict_unix;
-#else
+#if defined(WINDOWS) || defined(MSDOS) || defined(__CYGWIN__)
opt.restrict_files_os = restrict_windows;
+#else
+ opt.restrict_files_os = restrict_unix;
#endif
opt.restrict_files_ctrl = true;
opt.restrict_files_case = restrict_no_case_restriction;
if (!home)
{
-#ifndef WINDOWS
+#if defined(MSDOS)
+ /* Under MSDOS, if $HOME isn't defined, use the directory where
+ `wget.exe' resides. */
+ const char *_w32_get_argv0 (void); /* in libwatt.a/pcconfig.c */
+ char *p, buf[PATH_MAX];
+
+ strcpy (buf, _w32_get_argv0 ());
+ p = strrchr (buf, '/'); /* djgpp */
+ if (!p)
+ p = strrchr (buf, '\\'); /* others */
+ assert (p);
+ *p = '\0';
+ home = buf;
+#elif !defined(WINDOWS)
/* If HOME is not defined, try getting it from the password
file. */
struct passwd *pwd = getpwuid (getuid ());
if (!pwd || !pwd->pw_dir)
return NULL;
home = pwd->pw_dir;
-#else /* WINDOWS */
+#else /* !WINDOWS */
/* Under Windows, if $HOME isn't defined, use the directory where
`wget.exe' resides. */
home = ws_mypath ();
return true;
}
-#ifndef WINDOWS
-# define ISSEP(c) ((c) == '/')
-#else
+#if defined(WINDOWS) || defined(MSDOS)
# define ISSEP(c) ((c) == '/' || (c) == '\\')
+#else
+# define ISSEP(c) ((c) == '/')
#endif
/* Like the above, but handles tilde-expansion when reading a user's
*pstring = concat_strings (home, "/", val, (char *) 0);
}
-#ifdef WINDOWS
+#if defined(WINDOWS) || defined(MSDOS)
/* Convert "\" to "/". */
{
char *s;
/* Declarations for init.c.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Messages logging.
- Copyright (C) 1998-2006 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for log.c.
- Copyright (C) 1998-2006 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Command line parsing.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
{ "version", 'V', OPT_FUNCALL, (void *) print_version, no_argument },
{ "wait", 'w', OPT_VALUE, "wait", -1 },
{ "waitretry", 0, OPT_VALUE, "waitretry", -1 },
+#ifdef MSDOS
+ { "wdebug", 0, OPT_BOOLEAN, "wdebug", -1 },
+#endif
};
#undef WHEN_DEBUG
#ifdef ENABLE_DEBUG
N_("\
-d, --debug print lots of debugging information.\n"),
+#endif
+#ifdef MSDOS
+ N_("\
+ --wdebug print Watt-32 debug output.\n"),
#endif
N_("\
-q, --quiet quiet (no output).\n"),
exit (0);
}
\f
+
int
main (int argc, char *const *argv)
{
exit (1);
}
+#ifdef MSDOS
+ if (opt.wdebug)
+ dbug_init();
+ sock_init();
+#else
if (opt.background)
fork_to_background ();
+#endif
/* Initialize progress. Have to do this after the options are
processed so we know where the log file is. */
{
logprintf (LOG_NOTQUIET,
_("FINISHED --%s--\nDownloaded: %d files, %s in %s (%s)\n"),
- time_str (time (NULL)),
+ datetime_str (time (NULL)),
opt.numurls,
human_readable (total_downloaded_bytes),
secs_to_human_time (total_download_time),
/* mswindows.c -- Windows-specific support
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for windows
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Read and parse the .netrc file to get hosts, accounts, and passwords.
- Copyright (C) 1996, Free Software Foundation, Inc.
+ Copyright (C) 1996, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for netrc.c
- Copyright (C) 1996, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1996, 1997, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* SSL support via OpenSSL library.
- Copyright (C) 2000-2006 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+ Software Foundation, Inc.
Originally contributed by Christian Fraenkel.
This file is part of GNU Wget.
xfree_null (ctx->last_error);
xfree (ctx);
-#ifdef WINDOWS
+#if defined(WINDOWS) || defined(MSDOS)
closesocket (fd);
#else
close (fd);
/* struct options.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
bool debug; /* Debugging on/off */
#endif
+#ifdef MSDOS
+ bool wdebug; /* Watt-32 tcp/ip debugging on/off */
+#endif
+
bool timestamping; /* Whether to use time-stamping. */
bool backup_converted; /* Do we save pre-converted files as *.orig? */
/* Download progress.
- Copyright (C) 2001-2006 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+ Foundation, Inc.
This file is part of GNU Wget.
/* Download progress.
- Copyright (C) 2001-2006 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+ Foundation, Inc.
This file is part of GNU Wget.
/* Portable timers.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for ptimer.c.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Handling of recursive HTTP retrieving.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for recur.c.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Support for Robot Exclusion Standard (RES).
- Copyright (C) 2001,2006 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2006, 2007 Free Software Foundation, Inc.
This file is part of Wget.
/* Declarations for res.c.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2007 Free Software Foundation, Inc.
This file is part of Wget.
/* File retrieval.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for retr.c.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Keep track of visited URLs in spider mode.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Declarations for spider.c
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* SSL support.
- Copyright (C) 2000-2006 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+ Software Foundation, Inc.
Originally contributed by Christian Fraenkel.
This file is part of GNU Wget.
/* Dirty system-dependent hacks.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
# define __bool_true_false_are_defined 1
#endif
-/* Needed for compilation under OS/2: */
-#ifdef __EMX__
+/* Needed for compilation under OS/2 and MSDOS */
+#if defined(__EMX__) || defined(MSDOS)
# ifndef S_ISLNK
# define S_ISLNK(m) 0
# endif
# ifndef lstat
# define lstat stat
# endif
-#endif /* __EMX__ */
+#endif /* __EMX__ || MSDOS */
/* Reportedly, stat() macros are broken on some old systems. Those
systems will have to fend for themselves, as I will not introduce
/* Unit testing.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Unit testing declarations.
- Copyright (C) 2005-2006 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* URL handling.
- Copyright (C) 1996-2007 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
enum {
filechr_not_unix = 1, /* unusable on Unix, / and \0 */
- filechr_not_windows = 2, /* unusable on Windows, one of \|/<>?:*" */
+ filechr_not_windows = 2, /* unusable on MSDOS/Windows, one of \|/<>?:*" */
filechr_control = 4 /* a control character, e.g. 0-31 */
};
/* Declarations for url.c.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Various utility functions.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
}
\f
/* The Windows versions of the following two functions are defined in
- mswindows.c. */
+ mswindows.c. On MSDOS this function should never be called. */
-#ifndef WINDOWS
+#if !defined(WINDOWS) && !defined(MSDOS)
void
fork_to_background (void)
{
freopen ("/dev/null", "w", stdout);
freopen ("/dev/null", "w", stderr);
}
-#endif /* not WINDOWS */
+#endif /* !WINDOWS && !MSDOS */
\f
/* "Touch" FILE, i.e. make its mtime ("modified time") equal the time
specified with TM. The atime ("access time") is set to the current
/* Declarations for utils.c.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Miscellaneous declarations.
- Copyright (C) 1996-2006 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+ 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
/* Wrappers around malloc and memory debugging support.
- Copyright (C) 2003-2006 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation,
+ Inc.
This file is part of GNU Wget.
/* xmalloc.c declarations.
- Copyright (C) 2003-2006 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation,
+ Inc.
This file is part of GNU Wget.
+2007-09-25 Micah Cowan <micah@cowan.name>
+
+ * Makefile.in: Use EXEEXT instead of exeext.
+
2007-08-21 Mauro Tortonesi <mauro@ferrara.linux.it>
* WgetTest.pm.in: Added support for timestamping of pre-existing
# Makefile for `wget' utility
-# Copyright (C) 1995-2005 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
+# 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@
-exeext = @exeext@
+exeext = @EXEEXT@
INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../src
# Makefile for `wget' utility
-# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#!/bin/sh
-# Copyright (C) 2001 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#! /usr/bin/perl -w
-# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
+2007-09-24 Christopher Lewis <chris@christopherlewis.com>
+
+ * config-compiler.h: Fix compiler warnings related to
+ HAVE_INTPTR_T.
+
2007-07-05 Micah Cowan <micah@cowan.name>
* Makefile.top.bor, Makefile.doc, Makefile.in, Makefile.src:
# Makefile for `wget' utility
-# Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2004, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Makefile for `wget' utility
-# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Makefile for `wget' utility for MSVC
-# Copyright (C) 1995, 1996, 1997, 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2004, 2006, 2007 Free Software
+# Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Makefile for `Wget' utility
-# Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2004, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Makefile for `Wget' utility
-# Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2004, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Makefile for `Wget' utility
-# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996, 1997, 2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
/* Support for various Windows compilation environments.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007 Free Software Foundation, Inc.
This file is part of GNU Wget.
#define HAVE__BOOL 1
#undef SIZEOF_LONG_LONG /* avoid redefinition warning */
#define SIZEOF_LONG_LONG 8
-#define HAVE_INTPTR_T 1
+#define HAVE_INTPTR_T 1
#define HAVE_UINTPTR_T 1
#define HAVE_STRTOLL 1
\f
# define HAVE__STRTOI64 1
#endif
+#if _MSC_VER >= 1310
+#define HAVE_INTPTR_T 1
+#define HAVE_UINTPTR_T 1
+#endif
+
#if _MSC_VER >= 1400
#pragma warning ( disable : 4996 )
#define _CRT_SECURE_NO_DEPRECATE
#endif
+
\f
#undef HAVE_UTIME_H /* no <utime.h> */