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