README revision 1.1.1.3
11.1SchristosZLIB DATA COMPRESSION LIBRARY 21.1Schristos 31.1.1.3Schristoszlib 1.2.13 is a general purpose data compression library. All the code is 41.1Schristosthread safe. The data format used by the zlib library is described by RFCs 51.1Schristos(Request for Comments) 1950 to 1952 in the files 61.1.1.2Schristoshttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and 71.1.1.2Schristosrfc1952 (gzip format). 81.1Schristos 91.1SchristosAll functions of the compression library are documented in the file zlib.h 101.1.1.2Schristos(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example 111.1.1.2Schristosof the library is given in the file test/example.c which also tests that 121.1.1.2Schristosthe library is working correctly. Another example is given in the file 131.1.1.2Schristostest/minigzip.c. The compression library itself is composed of all source 141.1.1.2Schristosfiles in the root directory. 151.1Schristos 161.1SchristosTo compile all files and run the test program, follow the instructions given at 171.1.1.2Schristosthe top of Makefile.in. In short "./configure; make test", and if that goes 181.1.1.2Schristoswell, "make install" should work for most flavors of Unix. For Windows, use 191.1.1.2Schristosone of the special makefiles in win32/ or contrib/vstudio/ . For VMS, use 201.1.1.2Schristosmake_vms.com. 211.1Schristos 221.1SchristosQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant 231.1.1.2Schristos<info@winimage.com> for the Windows DLL version. The zlib home page is 241.1.1.2Schristoshttp://zlib.net/ . Before reporting a problem, please check this site to 251.1.1.2Schristosverify that you have the latest version of zlib; otherwise get the latest 261.1.1.2Schristosversion and check whether the problem still exists or not. 271.1.1.2Schristos 281.1.1.2SchristosPLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help. 291.1.1.2Schristos 301.1.1.2SchristosMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997 311.1.1.2Schristosissue of Dr. Dobb's Journal; a copy of the article is available at 321.1.1.2Schristoshttp://marknelson.us/1997/01/01/zlib-engine/ . 331.1.1.2Schristos 341.1.1.3SchristosThe changes made in version 1.2.13 are documented in the file ChangeLog. 351.1.1.2Schristos 361.1.1.2SchristosUnsupported third party contributions are provided in directory contrib/ . 371.1.1.2Schristos 381.1.1.2Schristoszlib is available in Java using the java.util.zip package, documented at 391.1.1.2Schristoshttp://java.sun.com/developer/technicalArticles/Programming/compression/ . 401.1.1.2Schristos 411.1.1.2SchristosA Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is available 421.1.1.2Schristosat CPAN (Comprehensive Perl Archive Network) sites, including 431.1.1.2Schristoshttp://search.cpan.org/~pmqs/IO-Compress-Zlib/ . 441.1Schristos 451.1SchristosA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is 461.1Schristosavailable in Python 1.5 and later versions, see 471.1.1.2Schristoshttp://docs.python.org/library/zlib.html . 481.1Schristos 491.1.1.2Schristoszlib is built into tcl: http://wiki.tcl.tk/4610 . 501.1Schristos 511.1SchristosAn experimental package to read and write files in .zip format, written on top 521.1Schristosof zlib by Gilles Vollant <info@winimage.com>, is available in the 531.1Schristoscontrib/minizip directory of zlib. 541.1Schristos 551.1Schristos 561.1SchristosNotes for some targets: 571.1Schristos 581.1Schristos- For Windows DLL versions, please see win32/DLL_FAQ.txt 591.1Schristos 601.1Schristos- For 64-bit Irix, deflate.c must be compiled without any optimization. With 611.1Schristos -O, one libpng test fails. The test works in 32 bit mode (with the -n32 621.1Schristos compiler flag). The compiler bug has been reported to SGI. 631.1Schristos 641.1Schristos- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works 651.1Schristos when compiled with cc. 661.1Schristos 671.1Schristos- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is 681.1Schristos necessary to get gzprintf working correctly. This is done by configure. 691.1Schristos 701.1Schristos- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with 711.1Schristos other compilers. Use "make test" to check your compiler. 721.1Schristos 731.1.1.2Schristos- gzdopen is not supported on RISCOS or BEOS. 741.1Schristos 751.1Schristos- For PalmOs, see http://palmzlib.sourceforge.net/ 761.1Schristos 771.1Schristos 781.1SchristosAcknowledgments: 791.1Schristos 801.1.1.2Schristos The deflate format used by zlib was defined by Phil Katz. The deflate and 811.1.1.2Schristos zlib specifications were written by L. Peter Deutsch. Thanks to all the 821.1.1.2Schristos people who reported problems and suggested various improvements in zlib; they 831.1.1.2Schristos are too numerous to cite here. 841.1Schristos 851.1SchristosCopyright notice: 861.1Schristos 871.1.1.3Schristos (C) 1995-2022 Jean-loup Gailly and Mark Adler 881.1Schristos 891.1Schristos This software is provided 'as-is', without any express or implied 901.1Schristos warranty. In no event will the authors be held liable for any damages 911.1Schristos arising from the use of this software. 921.1Schristos 931.1Schristos Permission is granted to anyone to use this software for any purpose, 941.1Schristos including commercial applications, and to alter it and redistribute it 951.1Schristos freely, subject to the following restrictions: 961.1Schristos 971.1Schristos 1. The origin of this software must not be misrepresented; you must not 981.1Schristos claim that you wrote the original software. If you use this software 991.1Schristos in a product, an acknowledgment in the product documentation would be 1001.1Schristos appreciated but is not required. 1011.1Schristos 2. Altered source versions must be plainly marked as such, and must not be 1021.1Schristos misrepresented as being the original software. 1031.1Schristos 3. This notice may not be removed or altered from any source distribution. 1041.1Schristos 1051.1Schristos Jean-loup Gailly Mark Adler 1061.1Schristos jloup@gzip.org madler@alumni.caltech.edu 1071.1Schristos 1081.1.1.2SchristosIf you use the zlib library in a product, we would appreciate *not* receiving 1091.1.1.2Schristoslengthy legal documents to sign. The sources are provided for free but without 1101.1.1.2Schristoswarranty of any kind. The library has been entirely written by Jean-loup 1111.1.1.3SchristosGailly and Mark Adler; it does not include third-party code. We make all 1121.1.1.3Schristoscontributions to and distributions of this project solely in our personal 1131.1.1.3Schristoscapacity, and are not conveying any rights to any intellectual property of 1141.1.1.3Schristosany third parties. 1151.1.1.2Schristos 1161.1.1.2SchristosIf you redistribute modified sources, we would appreciate that you include in 1171.1.1.2Schristosthe file ChangeLog history information documenting your changes. Please read 1181.1.1.2Schristosthe FAQ for more information on the distribution of modified source versions. 119