zlib.3 4.38 KB
Newer Older
1
.TH ZLIB 3 "18 July 2005"
Tom Tromey committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15
.SH NAME
zlib \- compression/decompression library
.SH SYNOPSIS
[see
.I zlib.h
for full description]
.SH DESCRIPTION
The
.I zlib
library is a general purpose data compression library.
The code is thread safe.
It provides in-memory compression and decompression functions,
including integrity checks of the uncompressed data.
This version of the library supports only one compression method (deflation)
16 17
but other algorithms will be added later
and will have the same stream interface.
Tom Tromey committed
18 19 20 21 22 23 24 25 26
.LP
Compression can be done in a single step if the buffers are large enough
(for example if an input file is mmap'ed),
or can be done by repeated calls of the compression function.
In the latter case,
the application must provide more input and/or consume the output
(providing more output space) before each call.
.LP
The library also supports reading and writing files in
27
.IR gzip (1)
Tom Tromey committed
28 29 30
(.gz) format
with an interface similar to that of stdio.
.LP
31 32 33
The library does not install any signal handler.
The decoder checks the consistency of the compressed data,
so the library should never crash even in case of corrupted input.
Tom Tromey committed
34 35
.LP
All functions of the compression library are documented in the file
36
.IR zlib.h .
Tom Tromey committed
37
The distribution source includes examples of use of the library
38
in the files
Tom Tromey committed
39 40 41 42
.I example.c
and
.IR minigzip.c .
.LP
43 44 45 46 47
Changes to this version are documented in the file
.I ChangeLog
that accompanies the source,
and are concerned primarily with bug fixes and portability enhancements.
.LP
Tom Tromey committed
48
A Java implementation of
49 50
.I zlib
is available in the Java Development Kit 1.1:
Tom Tromey committed
51 52 53 54 55
.IP
http://www.javasoft.com/products/JDK/1.1/docs/api/Package-java.util.zip.html
.LP
A Perl interface to
.IR zlib ,
56
written by Paul Marquess (pmqs@cpan.org),
Tom Tromey committed
57
is available at CPAN (Comprehensive Perl Archive Network) sites,
58
including:
Tom Tromey committed
59
.IP
60
http://www.cpan.org/modules/by-module/Compress/
Tom Tromey committed
61 62
.LP
A Python interface to
63 64 65
.IR zlib ,
written by A.M. Kuchling (amk@magnet.com),
is available in Python 1.5 and later versions:
Tom Tromey committed
66
.IP
67 68 69 70 71 72 73 74
http://www.python.org/doc/lib/module-zlib.html
.LP
A
.I zlib
binding for
.IR tcl (1),
written by Andreas Kupries (a.kupries@westend.com),
is availlable at:
Tom Tromey committed
75
.IP
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
http://www.westend.com/~kupries/doc/trf/man/man.html
.LP
An experimental package to read and write files in .zip format,
written on top of
.I zlib
by Gilles Vollant (info@winimage.com),
is available at:
.IP
http://www.winimage.com/zLibDll/unzip.html
and also in the
.I contrib/minizip
directory of the main
.I zlib
web site.
.SH "SEE ALSO"
The
.I zlib
web site can be found at either of these locations:
Tom Tromey committed
94
.IP
95 96 97
http://www.zlib.org
.br
http://www.gzip.org/zlib/
Tom Tromey committed
98 99
.LP
The data format used by the zlib library is described by RFC
100
(Request for Comments) 1950 to 1952 in the files:
Tom Tromey committed
101
.IP
102
http://www.ietf.org/rfc/rfc1950.txt (concerning zlib format)
Tom Tromey committed
103
.br
104
http://www.ietf.org/rfc/rfc1951.txt (concerning deflate format)
Tom Tromey committed
105
.br
106
http://www.ietf.org/rfc/rfc1952.txt (concerning gzip format)
Tom Tromey committed
107 108 109 110
.LP
These documents are also available in other formats from:
.IP
ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
.LP
Mark Nelson (markn@ieee.org) wrote an article about
.I zlib
for the Jan. 1997 issue of  Dr. Dobb's Journal;
a copy of the article is available at:
.IP
http://dogma.net/markn/articles/zlibtool/zlibtool.htm
.SH "REPORTING PROBLEMS"
Before reporting a problem,
please check the
.I zlib
web site to verify that you have the latest version of
.IR zlib ;
otherwise,
obtain the latest version and see if the problem still exists.
Please read the
.I zlib
FAQ at:
.IP
http://www.gzip.org/zlib/zlib_faq.html
.LP
before asking for help.
Send questions and/or comments to zlib@gzip.org,
or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
Tom Tromey committed
135
.SH AUTHORS
136 137
Version 1.2.3
Copyright (C) 1995-2005 Jean-loup Gailly (jloup@gzip.org)
Tom Tromey committed
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
and Mark Adler (madler@alumni.caltech.edu).
.LP
This software is provided "as-is,"
without any express or implied warranty.
In no event will the authors be held liable for any damages
arising from the use of this software.
See the distribution directory with respect to requirements
governing redistribution.
The deflate format used by
.I zlib
was defined by Phil Katz.
The deflate and
.I zlib
specifications were written by L. Peter Deutsch.
Thanks to all the people who reported problems and suggested various
improvements in
.IR zlib ;
who are too numerous to cite here.
.LP
UNIX manual page by R. P. C. Rodgers,
U.S. National Library of Medicine (rodgers@nlm.nih.gov).
.\" end of man page