README 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. zlib 1.0.4 is a general purpose data compression library. All the code
  2. is reentrant (thread safe). The data format used by the zlib library
  3. is described by RFCs (Request for Comments) 1950 to 1952 in the files
  4. ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate
  5. format) and rfc1952.txt (gzip format). These documents are also available in
  6. other formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
  7. All functions of the compression library are documented in the file
  8. zlib.h. A usage example of the library is given in the file example.c
  9. which also tests that the library is working correctly. Another
  10. example is given in the file minigzip.c. The compression library itself
  11. is composed of all source files except example.c and minigzip.c.
  12. To compile all files and run the test program, follow the instructions
  13. given at the top of Makefile. In short "make test; make install"
  14. should work for most machines. For MSDOS, use one of the special
  15. makefiles such as Makefile.msc; for VMS, use Make_vms.com or descrip.mms.
  16. Questions about zlib should be sent to <zlib@quest.jpl.nasa.gov> or,
  17. if this fails, to the addresses given below in the Copyright section.
  18. The zlib home page is http://quest.jpl.nasa.gov/zlib/
  19. The changes made in version 1.0.4 are documented in the file ChangeLog.
  20. The main changes since 1.0.3 are:
  21. - In very rare conditions, deflate(s, Z_FINISH) could fail to produce an EOF
  22. bit, so the decompressor could decompress all the correct data but went
  23. on to attempt decompressing extra garbage data. This affected minigzip too.
  24. - zlibVersion and gzerror return const char* (needed for DLL)
  25. - port to RISCOS (no fdopen, no multiple dots, no unlink, no fileno)
  26. A Perl interface to zlib written by Paul Marquess <pmarquess@bfsec.bt.co.uk>
  27. is in the CPAN (Comprehensive Perl Archive Network) sites, such as:
  28. ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/Compress/Compress-Zlib*
  29. Notes for some targets:
  30. - For Turbo C the small model is supported only with reduced performance to
  31. avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
  32. - For 64-bit Iris, deflate.c must be compiled without any optimization.
  33. With -O, one libpng test fails. The test works in 32 bit mode (with
  34. the -32 compiler flag). The compiler bug has been reported to SGI.
  35. - zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1
  36. it works when compiled with cc.
  37. - zlib doesn't work on HP-UX 9.05 with one cc compiler (the one not
  38. accepting the -O option). It works with the other cc compiler.
  39. - To build a Windows DLL version, include in a DLL project zlib.def, zlib.rc
  40. and all .c files except example.c and minigzip.c; compile with -DZLIB_DLL
  41. For help on building a zlib DLL, contact Alessandro Iacopetti
  42. <iaco@email.alessandria.alpcom.it> http://lisa.unial.it/iaco ,
  43. or contact Brad Clarke <bclarke@cyberus.ca>.
  44. - gzdopen is not supported on RISCOS
  45. Acknowledgments:
  46. The deflate format used by zlib was defined by Phil Katz. The deflate
  47. and zlib specifications were written by Peter Deutsch. Thanks to all the
  48. people who reported problems and suggested various improvements in zlib;
  49. they are too numerous to cite here.
  50. Copyright notice:
  51. (C) 1995-1996 Jean-loup Gailly and Mark Adler
  52. This software is provided 'as-is', without any express or implied
  53. warranty. In no event will the authors be held liable for any damages
  54. arising from the use of this software.
  55. Permission is granted to anyone to use this software for any purpose,
  56. including commercial applications, and to alter it and redistribute it
  57. freely, subject to the following restrictions:
  58. 1. The origin of this software must not be misrepresented; you must not
  59. claim that you wrote the original software. If you use this software
  60. in a product, an acknowledgment in the product documentation would be
  61. appreciated but is not required.
  62. 2. Altered source versions must be plainly marked as such, and must not be
  63. misrepresented as being the original software.
  64. 3. This notice may not be removed or altered from any source distribution.
  65. Jean-loup Gailly Mark Adler
  66. gzip@prep.ai.mit.edu madler@alumni.caltech.edu
  67. If you use the zlib library in a product, we would appreciate *not*
  68. receiving lengthy legal documents to sign. The sources are provided
  69. for free but without warranty of any kind. The library has been
  70. entirely written by Jean-loup Gailly and Mark Adler; it does not
  71. include third-party code.
  72. If you redistribute modified sources, we would appreciate that you include
  73. in the file ChangeLog history information documenting your changes.