1131377StjrZLIB DATA COMPRESSION LIBRARY 217651Speter 3254069Sdelphijzlib 1.2.8 is a general purpose data compression library. All the code is 4131377Stjrthread safe. The data format used by the zlib library is described by RFCs 5131377Stjr(Request for Comments) 1950 to 1952 in the files 6237691Sdelphijhttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and 7237691Sdelphijrfc1952 (gzip format). 8131377Stjr 933904SsteveAll functions of the compression library are documented in the file zlib.h 10205471Sdelphij(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example 11237691Sdelphijof the library is given in the file test/example.c which also tests that 12237691Sdelphijthe library is working correctly. Another example is given in the file 13237691Sdelphijtest/minigzip.c. The compression library itself is composed of all source 14237691Sdelphijfiles in the root directory. 1517651Speter 16131377StjrTo compile all files and run the test program, follow the instructions given at 17205471Sdelphijthe top of Makefile.in. In short "./configure; make test", and if that goes 18237691Sdelphijwell, "make install" should work for most flavors of Unix. For Windows, use 19237691Sdelphijone of the special makefiles in win32/ or contrib/vstudio/ . For VMS, use 20206708Sdelphijmake_vms.com. 2117651Speter 22131377StjrQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant 23205471Sdelphij<info@winimage.com> for the Windows DLL version. The zlib home page is 24205471Sdelphijhttp://zlib.net/ . Before reporting a problem, please check this site to 25205471Sdelphijverify that you have the latest version of zlib; otherwise get the latest 26205471Sdelphijversion and check whether the problem still exists or not. 2742468Speter 28205471SdelphijPLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help. 2992111Sgreen 30205471SdelphijMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997 31205471Sdelphijissue of Dr. Dobb's Journal; a copy of the article is available at 32205471Sdelphijhttp://marknelson.us/1997/01/01/zlib-engine/ . 3317651Speter 34254069SdelphijThe changes made in version 1.2.8 are documented in the file ChangeLog. 3517651Speter 36205471SdelphijUnsupported third party contributions are provided in directory contrib/ . 3733904Ssteve 38205471Sdelphijzlib is available in Java using the java.util.zip package, documented at 39205471Sdelphijhttp://java.sun.com/developer/technicalArticles/Programming/compression/ . 4033904Ssteve 41205471SdelphijA Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is available 42205471Sdelphijat CPAN (Comprehensive Perl Archive Network) sites, including 43205471Sdelphijhttp://search.cpan.org/~pmqs/IO-Compress-Zlib/ . 4417651Speter 45145474SkientzleA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is 46131377Stjravailable in Python 1.5 and later versions, see 47237691Sdelphijhttp://docs.python.org/library/zlib.html . 4817651Speter 49205471Sdelphijzlib is built into tcl: http://wiki.tcl.tk/4610 . 5033904Ssteve 51131377StjrAn experimental package to read and write files in .zip format, written on top 52131377Stjrof zlib by Gilles Vollant <info@winimage.com>, is available in the 53131377Stjrcontrib/minizip directory of zlib. 5433904Ssteve 5542468Speter 5617651SpeterNotes for some targets: 5717651Speter 58131377Stjr- For Windows DLL versions, please see win32/DLL_FAQ.txt 5917651Speter 60131377Stjr- For 64-bit Irix, deflate.c must be compiled without any optimization. With 61131377Stjr -O, one libpng test fails. The test works in 32 bit mode (with the -n32 62131377Stjr compiler flag). The compiler bug has been reported to SGI. 6333904Ssteve 64131377Stjr- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works 65131377Stjr when compiled with cc. 6617651Speter 67131377Stjr- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is 68131377Stjr necessary to get gzprintf working correctly. This is done by configure. 6917651Speter 70131377Stjr- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with 71131377Stjr other compilers. Use "make test" to check your compiler. 7242468Speter 73205471Sdelphij- gzdopen is not supported on RISCOS or BEOS. 7417651Speter 75131377Stjr- For PalmOs, see http://palmzlib.sourceforge.net/ 7617651Speter 7733904Ssteve 7817651SpeterAcknowledgments: 7917651Speter 80205471Sdelphij The deflate format used by zlib was defined by Phil Katz. The deflate and 81205471Sdelphij zlib specifications were written by L. Peter Deutsch. Thanks to all the 82205471Sdelphij people who reported problems and suggested various improvements in zlib; they 83205471Sdelphij are too numerous to cite here. 8417651Speter 8517651SpeterCopyright notice: 8617651Speter 87254069Sdelphij (C) 1995-2013 Jean-loup Gailly and Mark Adler 8817651Speter 8917651Speter This software is provided 'as-is', without any express or implied 9017651Speter warranty. In no event will the authors be held liable for any damages 9117651Speter arising from the use of this software. 9217651Speter 9317651Speter Permission is granted to anyone to use this software for any purpose, 9417651Speter including commercial applications, and to alter it and redistribute it 9517651Speter freely, subject to the following restrictions: 9617651Speter 9717651Speter 1. The origin of this software must not be misrepresented; you must not 9817651Speter claim that you wrote the original software. If you use this software 9917651Speter in a product, an acknowledgment in the product documentation would be 10017651Speter appreciated but is not required. 10117651Speter 2. Altered source versions must be plainly marked as such, and must not be 10217651Speter misrepresented as being the original software. 10317651Speter 3. This notice may not be removed or altered from any source distribution. 10417651Speter 10517651Speter Jean-loup Gailly Mark Adler 10633904Ssteve jloup@gzip.org madler@alumni.caltech.edu 10717651Speter 108205471SdelphijIf you use the zlib library in a product, we would appreciate *not* receiving 109205471Sdelphijlengthy legal documents to sign. The sources are provided for free but without 110205471Sdelphijwarranty of any kind. The library has been entirely written by Jean-loup 111205471SdelphijGailly and Mark Adler; it does not include third-party code. 11217651Speter 113205471SdelphijIf you redistribute modified sources, we would appreciate that you include in 114205471Sdelphijthe file ChangeLog history information documenting your changes. Please read 115205471Sdelphijthe FAQ for more information on the distribution of modified source versions. 116