185c48e79ShenningZLIB DATA COMPRESSION LIBRARY 285c48e79Shenning 3*d5e7bdb5Stbzlib 1.3.1.1 is a general purpose data compression library. All the code is 485c48e79Shenningthread safe. The data format used by the zlib library is described by RFCs 585c48e79Shenning(Request for Comments) 1950 to 1952 in the files 636f395ceStbhttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and 736f395ceStbrfc1952 (gzip format). 82af503bcStholo 915ce0796SmillertAll functions of the compression library are documented in the file zlib.h 1085c48e79Shenning(volunteer to write man pages welcome, contact zlib@gzip.org). A usage example 1136f395ceStbof the library is given in the file test/example.c which also tests that 1236f395ceStbthe library is working correctly. Another example is given in the file 1336f395ceStbtest/minigzip.c. The compression library itself is composed of all source 1436f395ceStbfiles in the root directory. 152af503bcStholo 1685c48e79ShenningTo compile all files and run the test program, follow the instructions given at 1736f395ceStbthe top of Makefile.in. In short "./configure; make test", and if that goes 1836f395ceStbwell, "make install" should work for most flavors of Unix. For Windows, use 1936f395ceStbone of the special makefiles in win32/ or contrib/vstudio/ . For VMS, use 2036f395ceStbmake_vms.com. 212af503bcStholo 2285c48e79ShenningQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant 2385c48e79Shenning<info@winimage.com> for the Windows DLL version. The zlib home page is 2436f395ceStbhttp://zlib.net/ . Before reporting a problem, please check this site to 2536f395ceStbverify that you have the latest version of zlib; otherwise get the latest 2636f395ceStbversion and check whether the problem still exists or not. 272af503bcStholo 2836f395ceStbPLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help. 291a167136Smillert 301a167136SmillertMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997 3136f395ceStbissue of Dr. Dobb's Journal; a copy of the article is available at 32a04ea15dStbhttps://marknelson.us/posts/1997/01/01/zlib-engine.html . 332af503bcStholo 34*d5e7bdb5StbThe changes made in version 1.3.1.1 are documented in the file ChangeLog. 3515ce0796Smillert 3636f395ceStbUnsupported third party contributions are provided in directory contrib/ . 3715ce0796Smillert 3828d10565Stbzlib is available in Java using the java.util.zip package. Follow the API 3928d10565StbDocumentation link at: https://docs.oracle.com/search/?q=java.util.zip . 402af503bcStholo 4128d10565StbA Perl interface to zlib and bzip2 written by Paul Marquess <pmqs@cpan.org> 4228d10565Stbcan be found at https://github.com/pmqs/IO-Compress . 432af503bcStholo 44b967fc35SdjmA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is 4585c48e79Shenningavailable in Python 1.5 and later versions, see 4636f395ceStbhttp://docs.python.org/library/zlib.html . 4715ce0796Smillert 4836f395ceStbzlib is built into tcl: http://wiki.tcl.tk/4610 . 4915ce0796Smillert 5085c48e79ShenningAn experimental package to read and write files in .zip format, written on top 5185c48e79Shenningof zlib by Gilles Vollant <info@winimage.com>, is available in the 5285c48e79Shenningcontrib/minizip directory of zlib. 5315ce0796Smillert 542af503bcStholo 552af503bcStholoNotes for some targets: 562af503bcStholo 5785c48e79Shenning- For Windows DLL versions, please see win32/DLL_FAQ.txt 582af503bcStholo 5985c48e79Shenning- For 64-bit Irix, deflate.c must be compiled without any optimization. With 6085c48e79Shenning -O, one libpng test fails. The test works in 32 bit mode (with the -n32 6185c48e79Shenning compiler flag). The compiler bug has been reported to SGI. 6215ce0796Smillert 6385c48e79Shenning- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works 6485c48e79Shenning when compiled with cc. 652af503bcStholo 66eef95d0bStb- On Digital Unix 4.0D (formerly OSF/1) on AlphaServer, the cc option -std1 is 6785c48e79Shenning necessary to get gzprintf working correctly. This is done by configure. 682af503bcStholo 6985c48e79Shenning- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with 7085c48e79Shenning other compilers. Use "make test" to check your compiler. 71f503157cSmillert 7285c48e79Shenning- For PalmOs, see http://palmzlib.sourceforge.net/ 7315ce0796Smillert 742af503bcStholo 752af503bcStholoAcknowledgments: 762af503bcStholo 7736f395ceStb The deflate format used by zlib was defined by Phil Katz. The deflate and 7836f395ceStb zlib specifications were written by L. Peter Deutsch. Thanks to all the 7936f395ceStb people who reported problems and suggested various improvements in zlib; they 8036f395ceStb are too numerous to cite here. 812af503bcStholo 822af503bcStholoCopyright notice: 832af503bcStholo 84*d5e7bdb5Stb (C) 1995-2024 Jean-loup Gailly and Mark Adler 852af503bcStholo 862af503bcStholo This software is provided 'as-is', without any express or implied 872af503bcStholo warranty. In no event will the authors be held liable for any damages 882af503bcStholo arising from the use of this software. 892af503bcStholo 902af503bcStholo Permission is granted to anyone to use this software for any purpose, 912af503bcStholo including commercial applications, and to alter it and redistribute it 922af503bcStholo freely, subject to the following restrictions: 932af503bcStholo 942af503bcStholo 1. The origin of this software must not be misrepresented; you must not 952af503bcStholo claim that you wrote the original software. If you use this software 962af503bcStholo in a product, an acknowledgment in the product documentation would be 972af503bcStholo appreciated but is not required. 982af503bcStholo 2. Altered source versions must be plainly marked as such, and must not be 992af503bcStholo misrepresented as being the original software. 1002af503bcStholo 3. This notice may not be removed or altered from any source distribution. 1012af503bcStholo 1022af503bcStholo Jean-loup Gailly Mark Adler 10315ce0796Smillert jloup@gzip.org madler@alumni.caltech.edu 1042af503bcStholo 10536f395ceStbIf you use the zlib library in a product, we would appreciate *not* receiving 10636f395ceStblengthy legal documents to sign. The sources are provided for free but without 10736f395ceStbwarranty of any kind. The library has been entirely written by Jean-loup 108703d4924StbGailly and Mark Adler; it does not include third-party code. We make all 109703d4924Stbcontributions to and distributions of this project solely in our personal 110703d4924Stbcapacity, and are not conveying any rights to any intellectual property of 111703d4924Stbany third parties. 1122af503bcStholo 11336f395ceStbIf you redistribute modified sources, we would appreciate that you include in 11436f395ceStbthe file ChangeLog history information documenting your changes. Please read 11536f395ceStbthe FAQ for more information on the distribution of modified source versions. 116