5128eecc9f 2011-02-23 kinaba: zlib 1.1.3 is a general purpose data compression library. All the code 5128eecc9f 2011-02-23 kinaba: is thread safe. The data format used by the zlib library 5128eecc9f 2011-02-23 kinaba: is described by RFCs (Request for Comments) 1950 to 1952 in the files 5128eecc9f 2011-02-23 kinaba: ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate 5128eecc9f 2011-02-23 kinaba: format) and rfc1952.txt (gzip format). These documents are also available in 5128eecc9f 2011-02-23 kinaba: other formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: All functions of the compression library are documented in the file zlib.h 5128eecc9f 2011-02-23 kinaba: (volunteer to write man pages welcome, contact jloup@gzip.org). A usage 5128eecc9f 2011-02-23 kinaba: example of the library is given in the file example.c which also tests that 5128eecc9f 2011-02-23 kinaba: the library is working correctly. Another example is given in the file 5128eecc9f 2011-02-23 kinaba: minigzip.c. The compression library itself is composed of all source files 5128eecc9f 2011-02-23 kinaba: except example.c and minigzip.c. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: To compile all files and run the test program, follow the instructions 5128eecc9f 2011-02-23 kinaba: given at the top of Makefile. In short "make test; make install" 5128eecc9f 2011-02-23 kinaba: should work for most machines. For Unix: "configure; make test; make install" 5128eecc9f 2011-02-23 kinaba: For MSDOS, use one of the special makefiles such as Makefile.msc. 5128eecc9f 2011-02-23 kinaba: For VMS, use Make_vms.com or descrip.mms. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Questions about zlib should be sent to <zlib@quest.jpl.nasa.gov>, or to 5128eecc9f 2011-02-23 kinaba: Gilles Vollant <info@winimage.com> for the Windows DLL version. 5128eecc9f 2011-02-23 kinaba: The zlib home page is http://www.cdrom.com/pub/infozip/zlib/ 5128eecc9f 2011-02-23 kinaba: The official zlib ftp site is ftp://ftp.cdrom.com/pub/infozip/zlib/ 5128eecc9f 2011-02-23 kinaba: Before reporting a problem, please check those sites to verify that 5128eecc9f 2011-02-23 kinaba: you have the latest version of zlib; otherwise get the latest version and 5128eecc9f 2011-02-23 kinaba: check whether the problem still exists or not. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Mark Nelson <markn@tiny.com> wrote an article about zlib for the Jan. 1997 5128eecc9f 2011-02-23 kinaba: issue of Dr. Dobb's Journal; a copy of the article is available in 5128eecc9f 2011-02-23 kinaba: http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: The changes made in version 1.1.3 are documented in the file ChangeLog. 5128eecc9f 2011-02-23 kinaba: The main changes since 1.1.2 are: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - fix "an inflate input buffer bug that shows up on rare but persistent 5128eecc9f 2011-02-23 kinaba: occasions" (Mark) 5128eecc9f 2011-02-23 kinaba: - fix gzread and gztell for concatenated .gz files (Didier Le Botlan) 5128eecc9f 2011-02-23 kinaba: - fix gzseek(..., SEEK_SET) in write mode 5128eecc9f 2011-02-23 kinaba: - fix crc check after a gzeek (Frank Faubert) 5128eecc9f 2011-02-23 kinaba: - fix miniunzip when the last entry in a zip file is itself a zip file 5128eecc9f 2011-02-23 kinaba: (J Lillge) 5128eecc9f 2011-02-23 kinaba: - add contrib/asm586 and contrib/asm686 (Brian Raiter) 5128eecc9f 2011-02-23 kinaba: See http://www.muppetlabs.com/~breadbox/software/assembly.html 5128eecc9f 2011-02-23 kinaba: - add support for Delphi 3 in contrib/delphi (Bob Dellaca) 5128eecc9f 2011-02-23 kinaba: - add support for C++Builder 3 and Delphi 3 in contrib/delphi2 (Davide Moretti) 5128eecc9f 2011-02-23 kinaba: - do not exit prematurely in untgz if 0 at start of block (Magnus Holmgren) 5128eecc9f 2011-02-23 kinaba: - use macro EXTERN instead of extern to support DLL for BeOS (Sander Stoks) 5128eecc9f 2011-02-23 kinaba: - added a FAQ file 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: plus many changes for portability. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Unsupported third party contributions are provided in directory "contrib". 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: A Java implementation of zlib is available in the Java Development Kit 1.1 5128eecc9f 2011-02-23 kinaba: http://www.javasoft.com/products/JDK/1.1/docs/api/Package-java.util.zip.html 5128eecc9f 2011-02-23 kinaba: See the zlib home page http://www.cdrom.com/pub/infozip/zlib/ for details. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: A Perl interface to zlib written by Paul Marquess <pmarquess@bfsec.bt.co.uk> 5128eecc9f 2011-02-23 kinaba: is in the CPAN (Comprehensive Perl Archive Network) sites, such as: 5128eecc9f 2011-02-23 kinaba: ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/Compress/Compress-Zlib* 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: A Python interface to zlib written by A.M. Kuchling <amk@magnet.com> 5128eecc9f 2011-02-23 kinaba: is available in Python 1.5 and later versions, see 5128eecc9f 2011-02-23 kinaba: http://www.python.org/doc/lib/module-zlib.html 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: A zlib binding for TCL written by Andreas Kupries <a.kupries@westend.com> 5128eecc9f 2011-02-23 kinaba: is availlable at http://www.westend.com/~kupries/doc/trf/man/man.html 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: An experimental package to read and write files in .zip format, 5128eecc9f 2011-02-23 kinaba: written on top of zlib by Gilles Vollant <info@winimage.com>, is 5128eecc9f 2011-02-23 kinaba: available at http://www.winimage.com/zLibDll/unzip.html 5128eecc9f 2011-02-23 kinaba: and also in the contrib/minizip directory of zlib. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Notes for some targets: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - To build a Windows DLL version, include in a DLL project zlib.def, zlib.rc 5128eecc9f 2011-02-23 kinaba: and all .c files except example.c and minigzip.c; compile with -DZLIB_DLL 5128eecc9f 2011-02-23 kinaba: The zlib DLL support was initially done by Alessandro Iacopetti and is 5128eecc9f 2011-02-23 kinaba: now maintained by Gilles Vollant <info@winimage.com>. Check the zlib DLL 5128eecc9f 2011-02-23 kinaba: home page at http://www.winimage.com/zLibDll 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: From Visual Basic, you can call the DLL functions which do not take 5128eecc9f 2011-02-23 kinaba: a structure as argument: compress, uncompress and all gz* functions. 5128eecc9f 2011-02-23 kinaba: See contrib/visual-basic.txt for more information, or get 5128eecc9f 2011-02-23 kinaba: http://www.tcfb.com/dowseware/cmp-z-it.zip 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - For 64-bit Irix, deflate.c must be compiled without any optimization. 5128eecc9f 2011-02-23 kinaba: With -O, one libpng test fails. The test works in 32 bit mode (with 5128eecc9f 2011-02-23 kinaba: the -n32 compiler flag). The compiler bug has been reported to SGI. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 5128eecc9f 2011-02-23 kinaba: it works when compiled with cc. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - on Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 5128eecc9f 2011-02-23 kinaba: is necessary to get gzprintf working correctly. This is done by configure. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works 5128eecc9f 2011-02-23 kinaba: with other compilers. Use "make test" to check your compiler. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - gzdopen is not supported on RISCOS, BEOS and by some Mac compilers. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - For Turbo C the small model is supported only with reduced performance to 5128eecc9f 2011-02-23 kinaba: avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: - For PalmOs, see http://www.cs.uit.no/~perm/PASTA/pilot/software.html 5128eecc9f 2011-02-23 kinaba: Per Harald Myrvang <perm@stud.cs.uit.no> 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Acknowledgments: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: The deflate format used by zlib was defined by Phil Katz. The deflate 5128eecc9f 2011-02-23 kinaba: and zlib specifications were written by L. Peter Deutsch. Thanks to all the 5128eecc9f 2011-02-23 kinaba: people who reported problems and suggested various improvements in zlib; 5128eecc9f 2011-02-23 kinaba: they are too numerous to cite here. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Copyright notice: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: (C) 1995-1998 Jean-loup Gailly and Mark Adler 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: This software is provided 'as-is', without any express or implied 5128eecc9f 2011-02-23 kinaba: warranty. In no event will the authors be held liable for any damages 5128eecc9f 2011-02-23 kinaba: arising from the use of this software. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Permission is granted to anyone to use this software for any purpose, 5128eecc9f 2011-02-23 kinaba: including commercial applications, and to alter it and redistribute it 5128eecc9f 2011-02-23 kinaba: freely, subject to the following restrictions: 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: 1. The origin of this software must not be misrepresented; you must not 5128eecc9f 2011-02-23 kinaba: claim that you wrote the original software. If you use this software 5128eecc9f 2011-02-23 kinaba: in a product, an acknowledgment in the product documentation would be 5128eecc9f 2011-02-23 kinaba: appreciated but is not required. 5128eecc9f 2011-02-23 kinaba: 2. Altered source versions must be plainly marked as such, and must not be 5128eecc9f 2011-02-23 kinaba: misrepresented as being the original software. 5128eecc9f 2011-02-23 kinaba: 3. This notice may not be removed or altered from any source distribution. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: Jean-loup Gailly Mark Adler 5128eecc9f 2011-02-23 kinaba: jloup@gzip.org madler@alumni.caltech.edu 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: If you use the zlib library in a product, we would appreciate *not* 5128eecc9f 2011-02-23 kinaba: receiving lengthy legal documents to sign. The sources are provided 5128eecc9f 2011-02-23 kinaba: for free but without warranty of any kind. The library has been 5128eecc9f 2011-02-23 kinaba: entirely written by Jean-loup Gailly and Mark Adler; it does not 5128eecc9f 2011-02-23 kinaba: include third-party code. 5128eecc9f 2011-02-23 kinaba: 5128eecc9f 2011-02-23 kinaba: If you redistribute modified sources, we would appreciate that you include 5128eecc9f 2011-02-23 kinaba: in the file ChangeLog history information documenting your changes.