17777dab0Sopenharmony_ciZLIB DATA COMPRESSION LIBRARY
27777dab0Sopenharmony_ci
37777dab0Sopenharmony_cizlib 1.3.1 is a general purpose data compression library.  All the code is
47777dab0Sopenharmony_cithread safe.  The data format used by the zlib library is described by RFCs
57777dab0Sopenharmony_ci(Request for Comments) 1950 to 1952 in the files
67777dab0Sopenharmony_cihttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
77777dab0Sopenharmony_cirfc1952 (gzip format).
87777dab0Sopenharmony_ci
97777dab0Sopenharmony_ciAll functions of the compression library are documented in the file zlib.h
107777dab0Sopenharmony_ci(volunteer to write man pages welcome, contact zlib@gzip.org).  A usage example
117777dab0Sopenharmony_ciof the library is given in the file test/example.c which also tests that
127777dab0Sopenharmony_cithe library is working correctly.  Another example is given in the file
137777dab0Sopenharmony_citest/minigzip.c.  The compression library itself is composed of all source
147777dab0Sopenharmony_cifiles in the root directory.
157777dab0Sopenharmony_ci
167777dab0Sopenharmony_ciTo compile all files and run the test program, follow the instructions given at
177777dab0Sopenharmony_cithe top of Makefile.in.  In short "./configure; make test", and if that goes
187777dab0Sopenharmony_ciwell, "make install" should work for most flavors of Unix.  For Windows, use
197777dab0Sopenharmony_cione of the special makefiles in win32/ or contrib/vstudio/ .  For VMS, use
207777dab0Sopenharmony_cimake_vms.com.
217777dab0Sopenharmony_ci
227777dab0Sopenharmony_ciQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
237777dab0Sopenharmony_ci<info@winimage.com> for the Windows DLL version.  The zlib home page is
247777dab0Sopenharmony_cihttp://zlib.net/ .  Before reporting a problem, please check this site to
257777dab0Sopenharmony_civerify that you have the latest version of zlib; otherwise get the latest
267777dab0Sopenharmony_civersion and check whether the problem still exists or not.
277777dab0Sopenharmony_ci
287777dab0Sopenharmony_ciPLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help.
297777dab0Sopenharmony_ci
307777dab0Sopenharmony_ciMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan.  1997
317777dab0Sopenharmony_ciissue of Dr.  Dobb's Journal; a copy of the article is available at
327777dab0Sopenharmony_cihttp://marknelson.us/1997/01/01/zlib-engine/ .
337777dab0Sopenharmony_ci
347777dab0Sopenharmony_ciThe changes made in version 1.3.1 are documented in the file ChangeLog.
357777dab0Sopenharmony_ci
367777dab0Sopenharmony_ciUnsupported third party contributions are provided in directory contrib/ .
377777dab0Sopenharmony_ci
387777dab0Sopenharmony_cizlib is available in Java using the java.util.zip package, documented at
397777dab0Sopenharmony_cihttp://java.sun.com/developer/technicalArticles/Programming/compression/ .
407777dab0Sopenharmony_ci
417777dab0Sopenharmony_ciA Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is available
427777dab0Sopenharmony_ciat CPAN (Comprehensive Perl Archive Network) sites, including
437777dab0Sopenharmony_cihttp://search.cpan.org/~pmqs/IO-Compress-Zlib/ .
447777dab0Sopenharmony_ci
457777dab0Sopenharmony_ciA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is
467777dab0Sopenharmony_ciavailable in Python 1.5 and later versions, see
477777dab0Sopenharmony_cihttp://docs.python.org/library/zlib.html .
487777dab0Sopenharmony_ci
497777dab0Sopenharmony_cizlib is built into tcl: http://wiki.tcl.tk/4610 .
507777dab0Sopenharmony_ci
517777dab0Sopenharmony_ciAn experimental package to read and write files in .zip format, written on top
527777dab0Sopenharmony_ciof zlib by Gilles Vollant <info@winimage.com>, is available in the
537777dab0Sopenharmony_cicontrib/minizip directory of zlib.
547777dab0Sopenharmony_ci
557777dab0Sopenharmony_ci
567777dab0Sopenharmony_ciNotes for some targets:
577777dab0Sopenharmony_ci
587777dab0Sopenharmony_ci- For Windows DLL versions, please see win32/DLL_FAQ.txt
597777dab0Sopenharmony_ci
607777dab0Sopenharmony_ci- For 64-bit Irix, deflate.c must be compiled without any optimization. With
617777dab0Sopenharmony_ci  -O, one libpng test fails. The test works in 32 bit mode (with the -n32
627777dab0Sopenharmony_ci  compiler flag). The compiler bug has been reported to SGI.
637777dab0Sopenharmony_ci
647777dab0Sopenharmony_ci- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works
657777dab0Sopenharmony_ci  when compiled with cc.
667777dab0Sopenharmony_ci
677777dab0Sopenharmony_ci- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is
687777dab0Sopenharmony_ci  necessary to get gzprintf working correctly. This is done by configure.
697777dab0Sopenharmony_ci
707777dab0Sopenharmony_ci- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
717777dab0Sopenharmony_ci  other compilers. Use "make test" to check your compiler.
727777dab0Sopenharmony_ci
737777dab0Sopenharmony_ci- gzdopen is not supported on RISCOS or BEOS.
747777dab0Sopenharmony_ci
757777dab0Sopenharmony_ci- For PalmOs, see http://palmzlib.sourceforge.net/
767777dab0Sopenharmony_ci
777777dab0Sopenharmony_ci
787777dab0Sopenharmony_ciAcknowledgments:
797777dab0Sopenharmony_ci
807777dab0Sopenharmony_ci  The deflate format used by zlib was defined by Phil Katz.  The deflate and
817777dab0Sopenharmony_ci  zlib specifications were written by L.  Peter Deutsch.  Thanks to all the
827777dab0Sopenharmony_ci  people who reported problems and suggested various improvements in zlib; they
837777dab0Sopenharmony_ci  are too numerous to cite here.
847777dab0Sopenharmony_ci
857777dab0Sopenharmony_ciCopyright notice:
867777dab0Sopenharmony_ci
877777dab0Sopenharmony_ci (C) 1995-2022 Jean-loup Gailly and Mark Adler
887777dab0Sopenharmony_ci
897777dab0Sopenharmony_ci  This software is provided 'as-is', without any express or implied
907777dab0Sopenharmony_ci  warranty.  In no event will the authors be held liable for any damages
917777dab0Sopenharmony_ci  arising from the use of this software.
927777dab0Sopenharmony_ci
937777dab0Sopenharmony_ci  Permission is granted to anyone to use this software for any purpose,
947777dab0Sopenharmony_ci  including commercial applications, and to alter it and redistribute it
957777dab0Sopenharmony_ci  freely, subject to the following restrictions:
967777dab0Sopenharmony_ci
977777dab0Sopenharmony_ci  1. The origin of this software must not be misrepresented; you must not
987777dab0Sopenharmony_ci     claim that you wrote the original software. If you use this software
997777dab0Sopenharmony_ci     in a product, an acknowledgment in the product documentation would be
1007777dab0Sopenharmony_ci     appreciated but is not required.
1017777dab0Sopenharmony_ci  2. Altered source versions must be plainly marked as such, and must not be
1027777dab0Sopenharmony_ci     misrepresented as being the original software.
1037777dab0Sopenharmony_ci  3. This notice may not be removed or altered from any source distribution.
1047777dab0Sopenharmony_ci
1057777dab0Sopenharmony_ci  Jean-loup Gailly        Mark Adler
1067777dab0Sopenharmony_ci  jloup@gzip.org          madler@alumni.caltech.edu
1077777dab0Sopenharmony_ci
1087777dab0Sopenharmony_ciIf you use the zlib library in a product, we would appreciate *not* receiving
1097777dab0Sopenharmony_cilengthy legal documents to sign.  The sources are provided for free but without
1107777dab0Sopenharmony_ciwarranty of any kind.  The library has been entirely written by Jean-loup
1117777dab0Sopenharmony_ciGailly and Mark Adler; it does not include third-party code.  We make all
1127777dab0Sopenharmony_cicontributions to and distributions of this project solely in our personal
1137777dab0Sopenharmony_cicapacity, and are not conveying any rights to any intellectual property of
1147777dab0Sopenharmony_ciany third parties.
1157777dab0Sopenharmony_ci
1167777dab0Sopenharmony_ciIf you redistribute modified sources, we would appreciate that you include in
1177777dab0Sopenharmony_cithe file ChangeLog history information documenting your changes.  Please read
1187777dab0Sopenharmony_cithe FAQ for more information on the distribution of modified source versions.
119