diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 45 |
1 files changed, 26 insertions, 19 deletions
@@ -1,15 +1,16 @@ | |||
1 | zlib 1.0.7 is a general purpose data compression library. All the code | 1 | zlib 1.0.8 is a general purpose data compression library. All the code |
2 | is reentrant (thread safe). The data format used by the zlib library | 2 | is thread safe. The data format used by the zlib library |
3 | is described by RFCs (Request for Comments) 1950 to 1952 in the files | 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 | 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 | 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 | 6 | other formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html |
7 | 7 | ||
8 | All functions of the compression library are documented in the file | 8 | All functions of the compression library are documented in the file zlib.h |
9 | zlib.h. A usage example of the library is given in the file example.c | 9 | (volunteer to write man pages welcome, contact jloup@gzip.org). A usage |
10 | which also tests that the library is working correctly. Another | 10 | example of the library is given in the file example.c which also tests that |
11 | example is given in the file minigzip.c. The compression library itself | 11 | the library is working correctly. Another example is given in the file |
12 | is composed of all source files except example.c and minigzip.c. | 12 | minigzip.c. The compression library itself is composed of all source files |
13 | except example.c and minigzip.c. | ||
13 | 14 | ||
14 | To compile all files and run the test program, follow the instructions | 15 | To compile all files and run the test program, follow the instructions |
15 | given at the top of Makefile. In short "make test; make install" | 16 | given at the top of Makefile. In short "make test; make install" |
@@ -24,18 +25,18 @@ Mark Nelson wrote an article about zlib for the Jan. 1997 issue of | |||
24 | Dr. Dobb's Journal; a copy of the article is available in | 25 | Dr. Dobb's Journal; a copy of the article is available in |
25 | http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm | 26 | http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm |
26 | 27 | ||
27 | The changes made in version 1.0.7 are documented in the file ChangeLog. | 28 | The changes made in version 1.0.8 are documented in the file ChangeLog. |
28 | The main changes since 1.0.6 are: | 29 | The main changes since 1.0.7 are: |
29 | 30 | ||
30 | - fix gzseek which was broken in write mode | 31 | - fixed offsets in contrib/asm386/gvmat32.asm (Gilles Vollant) |
31 | - return error for gzseek to negative absolute position | 32 | - fix gzgetc and gzputc for big endian systems (Markus Oberhumer) |
32 | - fix configure for Linux (Chun-Chung Chen) | 33 | - added compress2() to allow setting the compression level |
33 | - increase stack space for MSC (Tim Wegner) | 34 | - include sys/types.h to get off_t on some systems (Marc Lehmann & QingLong) |
34 | - get_crc_table and inflateSyncPoint are EXPORTed (Gilles Vollant) | 35 | - use constant arrays for the static trees in trees.c instead of computing |
35 | - define EXPORTVA for gzprintf (Gilles Vollant) | 36 | them at run time (thanks to Ken Raeburn for this suggestion). To create |
36 | - added mini man page zlib.3 (Rick Rodgers) [volunteers to write full | 37 | trees.h, compile with GEN_TREES_H and run "make test". |
37 | man pages from zlib.h most welcome. write to jloup@gzip.org] | 38 | - check return code of example in "make test" and display result |
38 | - for contrib/untgz, fix makedir() and improve Makefile | 39 | - pass minigzip command line options to file_compress |
39 | 40 | ||
40 | Unsupported third party contributions are provided in directory "contrib". | 41 | Unsupported third party contributions are provided in directory "contrib". |
41 | 42 | ||
@@ -64,6 +65,9 @@ Notes for some targets: | |||
64 | See contrib/visual-basic.txt for more information. | 65 | See contrib/visual-basic.txt for more information. |
65 | I don't know how to handle structures in Visual Basic, sorry. | 66 | I don't know how to handle structures in Visual Basic, sorry. |
66 | 67 | ||
68 | - "make test" fails on Solaris 2.6 with gcc 2.8.0. It works with cc and | ||
69 | with gcc 2.7.2.1. | ||
70 | |||
67 | - For 64-bit Irix, deflate.c must be compiled without any optimization. | 71 | - For 64-bit Irix, deflate.c must be compiled without any optimization. |
68 | With -O, one libpng test fails. The test works in 32 bit mode (with | 72 | With -O, one libpng test fails. The test works in 32 bit mode (with |
69 | the -n32 compiler flag). The compiler bug has been reported to SGI. | 73 | the -n32 compiler flag). The compiler bug has been reported to SGI. |
@@ -74,7 +78,10 @@ Notes for some targets: | |||
74 | - zlib doesn't work on HP-UX 9.05 with one cc compiler (the one not | 78 | - zlib doesn't work on HP-UX 9.05 with one cc compiler (the one not |
75 | accepting the -O option). It works with the other cc compiler. | 79 | accepting the -O option). It works with the other cc compiler. |
76 | 80 | ||
77 | - gzdopen is not supported on RISCOS | 81 | - For shared memory multiprocessors, the decompression code assumes that |
82 | writes to pointers are atomic. | ||
83 | |||
84 | - gzdopen is not supported on RISCOS, BEOS and Mac | ||
78 | 85 | ||
79 | - For Turbo C the small model is supported only with reduced performance to | 86 | - For Turbo C the small model is supported only with reduced performance to |
80 | avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 | 87 | avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3 |