1b8382935SToomas SoomeZLIB DATA COMPRESSION LIBRARY 2b8382935SToomas Soome 3*148fd93eSToomas Soomezlib 1.2.12 is a general purpose data compression library. All the code is 4b8382935SToomas Soomethread safe. The data format used by the zlib library is described by RFCs 5b8382935SToomas Soome(Request for Comments) 1950 to 1952 in the files 6b8382935SToomas Soomehttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and 7b8382935SToomas Soomerfc1952 (gzip format). 8b8382935SToomas Soome 9b8382935SToomas SoomeAll functions of the compression library are documented in the file zlib.h 10b8382935SToomas Soome(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example 11b8382935SToomas Soomeof the library is given in the file test/example.c which also tests that 12b8382935SToomas Soomethe library is working correctly. Another example is given in the file 13b8382935SToomas Soometest/minigzip.c. The compression library itself is composed of all source 14b8382935SToomas Soomefiles in the root directory. 15b8382935SToomas Soome 16b8382935SToomas SoomeTo compile all files and run the test program, follow the instructions given at 17b8382935SToomas Soomethe top of Makefile.in. In short "./configure; make test", and if that goes 18b8382935SToomas Soomewell, "make install" should work for most flavors of Unix. For Windows, use 19b8382935SToomas Soomeone of the special makefiles in win32/ or contrib/vstudio/ . For VMS, use 20b8382935SToomas Soomemake_vms.com. 21b8382935SToomas Soome 22b8382935SToomas SoomeQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant 23b8382935SToomas Soome<info@winimage.com> for the Windows DLL version. The zlib home page is 24b8382935SToomas Soomehttp://zlib.net/ . Before reporting a problem, please check this site to 25b8382935SToomas Soomeverify that you have the latest version of zlib; otherwise get the latest 26b8382935SToomas Soomeversion and check whether the problem still exists or not. 27b8382935SToomas Soome 28b8382935SToomas SoomePLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help. 29b8382935SToomas Soome 30b8382935SToomas SoomeMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997 31b8382935SToomas Soomeissue of Dr. Dobb's Journal; a copy of the article is available at 32b8382935SToomas Soomehttp://marknelson.us/1997/01/01/zlib-engine/ . 33b8382935SToomas Soome 34*148fd93eSToomas SoomeThe changes made in version 1.2.12 are documented in the file ChangeLog. 35b8382935SToomas Soome 36b8382935SToomas SoomeUnsupported third party contributions are provided in directory contrib/ . 37b8382935SToomas Soome 38b8382935SToomas Soomezlib is available in Java using the java.util.zip package, documented at 39b8382935SToomas Soomehttp://java.sun.com/developer/technicalArticles/Programming/compression/ . 40b8382935SToomas Soome 41b8382935SToomas SoomeA Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is available 42b8382935SToomas Soomeat CPAN (Comprehensive Perl Archive Network) sites, including 43b8382935SToomas Soomehttp://search.cpan.org/~pmqs/IO-Compress-Zlib/ . 44b8382935SToomas Soome 45b8382935SToomas SoomeA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is 46b8382935SToomas Soomeavailable in Python 1.5 and later versions, see 47b8382935SToomas Soomehttp://docs.python.org/library/zlib.html . 48b8382935SToomas Soome 49b8382935SToomas Soomezlib is built into tcl: http://wiki.tcl.tk/4610 . 50b8382935SToomas Soome 51b8382935SToomas SoomeAn experimental package to read and write files in .zip format, written on top 52b8382935SToomas Soomeof zlib by Gilles Vollant <info@winimage.com>, is available in the 53b8382935SToomas Soomecontrib/minizip directory of zlib. 54b8382935SToomas Soome 55b8382935SToomas Soome 56b8382935SToomas SoomeNotes for some targets: 57b8382935SToomas Soome 58b8382935SToomas Soome- For Windows DLL versions, please see win32/DLL_FAQ.txt 59b8382935SToomas Soome 60b8382935SToomas Soome- For 64-bit Irix, deflate.c must be compiled without any optimization. With 61b8382935SToomas Soome -O, one libpng test fails. The test works in 32 bit mode (with the -n32 62b8382935SToomas Soome compiler flag). The compiler bug has been reported to SGI. 63b8382935SToomas Soome 64b8382935SToomas Soome- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works 65b8382935SToomas Soome when compiled with cc. 66b8382935SToomas Soome 67b8382935SToomas Soome- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is 68b8382935SToomas Soome necessary to get gzprintf working correctly. This is done by configure. 69b8382935SToomas Soome 70b8382935SToomas Soome- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with 71b8382935SToomas Soome other compilers. Use "make test" to check your compiler. 72b8382935SToomas Soome 73b8382935SToomas Soome- gzdopen is not supported on RISCOS or BEOS. 74b8382935SToomas Soome 75b8382935SToomas Soome- For PalmOs, see http://palmzlib.sourceforge.net/ 76b8382935SToomas Soome 77b8382935SToomas Soome 78b8382935SToomas SoomeAcknowledgments: 79b8382935SToomas Soome 80b8382935SToomas Soome The deflate format used by zlib was defined by Phil Katz. The deflate and 81b8382935SToomas Soome zlib specifications were written by L. Peter Deutsch. Thanks to all the 82b8382935SToomas Soome people who reported problems and suggested various improvements in zlib; they 83b8382935SToomas Soome are too numerous to cite here. 84b8382935SToomas Soome 85b8382935SToomas SoomeCopyright notice: 86b8382935SToomas Soome 87*148fd93eSToomas Soome (C) 1995-2022 Jean-loup Gailly and Mark Adler 88b8382935SToomas Soome 89b8382935SToomas Soome This software is provided 'as-is', without any express or implied 90b8382935SToomas Soome warranty. In no event will the authors be held liable for any damages 91b8382935SToomas Soome arising from the use of this software. 92b8382935SToomas Soome 93b8382935SToomas Soome Permission is granted to anyone to use this software for any purpose, 94b8382935SToomas Soome including commercial applications, and to alter it and redistribute it 95b8382935SToomas Soome freely, subject to the following restrictions: 96b8382935SToomas Soome 97b8382935SToomas Soome 1. The origin of this software must not be misrepresented; you must not 98b8382935SToomas Soome claim that you wrote the original software. If you use this software 99b8382935SToomas Soome in a product, an acknowledgment in the product documentation would be 100b8382935SToomas Soome appreciated but is not required. 101b8382935SToomas Soome 2. Altered source versions must be plainly marked as such, and must not be 102b8382935SToomas Soome misrepresented as being the original software. 103b8382935SToomas Soome 3. This notice may not be removed or altered from any source distribution. 104b8382935SToomas Soome 105b8382935SToomas Soome Jean-loup Gailly Mark Adler 106b8382935SToomas Soome jloup@gzip.org madler@alumni.caltech.edu 107b8382935SToomas Soome 108b8382935SToomas SoomeIf you use the zlib library in a product, we would appreciate *not* receiving 109b8382935SToomas Soomelengthy legal documents to sign. The sources are provided for free but without 110b8382935SToomas Soomewarranty of any kind. The library has been entirely written by Jean-loup 111*148fd93eSToomas SoomeGailly and Mark Adler; it does not include third-party code. We make all 112*148fd93eSToomas Soomecontributions to and distributions of this project solely in our personal 113*148fd93eSToomas Soomecapacity, and are not conveying any rights to any intellectual property of 114*148fd93eSToomas Soomeany third parties. 115b8382935SToomas Soome 116b8382935SToomas SoomeIf you redistribute modified sources, we would appreciate that you include in 117b8382935SToomas Soomethe file ChangeLog history information documenting your changes. Please read 118b8382935SToomas Soomethe FAQ for more information on the distribution of modified source versions. 119