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