1275793eaSopenharmony_ciZLIB DATA COMPRESSION LIBRARY
2275793eaSopenharmony_ci
3275793eaSopenharmony_cizlib 1.3.1 is a general purpose data compression library.  All the code is
4275793eaSopenharmony_cithread safe.  The data format used by the zlib library is described by RFCs
5275793eaSopenharmony_ci(Request for Comments) 1950 to 1952 in the files
6275793eaSopenharmony_cihttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
7275793eaSopenharmony_cirfc1952 (gzip format).
8275793eaSopenharmony_ci
9275793eaSopenharmony_ciAll functions of the compression library are documented in the file zlib.h
10275793eaSopenharmony_ci(volunteer to write man pages welcome, contact zlib@gzip.org).  A usage example
11275793eaSopenharmony_ciof the library is given in the file test/example.c which also tests that
12275793eaSopenharmony_cithe library is working correctly.  Another example is given in the file
13275793eaSopenharmony_citest/minigzip.c.  The compression library itself is composed of all source
14275793eaSopenharmony_cifiles in the root directory.
15275793eaSopenharmony_ci
16275793eaSopenharmony_ciTo compile all files and run the test program, follow the instructions given at
17275793eaSopenharmony_cithe top of Makefile.in.  In short "./configure; make test", and if that goes
18275793eaSopenharmony_ciwell, "make install" should work for most flavors of Unix.  For Windows, use
19275793eaSopenharmony_cione of the special makefiles in win32/ or contrib/vstudio/ .  For VMS, use
20275793eaSopenharmony_cimake_vms.com.
21275793eaSopenharmony_ci
22275793eaSopenharmony_ciQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
23275793eaSopenharmony_ci<info@winimage.com> for the Windows DLL version.  The zlib home page is
24275793eaSopenharmony_cihttp://zlib.net/ .  Before reporting a problem, please check this site to
25275793eaSopenharmony_civerify that you have the latest version of zlib; otherwise get the latest
26275793eaSopenharmony_civersion and check whether the problem still exists or not.
27275793eaSopenharmony_ci
28275793eaSopenharmony_ciPLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help.
29275793eaSopenharmony_ci
30275793eaSopenharmony_ciMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan.  1997
31275793eaSopenharmony_ciissue of Dr.  Dobb's Journal; a copy of the article is available at
32275793eaSopenharmony_cihttps://marknelson.us/posts/1997/01/01/zlib-engine.html .
33275793eaSopenharmony_ci
34275793eaSopenharmony_ciThe changes made in version 1.3.1 are documented in the file ChangeLog.
35275793eaSopenharmony_ci
36275793eaSopenharmony_ciUnsupported third party contributions are provided in directory contrib/ .
37275793eaSopenharmony_ci
38275793eaSopenharmony_cizlib is available in Java using the java.util.zip package. Follow the API
39275793eaSopenharmony_ciDocumentation link at: https://docs.oracle.com/search/?q=java.util.zip .
40275793eaSopenharmony_ci
41275793eaSopenharmony_ciA Perl interface to zlib and bzip2 written by Paul Marquess <pmqs@cpan.org>
42275793eaSopenharmony_cican be found at https://github.com/pmqs/IO-Compress .
43275793eaSopenharmony_ci
44275793eaSopenharmony_ciA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is
45275793eaSopenharmony_ciavailable in Python 1.5 and later versions, see
46275793eaSopenharmony_cihttp://docs.python.org/library/zlib.html .
47275793eaSopenharmony_ci
48275793eaSopenharmony_cizlib is built into tcl: http://wiki.tcl.tk/4610 .
49275793eaSopenharmony_ci
50275793eaSopenharmony_ciAn experimental package to read and write files in .zip format, written on top
51275793eaSopenharmony_ciof zlib by Gilles Vollant <info@winimage.com>, is available in the
52275793eaSopenharmony_cicontrib/minizip directory of zlib.
53275793eaSopenharmony_ci
54275793eaSopenharmony_ci
55275793eaSopenharmony_ciNotes for some targets:
56275793eaSopenharmony_ci
57275793eaSopenharmony_ci- For Windows DLL versions, please see win32/DLL_FAQ.txt
58275793eaSopenharmony_ci
59275793eaSopenharmony_ci- For 64-bit Irix, deflate.c must be compiled without any optimization. With
60275793eaSopenharmony_ci  -O, one libpng test fails. The test works in 32 bit mode (with the -n32
61275793eaSopenharmony_ci  compiler flag). The compiler bug has been reported to SGI.
62275793eaSopenharmony_ci
63275793eaSopenharmony_ci- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works
64275793eaSopenharmony_ci  when compiled with cc.
65275793eaSopenharmony_ci
66275793eaSopenharmony_ci- On Digital Unix 4.0D (formerly OSF/1) on AlphaServer, the cc option -std1 is
67275793eaSopenharmony_ci  necessary to get gzprintf working correctly. This is done by configure.
68275793eaSopenharmony_ci
69275793eaSopenharmony_ci- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
70275793eaSopenharmony_ci  other compilers. Use "make test" to check your compiler.
71275793eaSopenharmony_ci
72275793eaSopenharmony_ci- gzdopen is not supported on RISCOS or BEOS.
73275793eaSopenharmony_ci
74275793eaSopenharmony_ci- For PalmOs, see http://palmzlib.sourceforge.net/
75275793eaSopenharmony_ci
76275793eaSopenharmony_ci
77275793eaSopenharmony_ciAcknowledgments:
78275793eaSopenharmony_ci
79275793eaSopenharmony_ci  The deflate format used by zlib was defined by Phil Katz.  The deflate and
80275793eaSopenharmony_ci  zlib specifications were written by L.  Peter Deutsch.  Thanks to all the
81275793eaSopenharmony_ci  people who reported problems and suggested various improvements in zlib; they
82275793eaSopenharmony_ci  are too numerous to cite here.
83275793eaSopenharmony_ci
84275793eaSopenharmony_ciCopyright notice:
85275793eaSopenharmony_ci
86275793eaSopenharmony_ci (C) 1995-2024 Jean-loup Gailly and Mark Adler
87275793eaSopenharmony_ci
88275793eaSopenharmony_ci  This software is provided 'as-is', without any express or implied
89275793eaSopenharmony_ci  warranty.  In no event will the authors be held liable for any damages
90275793eaSopenharmony_ci  arising from the use of this software.
91275793eaSopenharmony_ci
92275793eaSopenharmony_ci  Permission is granted to anyone to use this software for any purpose,
93275793eaSopenharmony_ci  including commercial applications, and to alter it and redistribute it
94275793eaSopenharmony_ci  freely, subject to the following restrictions:
95275793eaSopenharmony_ci
96275793eaSopenharmony_ci  1. The origin of this software must not be misrepresented; you must not
97275793eaSopenharmony_ci     claim that you wrote the original software. If you use this software
98275793eaSopenharmony_ci     in a product, an acknowledgment in the product documentation would be
99275793eaSopenharmony_ci     appreciated but is not required.
100275793eaSopenharmony_ci  2. Altered source versions must be plainly marked as such, and must not be
101275793eaSopenharmony_ci     misrepresented as being the original software.
102275793eaSopenharmony_ci  3. This notice may not be removed or altered from any source distribution.
103275793eaSopenharmony_ci
104275793eaSopenharmony_ci  Jean-loup Gailly        Mark Adler
105275793eaSopenharmony_ci  jloup@gzip.org          madler@alumni.caltech.edu
106275793eaSopenharmony_ci
107275793eaSopenharmony_ciIf you use the zlib library in a product, we would appreciate *not* receiving
108275793eaSopenharmony_cilengthy legal documents to sign.  The sources are provided for free but without
109275793eaSopenharmony_ciwarranty of any kind.  The library has been entirely written by Jean-loup
110275793eaSopenharmony_ciGailly and Mark Adler; it does not include third-party code.  We make all
111275793eaSopenharmony_cicontributions to and distributions of this project solely in our personal
112275793eaSopenharmony_cicapacity, and are not conveying any rights to any intellectual property of
113275793eaSopenharmony_ciany third parties.
114275793eaSopenharmony_ci
115275793eaSopenharmony_ciIf you redistribute modified sources, we would appreciate that you include in
116275793eaSopenharmony_cithe file ChangeLog history information documenting your changes.  Please read
117275793eaSopenharmony_cithe FAQ for more information on the distribution of modified source versions.
118