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