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