11.1SchristosZLIB DATA COMPRESSION LIBRARY 21.1Schristos 31.1.1.4Schristoszlib 1.3.1 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.4Schristoshttps://marknelson.us/posts/1997/01/01/zlib-engine.html . 331.1.1.2Schristos 341.1.1.4SchristosThe changes made in version 1.3.1 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.4Schristoszlib is available in Java using the java.util.zip package. Follow the API 391.1.1.4SchristosDocumentation link at: https://docs.oracle.com/search/?q=java.util.zip . 401.1.1.2Schristos 411.1.1.4SchristosA Perl interface to zlib and bzip2 written by Paul Marquess <pmqs@cpan.org> 421.1.1.4Schristoscan be found at https://github.com/pmqs/IO-Compress . 431.1Schristos 441.1SchristosA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is 451.1Schristosavailable in Python 1.5 and later versions, see 461.1.1.2Schristoshttp://docs.python.org/library/zlib.html . 471.1Schristos 481.1.1.2Schristoszlib is built into tcl: http://wiki.tcl.tk/4610 . 491.1Schristos 501.1SchristosAn experimental package to read and write files in .zip format, written on top 511.1Schristosof zlib by Gilles Vollant <info@winimage.com>, is available in the 521.1Schristoscontrib/minizip directory of zlib. 531.1Schristos 541.1Schristos 551.1SchristosNotes for some targets: 561.1Schristos 571.1Schristos- For Windows DLL versions, please see win32/DLL_FAQ.txt 581.1Schristos 591.1Schristos- For 64-bit Irix, deflate.c must be compiled without any optimization. With 601.1Schristos -O, one libpng test fails. The test works in 32 bit mode (with the -n32 611.1Schristos compiler flag). The compiler bug has been reported to SGI. 621.1Schristos 631.1Schristos- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works 641.1Schristos when compiled with cc. 651.1Schristos 661.1.1.4Schristos- On Digital Unix 4.0D (formerly OSF/1) on AlphaServer, the cc option -std1 is 671.1Schristos necessary to get gzprintf working correctly. This is done by configure. 681.1Schristos 691.1Schristos- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with 701.1Schristos other compilers. Use "make test" to check your compiler. 711.1Schristos 721.1.1.2Schristos- gzdopen is not supported on RISCOS or BEOS. 731.1Schristos 741.1Schristos- For PalmOs, see http://palmzlib.sourceforge.net/ 751.1Schristos 761.1Schristos 771.1SchristosAcknowledgments: 781.1Schristos 791.1.1.2Schristos The deflate format used by zlib was defined by Phil Katz. The deflate and 801.1.1.2Schristos zlib specifications were written by L. Peter Deutsch. Thanks to all the 811.1.1.2Schristos people who reported problems and suggested various improvements in zlib; they 821.1.1.2Schristos are too numerous to cite here. 831.1Schristos 841.1SchristosCopyright notice: 851.1Schristos 861.1.1.4Schristos (C) 1995-2024 Jean-loup Gailly and Mark Adler 871.1Schristos 881.1Schristos This software is provided 'as-is', without any express or implied 891.1Schristos warranty. In no event will the authors be held liable for any damages 901.1Schristos arising from the use of this software. 911.1Schristos 921.1Schristos Permission is granted to anyone to use this software for any purpose, 931.1Schristos including commercial applications, and to alter it and redistribute it 941.1Schristos freely, subject to the following restrictions: 951.1Schristos 961.1Schristos 1. The origin of this software must not be misrepresented; you must not 971.1Schristos claim that you wrote the original software. If you use this software 981.1Schristos in a product, an acknowledgment in the product documentation would be 991.1Schristos appreciated but is not required. 1001.1Schristos 2. Altered source versions must be plainly marked as such, and must not be 1011.1Schristos misrepresented as being the original software. 1021.1Schristos 3. This notice may not be removed or altered from any source distribution. 1031.1Schristos 1041.1Schristos Jean-loup Gailly Mark Adler 1051.1Schristos jloup@gzip.org madler@alumni.caltech.edu 1061.1Schristos 1071.1.1.2SchristosIf you use the zlib library in a product, we would appreciate *not* receiving 1081.1.1.2Schristoslengthy legal documents to sign. The sources are provided for free but without 1091.1.1.2Schristoswarranty of any kind. The library has been entirely written by Jean-loup 1101.1.1.3SchristosGailly and Mark Adler; it does not include third-party code. We make all 1111.1.1.3Schristoscontributions to and distributions of this project solely in our personal 1121.1.1.3Schristoscapacity, and are not conveying any rights to any intellectual property of 1131.1.1.3Schristosany third parties. 1141.1.1.2Schristos 1151.1.1.2SchristosIf you redistribute modified sources, we would appreciate that you include in 1161.1.1.2Schristosthe file ChangeLog history information documenting your changes. Please read 1171.1.1.2Schristosthe FAQ for more information on the distribution of modified source versions. 118