2003-10-06  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	Version 2.8 of WWWOFFLE released.
	
2003-10-06  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/NEWS, src/version.h: Update to version 2.8.

2003-09-06  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/io.c: Remove C++ style comments.

	* src/refresh.c:
	Increase the maximum amount of recursion for following Location headers to 8.

	* src/css.l, src/html.l, src/htmlmodify.l, src/messages.l, src/vrml.l, src/xml.l:
	Don't call *_yylex_destroy() (it is recent flex specific cleanup function).

2003-09-04  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	Version 2.8-beta of WWWOFFLE released.
	
2003-09-04  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/NEWS, src/version.h: Update to version 2.8-beta.

2003-09-02  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/README: More updates.

	* src/Makefile.in: Delete css.c when running 'make clean'.

	* doc/FAQ, doc/README: Update the documentation for version 2.8-beta.

	* src/iozlib.c:
	Do check for gzip CRC and length errors, fix rare bug in gzip code.

2003-08-31  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/iozlib.c: Ignore any errors in the gzip crc and length.

2003-08-28  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/config.h, src/refresh.c, src/wwwoffle.c, src/wwwoffle.h, src/wwwoffles.c:
	Stop infinite recursion when following Location headers.
	Stop infinite recursion if images are actually HTML.
	Fetch images etc in pages with error status codes.

2003-08-25  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/configedit.c, src/control.c, src/misc.h, src/miscencdec.c,
	src/monitor.c, src/refresh.c:
	Check parameters entered in forms to ensure no odd whitespace.

	* src/iozlib.c: Fix debug messages about compression type.

2003-08-24  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/headbody.c: Fix the RemoveFromHeader2() function.

	* src/htmlmodify.l: Blank any title tags when removing DontGet images.

	* src/wwwoffle.c, src/wwwoffles.c:
	Send 'Pragma: wwwoffle-client' when wwwoffle program makes request.

2003-08-23  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/README.compress, src/iozlib.c, src/iopriv.h:
	Guess what the compression type is, don't believe the HTTP headers.

2003-08-22  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/css.l: Remove YY_NO_UNPUT definition (since we now use unput()).

2003-08-20  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/htmlmodify.l: Rename some variables.

	* conf/upgrade-config.pl, doc/CHANGES.CONF, doc/README.CONF, src/config.h,
	src/configdata.c, src/htmlmodify.l:
	Add an option to disable cookies from being set by HTML meta tags.

	* src/wwwoffles.c:
	Check for an HTTP "100 Continue" header and discard it.

2003-08-19  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffles.c:
	Request compression from the server as gzip prefered over deflate, but either better than none.

	* src/parse.c:
	Use deflate when sending data to clients as a last resort.

	* src/iozlib.c:
	Handle deflate compression but only by using the wrong, but generally used method.

2003-08-16  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffles.c:
	Remove problem where WWWOFFLE error message was partially visible following end
	of shorter new page when backup already existed.

2003-08-15  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/local.c: Allow files on the local web server with spaces in them.

2003-08-14  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/README.htdig:
	Add comment about robots.txt and 'Disallow: /index'.

2003-08-13  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/README.htdig:
	Include nomatch.html in the list that need changing.

2003-08-03  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* conf/wwwoffle.conf.template, doc/README.CONF, doc/CHANGES.CONF,
	src/configdata.c, src/wwwoffles.c, conf/upgrade-config.pl:
	Remove the enable-modify-online option.

	* src/wwwoffles.c:
	Allow modification of HTML to work if cached file is compressed.

2003-08-02  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffle.c, src/wwwoffles.c:
	Running 'wwwoffle http://aaa:bbb@www.foo/bar' now does the right thing.

2003-08-01  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffles.c:
	Correctly handle the options passed in for recursive fetches.

	* src/messages.l:
	Add $version as a variable containing the WWWOFFLE version number.

2003-07-31  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/wwwoffle.man, src/wwwoffle.c:
	Updated '-h' description of -F, -(d|r|R) and -g usage.
	Allow '-g' alone to mean get nothing else.

2003-07-28  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffle.c:
	Running 'wwwoffle http://www.foo/bar#foo' now does the right thing.

2003-07-27  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/README.CONF:
	Remove comment about enable-modify-online option delaying data.

	* src/document.h, src/gifmodify.c, src/htmlmodify.l:
	Modify read and write operations to use new callback functions.

	* src/wwwoffle.h, src/wwwoffles.c:
	Add callback functions so that HTML modification lex code can be used as a pipe when online.

2003-07-26  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/proto.h, src/wwwoffle.h:
	Update the splint annotations for functions that use the new GetPrintMessage().

	* src/control.c, src/wwwoffles.c:
	Handle the functions that use the new GetPrintMessage() function.

	* src/spool.c, src/finger.c, src/ftp.c, src/http.c, src/ssl.c:
	Use the new GetPrintMessage() function.

	* src/errors.c, src/errors.h:
	Make PrintMessage() return nothing and add a new function GetPrintMessage() that returns an allocated string.

2003-07-21  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/ftp.c:
	Add code to handle re-requesting with a password if required (patch from Marc Boucher).

2003-07-20  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/wwwoffle.man: Update to state what -R0 does.

	* src/wwwoffle.c: Allow for recursive fetching of depth 0.

	* src/html.l, src/css.l, src/htmlmodify.l:
	Fix bug with handling C style comments in Javascript and CSS.

2003-07-07  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffle.c:
	Make the '-d', '-r' or '-R' options work with a space before the number.

2003-06-30  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffle.h: Add in the message and parsing tidy up functions.

	* src/headbody.c: Make sure that all of the Header structure is freed.

	* src/parse.c: Add a function to free the reusable headers.

	* src/wwwoffles.c:
	Make sure that Protocol->close() is called in error conditions.
	Free up memory from messages and header parsing.

	* src/messages.l:
	Free a missing header and add a function to call yylex_destory().

	* src/css.l, src/html.l, src/htmlmodify.l, src/vrml.l, src/xml.l:
	Call yylex_destroy() when parsing is finished.

	* src/document.c, src/misc.h, src/miscencdec.c, src/miscurl.c:
	Handle the fact that in HTML '&amp;' is the same as '&'.

	* doc/README.URL: Update with '&amp;' to '&' conversion.

2003-06-28  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffle.c:
	Initialise the file descriptor for stdin before using it for POST or PUT.

2003-06-27  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/info.c:
	Change the messages for the info pages to simplify and re-organise them.

	* src/index.c:
	Use case-insensitive sorting for the file type (file extension).

2003-06-22  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/miscurl.c:
	Fix bug that mangled links with relative paths starting '../' when the
	original URL is the root of the server.

	* doc/FAQ: Put e-mail addresses in '<' ... '>'.

	* src/css.l, src/html.l: Handle bad CSS better (missing ';').

	* src/document.c, src/document.h, src/info.c, src/miscurl.c, src/wwwoffles.c:
	Add an option to document parsing to get all links for info page.

2003-06-15  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/scripts/README.CONF-msg.pl, doc/scripts/FAQ-html.pl, doc/scripts/README.CONF-conf.pl,
	doc/scripts/README.CONF-html.pl, doc/scripts/README.CONF-man.pl:
	Don't force emacs to use perl mode and indent the file with emacs cperl mode.

2003-06-15  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/css.l, src/html.l, src/htmlmodify.l: Bug fix for URL parsing.

2003-05-31  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/css.l, src/html.l, src/htmlmodify.l:
	Handle non-ascii characters in HTML parsing.

	* src/wwwoffles.c: More changes for the new lockfile handling.

2003-05-26  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/spool.c:
	Create the cache directory before creating the lock file.
	Make sure that the times of the cached files in the prevtime directories are updated.

	* src/wwwoffles.c:
	Fix a case where the lockfile was not deleted in fetch mode.

2003-05-24  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffle.c: Give an error message if no URLs were specified.

2003-05-18  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* conf/upgrade-config.pl, conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF,
	src/config.h, src/configdata.c, src/wwwoffles.c:
	Add separate options pragma-no-cache and cache-control-no-cache to the OnlineOptions
	section that work like the ones in the OfflineOptions section.  Each option now only
	works when online or offline depending on where it is set.

2003-05-17  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/spool.c:
	Create lock files as a new file rather than linking to existing file.

	* src/htmlmodify.l: Bug fix for optimisation changes.

	* src/configrdwr.c, src/controledit.c:
	Change the default WWWOFFLE configuration file directory to /etc/wwwoffle.
	Make sure that included file names are in same directory.

	* doc/FAQ:
	Change the default WWWOFFLE configuration file directory to /etc/wwwoffle.
	Add description of security requirements for configuration files directory.

	* src/autoconfig.h.in.in, doc/wwwoffle.man, doc/wwwoffled.man, doc/README.win32,
	configure.in, doc/INSTALL, doc/README:
	Change the default WWWOFFLE configuration file directory to /etc/wwwoffle.

2003-05-05  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffles.c:
	Some code cleanups for handling lockfiles and touching spool files (suggested by Marc Boucher).

	* src/wwwoffle.h, src/spool.c:
	The function to create a lock file returns an error if it can't (because one already exists).

	* src/wwwoffled.c: Include missing header file <string.h>.

	* src/css.l, src/html.l, src/htmlmodify.l, src/messages.l, src/vrml.l, src/xml.l,
	src/Makefile.in:
	Update to work with newer version of flex.

2003-05-03  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/css.l, src/html.l, src/htmlmodify.l, src/messages.l, src/vrml.l, src/xml.l:
	Be more consistent with lex usage of yywrap, yyrestart and EOF.

	* src/htmlmodify.l, src/css.l: Parser speed optimisations.

	* src/html.l:
	Include the CSS parser in the HTML parser for handling <style> tags.
	Parser speed optimisations.

	* src/html.l: Improve the end of file handling.
	Don't need to include time.h.

	* src/htmlmodify.l: Improve the end of file handling.

	* src/css.l: New file.

	* src/Makefile.in, src/document.c, src/document.h:
	Add a parser for CSS (Cascading Style Sheets).

	* src/iozlib.c: Fixed rare crash when compressing.

2003-04-27  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/FAQ: Stop false link matches when converting text to HTML.
	Added some version 2.8 information.

	* doc/scripts/FAQ-html.pl:
	Stop false link matches when converting text to HTML.

2003-04-22  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffles.c:
	Running 'wwwoffle URL' when online now actually fetches the URL.

	* src/wwwoffles.c:
	Make the intr-download-size and intr-download-percent options work again.

	* src/wwwoffles.c: Correct an error message.

2003-04-19  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/parse.c:
	Allow POST/PUT requests from browsers to use chunked encoding.

	* src/iopriv.h: Fixed to allow io buffers of longer than 65536 bytes.

2003-04-18  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/control.c:
	Stop the results of the control/* URLs that call the wwwoffle program being cached by browsers.

2003-04-13  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* conf/upgrade-config.pl, conf/wwwoffle.conf.template, doc/CHANGES.CONF,
	doc/README.CONF, src/config.h, src/configdata.c, src/html.l:
	Added an option to fetch favourite/shortcut icons automatically.

2003-04-12  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/config.h, src/configdata.c, src/parse.c, doc/README.CONF,
	conf/upgrade-config.pl, conf/wwwoffle.conf.template, doc/CHANGES.CONF:
	Added an option to not make conditional requests to specified hosts.

	* src/wwwoffles.c: Print a debug message when modifying HTML.
	Enable HTML modifications even when using compression to the browser.

	* src/sockets6.c: Make sure that we don't call freeaddrinfo(NULL);

2003-04-06  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffles.c, src/messages.l, src/wwwoffle.h:
	Internal pages and local web pages are generated with zlib and/or
	chunked encoding if enabled in config file and browser allows it.

2003-04-06  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/messages.l, src/ftp.c, src/htmlmodify.l, src/wwwoffle.h:
	The HTMLMessage(), HTMLMessageHead() and HTMLMessageBody() functions do not return strings.
	The new HTMLMessageString() function only returns a string.

	* src/wwwoffles.c:
	Don't use temporary files (except when modifying HTML when online).
	Either use chunked encoding (if client advertises HTTP/1.1 and option enabled)
	or remove Content-Length header and close connection at end of file.
	Renamed 'SpoolInternal' to 'InternalPage' to reflect meaning better.

2003-03-24  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* doc/README.lang: Added a note about using HTML/4.01.

2003-03-09  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/configrdwr.c:
	Copy the permissions from the old config file when writing a new one.
	Fix handling of included files (broken when changed to use io.c for v2.8).

2003-03-08  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffled.c: Validate the value supplied for the -d option.

	* src/configrdwr.c: Don't crash if cannot open config file.

2003-03-05  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/io.c:
	Pass the zlib/chunked error code back up to the write_data() caller.

	* src/iochunk.c:
	Allow spaces to appear before or after the chunk length.

2003-02-23  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/spool.c:
	Only cycle U* and O* files when creating lastout directory.
	Improve some error messages.

	* src/purge.c: Purge unmatched O* and U* files from outgoing.
	Record how many temporary files and unmatched files were purged.

	* doc/README: Update with chunked encoding in description section.

	* doc/README.CONF:
	Clarify the 'compress=...' option in the Purge section.

	* src/wwwoffles.c:
	Set the spool file descriptor to -1 after closing it so we don't close it again.
	Use HTTP/1.1 header for replies that use chunked encoding.

2003-02-22  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/iochunk.c, src/iozlib.c:
	Make sure that reaching EOF when reading causes the uncompressing/chunked decoding to stop.

2003-02-21  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/index.c:
	Don't put in a blank list in the HTML output when sorting by date.

	* doc/scripts/README.CONF-html.pl:
	Use strict HTML 4.01 for the README.CONF.html file when created from README.CON text file.

	* doc/scripts/FAQ-html.pl:
	Use strict HTML 4.01 for the FAQ.html file when created from FAQ text file.

	* src/iochunk.c: Fixed handling of chunked encoding trailer.

	* src/wwwoffles.c:
	Change the header to HTTP/1.1 when requesting chunked encoding (TE header is not enough).

	* src/headbody.c, src/misc.h:
	Add a new function to change the HTTP version in the Header structure.

	* src/connect.c:
	Don't close the client socket after wwwoffles() returns.

	* src/wwwoffles.c:
	Make the wwwoffles() function return rather than exit.

	* src/search.c:
	Call init_io() after duplicating file descriptor to stdout.

2003-02-19  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/Makefile.in, src/config.h, src/configdata.c, src/parse.c,
	conf/upgrade-config.pl, doc/CHANGES.CONF, doc/README.CONF:
	Added the option to force the insertion of a User-Agent header on outgoing requests.

2003-02-18  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/wwwoffled.c:
	Call finish_io() in the right places for the fetch file descriptor.

	* src/connect.c: Call finish_io() in the right places when forking etc.

	* src/configdata.c, src/parse.c, conf/upgrade-config.pl, doc/CHANGES.CONF,
	doc/README.CONF, src/config.h:
	Add the option to disable the use of Etag as a cache validator (inspired by Marc Boucher).

2003-02-17  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/errors.c: Re-apply lost patch:
	Don't append a newline to the string written to syslog, only stderr.

	* src/ftp.c: Re-apply lost patch:
	If a username/password is supplied then use it for directory redirection and links.

	* src/wwwoffles.c: Re-apply lost patches:
	Remove a trailing newline from a debug message.
	Don't write the Content-Length to the cache if the server used compression.

	* src/monitor.c: Re-apply lost patch:
	Make parsing of day/hour ranges more robust and show correct times for URLs monitored every hour.

2003-02-17  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/configedit.c: Replaced incorrect reinit_io() with init_io().

	* src/spool.c:
	Don't call finish_io() on file descriptors closed by these functions.

	* src/io.c: Add reinit_io() function.
	It is now a fatal error to call any function with fd = -1.
	It is now a fatal error to call functions in the wrong order
	(init_io once only and first, finish_io once only and last, others multiple times).

	* src/io.h: Add reinit_io() function.

	* src/spool.c:
	Make sure that init_io() is never called with -1 as the argument.
	Don't call init_io() on file descriptors returned by these functions.

	* src/convert-cache.c, src/uncompress-cache.c, src/wwwoffle-tools.c,
	src/wwwoffle.c, src/wwwoffled.c:
	Make sure that init_io() is never called with -1 as the argument.
	Call finish_io() after calling init_io() on stdin or stderr.

	* src/cgi.c, src/info.c, src/wwwoffles.c:
	Make sure that init_io() is never called with -1 as the argument.
	Change all calls to init_io() to reinit_io() if not the first call for fd.

	* src/search.c, src/configedit.c:
	Change all calls to init_io() to reinit_io() if not the first call for fd.

	* src/local.c, src/monitor.c, src/parse.c, src/purge.c, src/refresh.c,
	src/configrdwr.c, src/controledit.c:
	Make sure that init_io() is never called with -1 as the argument.

2003-02-16  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/configedit.c, src/info.c, src/io.c: Fix some small memory leaks.

	* conf/upgrade-config.pl: New file.

	* audit-usage.pl: Log if chunked encoding from the server was used.

	* src/wwwoffles.c:
	Handle chunked encoding just like compression is handled.
	No attempt to optimise the data flow when chunked encoding is used.

	* src/configedit.c:
	Don't have a static list of items to display on the ConfigurationURLPage() page.
	Dynamically generate the list from the configuration file definitions.

	* src/parse.c: Always remove the 'TE' header on outgoing requests.

	* src/io.c:
	Don't remove the zlib or chunked context when configure_io_(read|write) asks to.
	Add comments to explain why this is.

	* src/configdata.c, conf/wwwoffle.conf.template, doc/CHANGES.CONF, doc/README.CONF, src/config.h:
	Add the options request-chunked-data and reply-chunked-data.

	* src/iochunk.c:
	Don't use strcpy() since it appends an unwanted zero character.

	* src/iochunk.c: Add an extra CR LF after the last chunk encoded.
	Make sure that all of the trailer is read in before finishing decoding.

2003-02-15  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/iozlib.c:
	Bug fix for finish_zlib_compress() (wrong output length).

	* src/convert-cache.c, src/index.c, src/monitor.c, src/purge.c, src/search.c,
	src/uncompress-cache.c, src/wwwoffle-tools.c, src/wwwoffle.c, src/wwwoffle.h, src/wwwoffled.c:
	Use the ChangeToSpoolDir() and ChangeBackToSpoolDir() functions to replace using fSpoolDir variable.

	* src/spool.c:
	Add ChangeToSpoolDir() and ChangeBackToSpoolDir() functions to replace using fSpoolDir variable.

2003-02-14  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/Makefile.in: Update the dependencies.

	* src/search.c, src/sockets4.c, src/sockets6.c, src/spool.c, src/ssl.c, src/uncompress-cache.c,
	src/wwwoffle-tools.c, src/wwwoffled.c, src/wwwoffles.c, src/index.c, src/info.c, src/io.c,
	src/iochunk.c, src/iopriv.c, src/iozlib.c, src/javaclass.c, src/local.c, src/miscencdec.c,
	src/miscurl.c, src/monitor.c, src/parse.c, src/proto.c, src/refresh.c, src/configedit.c,
	src/configfunc.c, src/configmisc.c, src/configrdwr.c, src/connect.c, src/convert-cache.c,
	src/document.c, src/errors.c, src/finger.c, src/ftp.c, src/gifmodify.c, src/http.c,
	src/configdata.c:
	Remove unneeded include files.

2003-02-13  Andrew M. Bishop  <amb@gedanken.demon.co.uk>

	* src/Makefile.in: Update with new io*.c files and new dependencies.

	* src/autoconfig.h.in.in: Move the READ_BUFFER_SIZE #define into io.h.

	* src/errors.h, src/errors.c: Include new io.h file.
	Change ERRNO_USE_Z_ERRNO to ERRNO_USE_IO_ERRNO.

	* src/configrdwr.c, src/controledit.c: Include new io.h file.
	Don't use stdio FILE* but use file descriptor functions in io.c.

	* src/wwwoffles.c, src/wwwoffled.c, src/wwwoffle.c, src/ssl.c, src/parse.c,
	src/http.c, src/control.c, src/ftp.c, src/finger.c, src/connect.c:
	Include new io.h file.
	Change code to match new input/output API.
	init_buffer() -> init_io(), init_zlib() -> configure_(read|write), add finish_io().
	Configure timeout per file descriptor and remove read functions with timeout.

	* src/messages.l, src/wwwoffle-tools.c, src/uncompress-cache.c, src/search.c,
	src/refresh.c, src/purge.c, src/monitor.c, src/local.c, src/info.c,
	src/convert-cache.c, src/cgi.c, src/configedit.c, src/spool.c:
	Include new io.h file.
	Change code to match new input/output API.
	init_buffer() -> init_io(), init_zlib() -> configure_(read|write), add finish_io().

	* src/io.c: New input/output API.
	Split many functions into iopriv.c, iochunk.c & iozlib.c and headers to io.h & iopriv.h.

	* src/configdata.c:
	Remove the setting of the socket read timeout (now done per socket not globally).

	* src/misc.h: Remove the input/output functions to the io.h file.

	* src/xml.l, src/vrml.l, src/javaclass.c, src/htmlmodify.l, src/html.l, src/gifmodify.c:
	Added in the new io.h header file.

	* src/iopriv.c, src/iozlib.c, src/iochunk.c, src/iopriv.h, src/io.h:
	New file.
