xref: /xnu-8792.41.9/libkern/zlib/README (revision 5c2921b07a2480ab43ec66f5b9e41cb872bc554f)
1*5c2921b0SApple OSS DistributionsZLIB DATA COMPRESSION LIBRARY
2*5c2921b0SApple OSS Distributions
3*5c2921b0SApple OSS Distributionszlib 1.2.3 is a general purpose data compression library.  All the code is
4*5c2921b0SApple OSS Distributionsthread safe.  The data format used by the zlib library is described by RFCs
5*5c2921b0SApple OSS Distributions(Request for Comments) 1950 to 1952 in the files
6*5c2921b0SApple OSS Distributionshttp://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
7*5c2921b0SApple OSS Distributionsand rfc1952.txt (gzip format). These documents are also available in other
8*5c2921b0SApple OSS Distributionsformats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
9*5c2921b0SApple OSS Distributions
10*5c2921b0SApple OSS DistributionsAll functions of the compression library are documented in the file zlib.h
11*5c2921b0SApple OSS Distributions(volunteer to write man pages welcome, contact [email protected]). A usage example
12*5c2921b0SApple OSS Distributionsof the library is given in the file example.c which also tests that the library
13*5c2921b0SApple OSS Distributionsis working correctly. Another example is given in the file minigzip.c. The
14*5c2921b0SApple OSS Distributionscompression library itself is composed of all source files except example.c and
15*5c2921b0SApple OSS Distributionsminigzip.c.
16*5c2921b0SApple OSS Distributions
17*5c2921b0SApple OSS DistributionsTo compile all files and run the test program, follow the instructions given at
18*5c2921b0SApple OSS Distributionsthe top of Makefile. In short "make test; make install" should work for most
19*5c2921b0SApple OSS Distributionsmachines. For Unix: "./configure; make test; make install". For MSDOS, use one
20*5c2921b0SApple OSS Distributionsof the special makefiles such as Makefile.msc. For VMS, use make_vms.com.
21*5c2921b0SApple OSS Distributions
22*5c2921b0SApple OSS DistributionsQuestions about zlib should be sent to <[email protected]>, or to Gilles Vollant
23*5c2921b0SApple OSS Distributions<[email protected]> for the Windows DLL version. The zlib home page is
24*5c2921b0SApple OSS Distributionshttp://www.zlib.org or http://www.gzip.org/zlib/ Before reporting a problem,
25*5c2921b0SApple OSS Distributionsplease check this site to verify that you have the latest version of zlib;
26*5c2921b0SApple OSS Distributionsotherwise get the latest version and check whether the problem still exists or
27*5c2921b0SApple OSS Distributionsnot.
28*5c2921b0SApple OSS Distributions
29*5c2921b0SApple OSS DistributionsPLEASE read the zlib FAQ http://www.gzip.org/zlib/zlib_faq.html before asking
30*5c2921b0SApple OSS Distributionsfor help.
31*5c2921b0SApple OSS Distributions
32*5c2921b0SApple OSS DistributionsMark Nelson <[email protected]> wrote an article about zlib for the Jan. 1997
33*5c2921b0SApple OSS Distributionsissue of  Dr. Dobb's Journal; a copy of the article is available in
34*5c2921b0SApple OSS Distributionshttp://dogma.net/markn/articles/zlibtool/zlibtool.htm
35*5c2921b0SApple OSS Distributions
36*5c2921b0SApple OSS DistributionsThe changes made in version 1.2.3 are documented in the file ChangeLog.
37*5c2921b0SApple OSS Distributions
38*5c2921b0SApple OSS DistributionsUnsupported third party contributions are provided in directory "contrib".
39*5c2921b0SApple OSS Distributions
40*5c2921b0SApple OSS DistributionsA Java implementation of zlib is available in the Java Development Kit
41*5c2921b0SApple OSS Distributionshttp://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/package-summary.html
42*5c2921b0SApple OSS DistributionsSee the zlib home page http://www.zlib.org for details.
43*5c2921b0SApple OSS Distributions
44*5c2921b0SApple OSS DistributionsA Perl interface to zlib written by Paul Marquess <[email protected]> is in the
45*5c2921b0SApple OSS DistributionsCPAN (Comprehensive Perl Archive Network) sites
46*5c2921b0SApple OSS Distributionshttp://www.cpan.org/modules/by-module/Compress/
47*5c2921b0SApple OSS Distributions
48*5c2921b0SApple OSS DistributionsA Python interface to zlib written by A.M. Kuchling <[email protected]> is
49*5c2921b0SApple OSS Distributionsavailable in Python 1.5 and later versions, see
50*5c2921b0SApple OSS Distributionshttp://www.python.org/doc/lib/module-zlib.html
51*5c2921b0SApple OSS Distributions
52*5c2921b0SApple OSS DistributionsA zlib binding for TCL written by Andreas Kupries <[email protected]> is
53*5c2921b0SApple OSS Distributionsavaillable at http://www.oche.de/~akupries/soft/trf/trf_zip.html
54*5c2921b0SApple OSS Distributions
55*5c2921b0SApple OSS DistributionsAn experimental package to read and write files in .zip format, written on top
56*5c2921b0SApple OSS Distributionsof zlib by Gilles Vollant <[email protected]>, is available in the
57*5c2921b0SApple OSS Distributionscontrib/minizip directory of zlib.
58*5c2921b0SApple OSS Distributions
59*5c2921b0SApple OSS Distributions
60*5c2921b0SApple OSS DistributionsNotes for some targets:
61*5c2921b0SApple OSS Distributions
62*5c2921b0SApple OSS Distributions- For Windows DLL versions, please see win32/DLL_FAQ.txt
63*5c2921b0SApple OSS Distributions
64*5c2921b0SApple OSS Distributions- For 64-bit Irix, deflate.c must be compiled without any optimization. With
65*5c2921b0SApple OSS Distributions  -O, one libpng test fails. The test works in 32 bit mode (with the -n32
66*5c2921b0SApple OSS Distributions  compiler flag). The compiler bug has been reported to SGI.
67*5c2921b0SApple OSS Distributions
68*5c2921b0SApple OSS Distributions- zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works
69*5c2921b0SApple OSS Distributions  when compiled with cc.
70*5c2921b0SApple OSS Distributions
71*5c2921b0SApple OSS Distributions- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is
72*5c2921b0SApple OSS Distributions  necessary to get gzprintf working correctly. This is done by configure.
73*5c2921b0SApple OSS Distributions
74*5c2921b0SApple OSS Distributions- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
75*5c2921b0SApple OSS Distributions  other compilers. Use "make test" to check your compiler.
76*5c2921b0SApple OSS Distributions
77*5c2921b0SApple OSS Distributions- gzdopen is not supported on RISCOS, BEOS and by some Mac compilers.
78*5c2921b0SApple OSS Distributions
79*5c2921b0SApple OSS Distributions- For PalmOs, see http://palmzlib.sourceforge.net/
80*5c2921b0SApple OSS Distributions
81*5c2921b0SApple OSS Distributions- When building a shared, i.e. dynamic library on Mac OS X, the library must be
82*5c2921b0SApple OSS Distributions  installed before testing (do "make install" before "make test"), since the
83*5c2921b0SApple OSS Distributions  library location is specified in the library.
84*5c2921b0SApple OSS Distributions
85*5c2921b0SApple OSS Distributions
86*5c2921b0SApple OSS DistributionsAcknowledgments:
87*5c2921b0SApple OSS Distributions
88*5c2921b0SApple OSS Distributions  The deflate format used by zlib was defined by Phil Katz. The deflate
89*5c2921b0SApple OSS Distributions  and zlib specifications were written by L. Peter Deutsch. Thanks to all the
90*5c2921b0SApple OSS Distributions  people who reported problems and suggested various improvements in zlib;
91*5c2921b0SApple OSS Distributions  they are too numerous to cite here.
92*5c2921b0SApple OSS Distributions
93*5c2921b0SApple OSS DistributionsCopyright notice:
94*5c2921b0SApple OSS Distributions
95*5c2921b0SApple OSS Distributions (C) 1995-2004 Jean-loup Gailly and Mark Adler
96*5c2921b0SApple OSS Distributions
97*5c2921b0SApple OSS Distributions  This software is provided 'as-is', without any express or implied
98*5c2921b0SApple OSS Distributions  warranty.  In no event will the authors be held liable for any damages
99*5c2921b0SApple OSS Distributions  arising from the use of this software.
100*5c2921b0SApple OSS Distributions
101*5c2921b0SApple OSS Distributions  Permission is granted to anyone to use this software for any purpose,
102*5c2921b0SApple OSS Distributions  including commercial applications, and to alter it and redistribute it
103*5c2921b0SApple OSS Distributions  freely, subject to the following restrictions:
104*5c2921b0SApple OSS Distributions
105*5c2921b0SApple OSS Distributions  1. The origin of this software must not be misrepresented; you must not
106*5c2921b0SApple OSS Distributions     claim that you wrote the original software. If you use this software
107*5c2921b0SApple OSS Distributions     in a product, an acknowledgment in the product documentation would be
108*5c2921b0SApple OSS Distributions     appreciated but is not required.
109*5c2921b0SApple OSS Distributions  2. Altered source versions must be plainly marked as such, and must not be
110*5c2921b0SApple OSS Distributions     misrepresented as being the original software.
111*5c2921b0SApple OSS Distributions  3. This notice may not be removed or altered from any source distribution.
112*5c2921b0SApple OSS Distributions
113*5c2921b0SApple OSS Distributions  Jean-loup Gailly        Mark Adler
114*5c2921b0SApple OSS Distributions  [email protected]          [email protected]
115*5c2921b0SApple OSS Distributions
116*5c2921b0SApple OSS DistributionsIf you use the zlib library in a product, we would appreciate *not*
117*5c2921b0SApple OSS Distributionsreceiving lengthy legal documents to sign. The sources are provided
118*5c2921b0SApple OSS Distributionsfor free but without warranty of any kind.  The library has been
119*5c2921b0SApple OSS Distributionsentirely written by Jean-loup Gailly and Mark Adler; it does not
120*5c2921b0SApple OSS Distributionsinclude third-party code.
121*5c2921b0SApple OSS Distributions
122*5c2921b0SApple OSS DistributionsIf you redistribute modified sources, we would appreciate that you include
123*5c2921b0SApple OSS Distributionsin the file ChangeLog history information documenting your changes. Please
124*5c2921b0SApple OSS Distributionsread the FAQ for more information on the distribution of modified source
125*5c2921b0SApple OSS Distributionsversions.
126