xref: /titanic_51/usr/src/contrib/zlib/README (revision 64c3d15931c5518f89221f1e36d3015dbb54b9bd)
1ab9e68a2SToomas SoomeZLIB DATA COMPRESSION LIBRARY
2ab9e68a2SToomas Soome
3*64c3d159SToomas Soomezlib 1.2.12 is a general purpose data compression library.  All the code is
4ab9e68a2SToomas Soomethread safe.  The data format used by the zlib library is described by RFCs
5ab9e68a2SToomas Soome(Request for Comments) 1950 to 1952 in the files
6ab9e68a2SToomas Soomehttp://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
7ab9e68a2SToomas Soomerfc1952 (gzip format).
8ab9e68a2SToomas Soome
9ab9e68a2SToomas SoomeAll functions of the compression library are documented in the file zlib.h
10ab9e68a2SToomas Soome(volunteer to write man pages welcome, contact zlib@gzip.org).  A usage example
11ab9e68a2SToomas Soomeof the library is given in the file test/example.c which also tests that
12ab9e68a2SToomas Soomethe library is working correctly.  Another example is given in the file
13ab9e68a2SToomas Soometest/minigzip.c.  The compression library itself is composed of all source
14ab9e68a2SToomas Soomefiles in the root directory.
15ab9e68a2SToomas Soome
16ab9e68a2SToomas SoomeTo compile all files and run the test program, follow the instructions given at
17ab9e68a2SToomas Soomethe top of Makefile.in.  In short "./configure; make test", and if that goes
18ab9e68a2SToomas Soomewell, "make install" should work for most flavors of Unix.  For Windows, use
19ab9e68a2SToomas Soomeone of the special makefiles in win32/ or contrib/vstudio/ .  For VMS, use
20ab9e68a2SToomas Soomemake_vms.com.
21ab9e68a2SToomas Soome
22ab9e68a2SToomas SoomeQuestions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
23ab9e68a2SToomas Soome<info@winimage.com> for the Windows DLL version.  The zlib home page is
24ab9e68a2SToomas Soomehttp://zlib.net/ .  Before reporting a problem, please check this site to
25ab9e68a2SToomas Soomeverify that you have the latest version of zlib; otherwise get the latest
26ab9e68a2SToomas Soomeversion and check whether the problem still exists or not.
27ab9e68a2SToomas Soome
28ab9e68a2SToomas SoomePLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help.
29ab9e68a2SToomas Soome
30ab9e68a2SToomas SoomeMark Nelson <markn@ieee.org> wrote an article about zlib for the Jan.  1997
31ab9e68a2SToomas Soomeissue of Dr.  Dobb's Journal; a copy of the article is available at
32ab9e68a2SToomas Soomehttp://marknelson.us/1997/01/01/zlib-engine/ .
33ab9e68a2SToomas Soome
34*64c3d159SToomas SoomeThe changes made in version 1.2.12 are documented in the file ChangeLog.
35ab9e68a2SToomas Soome
36ab9e68a2SToomas SoomeUnsupported third party contributions are provided in directory contrib/ .
37ab9e68a2SToomas Soome
38ab9e68a2SToomas Soomezlib is available in Java using the java.util.zip package, documented at
39ab9e68a2SToomas Soomehttp://java.sun.com/developer/technicalArticles/Programming/compression/ .
40ab9e68a2SToomas Soome
41ab9e68a2SToomas SoomeA Perl interface to zlib written by Paul Marquess <pmqs@cpan.org> is available
42ab9e68a2SToomas Soomeat CPAN (Comprehensive Perl Archive Network) sites, including
43ab9e68a2SToomas Soomehttp://search.cpan.org/~pmqs/IO-Compress-Zlib/ .
44ab9e68a2SToomas Soome
45ab9e68a2SToomas SoomeA Python interface to zlib written by A.M. Kuchling <amk@amk.ca> is
46ab9e68a2SToomas Soomeavailable in Python 1.5 and later versions, see
47ab9e68a2SToomas Soomehttp://docs.python.org/library/zlib.html .
48ab9e68a2SToomas Soome
49ab9e68a2SToomas Soomezlib is built into tcl: http://wiki.tcl.tk/4610 .
50ab9e68a2SToomas Soome
51ab9e68a2SToomas SoomeAn experimental package to read and write files in .zip format, written on top
52ab9e68a2SToomas Soomeof zlib by Gilles Vollant <info@winimage.com>, is available in the
53ab9e68a2SToomas Soomecontrib/minizip directory of zlib.
54ab9e68a2SToomas Soome
55ab9e68a2SToomas Soome
56ab9e68a2SToomas SoomeNotes for some targets:
57ab9e68a2SToomas Soome
58ab9e68a2SToomas Soome- For Windows DLL versions, please see win32/DLL_FAQ.txt
59ab9e68a2SToomas Soome
60ab9e68a2SToomas Soome- For 64-bit Irix, deflate.c must be compiled without any optimization. With
61ab9e68a2SToomas Soome  -O, one libpng test fails. The test works in 32 bit mode (with the -n32
62ab9e68a2SToomas Soome  compiler flag). The compiler bug has been reported to SGI.
63ab9e68a2SToomas Soome
64ab9e68a2SToomas Soome- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works
65ab9e68a2SToomas Soome  when compiled with cc.
66ab9e68a2SToomas Soome
67ab9e68a2SToomas Soome- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is
68ab9e68a2SToomas Soome  necessary to get gzprintf working correctly. This is done by configure.
69ab9e68a2SToomas Soome
70ab9e68a2SToomas Soome- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
71ab9e68a2SToomas Soome  other compilers. Use "make test" to check your compiler.
72ab9e68a2SToomas Soome
73ab9e68a2SToomas Soome- gzdopen is not supported on RISCOS or BEOS.
74ab9e68a2SToomas Soome
75ab9e68a2SToomas Soome- For PalmOs, see http://palmzlib.sourceforge.net/
76ab9e68a2SToomas Soome
77ab9e68a2SToomas Soome
78ab9e68a2SToomas SoomeAcknowledgments:
79ab9e68a2SToomas Soome
80ab9e68a2SToomas Soome  The deflate format used by zlib was defined by Phil Katz.  The deflate and
81ab9e68a2SToomas Soome  zlib specifications were written by L.  Peter Deutsch.  Thanks to all the
82ab9e68a2SToomas Soome  people who reported problems and suggested various improvements in zlib; they
83ab9e68a2SToomas Soome  are too numerous to cite here.
84ab9e68a2SToomas Soome
85ab9e68a2SToomas SoomeCopyright notice:
86ab9e68a2SToomas Soome
87*64c3d159SToomas Soome (C) 1995-2022 Jean-loup Gailly and Mark Adler
88ab9e68a2SToomas Soome
89ab9e68a2SToomas Soome  This software is provided 'as-is', without any express or implied
90ab9e68a2SToomas Soome  warranty.  In no event will the authors be held liable for any damages
91ab9e68a2SToomas Soome  arising from the use of this software.
92ab9e68a2SToomas Soome
93ab9e68a2SToomas Soome  Permission is granted to anyone to use this software for any purpose,
94ab9e68a2SToomas Soome  including commercial applications, and to alter it and redistribute it
95ab9e68a2SToomas Soome  freely, subject to the following restrictions:
96ab9e68a2SToomas Soome
97ab9e68a2SToomas Soome  1. The origin of this software must not be misrepresented; you must not
98ab9e68a2SToomas Soome     claim that you wrote the original software. If you use this software
99ab9e68a2SToomas Soome     in a product, an acknowledgment in the product documentation would be
100ab9e68a2SToomas Soome     appreciated but is not required.
101ab9e68a2SToomas Soome  2. Altered source versions must be plainly marked as such, and must not be
102ab9e68a2SToomas Soome     misrepresented as being the original software.
103ab9e68a2SToomas Soome  3. This notice may not be removed or altered from any source distribution.
104ab9e68a2SToomas Soome
105ab9e68a2SToomas Soome  Jean-loup Gailly        Mark Adler
106ab9e68a2SToomas Soome  jloup@gzip.org          madler@alumni.caltech.edu
107ab9e68a2SToomas Soome
108ab9e68a2SToomas SoomeIf you use the zlib library in a product, we would appreciate *not* receiving
109ab9e68a2SToomas Soomelengthy legal documents to sign.  The sources are provided for free but without
110ab9e68a2SToomas Soomewarranty of any kind.  The library has been entirely written by Jean-loup
111*64c3d159SToomas SoomeGailly and Mark Adler; it does not include third-party code.  We make all
112*64c3d159SToomas Soomecontributions to and distributions of this project solely in our personal
113*64c3d159SToomas Soomecapacity, and are not conveying any rights to any intellectual property of
114*64c3d159SToomas Soomeany third parties.
115ab9e68a2SToomas Soome
116ab9e68a2SToomas SoomeIf you redistribute modified sources, we would appreciate that you include in
117ab9e68a2SToomas Soomethe file ChangeLog history information documenting your changes.  Please read
118ab9e68a2SToomas Soomethe FAQ for more information on the distribution of modified source versions.
119