1 .\" $NetBSD: zlib.3,v 1.1.1.1 2006/01/14 20:10:34 christos Exp $
3 .TH ZLIB 3 "18 July 2005"
5 zlib \- compression/decompression library
13 library is a general purpose data compression library.
14 The code is thread safe.
15 It provides in-memory compression and decompression functions,
16 including integrity checks of the uncompressed data.
17 This version of the library supports only one compression method (deflation)
18 but other algorithms will be added later
19 and will have the same stream interface.
21 Compression can be done in a single step if the buffers are large enough
22 (for example if an input file is mmap'ed),
23 or can be done by repeated calls of the compression function.
25 the application must provide more input and/or consume the output
26 (providing more output space) before each call.
28 The library also supports reading and writing files in
31 with an interface similar to that of stdio.
33 The library does not install any signal handler.
34 The decoder checks the consistency of the compressed data,
35 so the library should never crash even in case of corrupted input.
37 All functions of the compression library are documented in the file
39 The distribution source includes examples of use of the library
45 Changes to this version are documented in the file
47 that accompanies the source,
48 and are concerned primarily with bug fixes and portability enhancements.
50 A Java implementation of
52 is available in the Java Development Kit 1.1:
54 http://www.javasoft.com/products/JDK/1.1/docs/api/Package-java.util.zip.html
58 written by Paul Marquess (pmqs@cpan.org),
59 is available at CPAN (Comprehensive Perl Archive Network) sites,
62 http://www.cpan.org/modules/by-module/Compress/
66 written by A.M. Kuchling (amk@magnet.com),
67 is available in Python 1.5 and later versions:
69 http://www.python.org/doc/lib/module-zlib.html
75 written by Andreas Kupries (a.kupries@westend.com),
78 http://www.westend.com/~kupries/doc/trf/man/man.html
80 An experimental package to read and write files in .zip format,
83 by Gilles Vollant (info@winimage.com),
86 http://www.winimage.com/zLibDll/unzip.html
95 web site can be found at either of these locations:
99 http://www.gzip.org/zlib/
101 The data format used by the zlib library is described by RFC
102 (Request for Comments) 1950 to 1952 in the files:
104 http://www.ietf.org/rfc/rfc1950.txt (concerning zlib format)
106 http://www.ietf.org/rfc/rfc1951.txt (concerning deflate format)
108 http://www.ietf.org/rfc/rfc1952.txt (concerning gzip format)
110 These documents are also available in other formats from:
112 ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
114 Mark Nelson (markn@ieee.org) wrote an article about
116 for the Jan. 1997 issue of Dr. Dobb's Journal;
117 a copy of the article is available at:
119 http://dogma.net/markn/articles/zlibtool/zlibtool.htm
120 .SH "REPORTING PROBLEMS"
121 Before reporting a problem,
124 web site to verify that you have the latest version of
127 obtain the latest version and see if the problem still exists.
132 http://www.gzip.org/zlib/zlib_faq.html
134 before asking for help.
135 Send questions and/or comments to zlib@gzip.org,
136 or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
139 Copyright (C) 1995-2005 Jean-loup Gailly (jloup@gzip.org)
140 and Mark Adler (madler@alumni.caltech.edu).
142 This software is provided "as-is,"
143 without any express or implied warranty.
144 In no event will the authors be held liable for any damages
145 arising from the use of this software.
146 See the distribution directory with respect to requirements
147 governing redistribution.
148 The deflate format used by
150 was defined by Phil Katz.
153 specifications were written by L. Peter Deutsch.
154 Thanks to all the people who reported problems and suggested various
157 who are too numerous to cite here.
159 UNIX manual page by R. P. C. Rodgers,
160 U.S. National Library of Medicine (rodgers@nlm.nih.gov).