summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:38 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:34:38 -0700
commitf4498bea2865325dce71189af47a047529229f22 (patch)
tree06278f21d1bcf0f0860ff792af1cb376b1331231
parent7147f24cd7b27dd95f6e841851a111cb311a9c07 (diff)
downloadzlib-1.2.4.3.tar.gz
zlib-1.2.4.3.tar.bz2
zlib-1.2.4.3.zip
zlib 1.2.4.3v1.2.4.3
-rw-r--r--ChangeLog11
-rw-r--r--Makefile.in2
-rw-r--r--README4
-rwxr-xr-xconfigure34
-rw-r--r--contrib/delphi/ZLib.pas2
-rw-r--r--contrib/dotzlib/DotZLib/UnitTests.cs4
-rw-r--r--contrib/infback9/inftree9.c4
-rw-r--r--contrib/pascal/zlibpas.pas2
-rw-r--r--contrib/vstudio/vc10/zlib.rc6
-rw-r--r--contrib/vstudio/vc9/zlib.rc6
-rw-r--r--deflate.c2
-rw-r--r--gzguts.h16
-rw-r--r--gzlib.c2
-rw-r--r--inftrees.c4
-rw-r--r--minigzip.c2
-rw-r--r--qnx/package.qpg10
-rw-r--r--treebuild.xml4
-rw-r--r--zconf.h8
-rw-r--r--zconf.h.cmakein8
-rw-r--r--zconf.h.in8
-rw-r--r--zlib.34
-rw-r--r--zlib.3.pdfbin8701 -> 8681 bytes
-rw-r--r--zlib.h44
-rw-r--r--zutil.h8
24 files changed, 122 insertions, 73 deletions
diff --git a/ChangeLog b/ChangeLog
index 33a740d..898c197 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,17 @@
1 1
2 ChangeLog file for zlib 2 ChangeLog file for zlib
3 3
4Changes in 1.2.4.3 (10 Apr 2010)
5- Only use CROSS_PREFIX in configure for ar and ranlib if they exist
6- Use CROSS_PREFIX for nm [Bar-Lev]
7- Assume _LARGEFILE64_SOURCE defined is equivalent to true
8- Avoid use of undefined symbols in #if with && and ||
9- Make *64 prototypes in gzguts.h consistent with functions
10- Add -shared load option for MinGW in configure [Bowler]
11- Move z_off64_t to public interface, use instead of off64_t
12- Remove ! from shell test in configure (not portable to Solaris)
13- Change +0 macro tests to -0 for possibly increased portability
14
4Changes in 1.2.4.2 (9 Apr 2010) 15Changes in 1.2.4.2 (9 Apr 2010)
5- Add consistent carriage returns to readme.txt's in masmx86 and masmx64 16- Add consistent carriage returns to readme.txt's in masmx86 and masmx64
6- Really provide prototypes for *64 functions when building without LFS 17- Really provide prototypes for *64 functions when building without LFS
diff --git a/Makefile.in b/Makefile.in
index e5bc2a3..aca5924 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -32,7 +32,7 @@ CPP=$(CC) -E
32 32
33STATICLIB=libz.a 33STATICLIB=libz.a
34SHAREDLIB=libz.so 34SHAREDLIB=libz.so
35SHAREDLIBV=libz.so.1.2.4.2 35SHAREDLIBV=libz.so.1.2.4.3
36SHAREDLIBM=libz.so.1 36SHAREDLIBM=libz.so.1
37LIBS=$(STATICLIB) $(SHAREDLIBV) 37LIBS=$(STATICLIB) $(SHAREDLIBV)
38 38
diff --git a/README b/README
index 3c4f36e..68ff992 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
1ZLIB DATA COMPRESSION LIBRARY 1ZLIB DATA COMPRESSION LIBRARY
2 2
3zlib 1.2.4.2 is a general purpose data compression library. All the code is 3zlib 1.2.4.3 is a general purpose data compression library. All the code is
4thread safe. The data format used by the zlib library is described by RFCs 4thread safe. The data format used by the zlib library is described by RFCs
5(Request for Comments) 1950 to 1952 in the files 5(Request for Comments) 1950 to 1952 in the files
6http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) 6http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
@@ -31,7 +31,7 @@ Mark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997
31issue of Dr. Dobb's Journal; a copy of the article is available at 31issue of Dr. Dobb's Journal; a copy of the article is available at
32http://marknelson.us/1997/01/01/zlib-engine/ . 32http://marknelson.us/1997/01/01/zlib-engine/ .
33 33
34The changes made in version 1.2.4.2 are documented in the file ChangeLog. 34The changes made in version 1.2.4.3 are documented in the file ChangeLog.
35 35
36Unsupported third party contributions are provided in directory contrib/ . 36Unsupported third party contributions are provided in directory contrib/ .
37 37
diff --git a/configure b/configure
index 577cba7..7ff484b 100755
--- a/configure
+++ b/configure
@@ -13,11 +13,21 @@
13# If you have problems, try without defining CC and CFLAGS before reporting 13# If you have problems, try without defining CC and CFLAGS before reporting
14# an error. 14# an error.
15 15
16# make sure we are running under a compatible shell (stolen from ffmpeg and libnfo) 16# make sure we are running under a compatible shell (stolen from ffmpeg and libnfo,
17# except their's wasn't portable enough due to ! usage, so this is better)
17if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then 18if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then
18 unset foo 19 unset foo
19 (: ${foo%%bar}) 2>/dev/null && ! (: ${foo?}) 2>/dev/null 20 try=0
21 (: ${foo%%bar}) 2>/dev/null
20 if test "$?" -ne 0; then 22 if test "$?" -ne 0; then
23 try=1
24 else
25 (: ${foo?}) 2>/dev/null
26 if test "$?" -eq 0; then
27 try=1
28 fi
29 fi
30 if test "$try" -eq 1; then
21 ZLIB_CONFIGURE_EXEC=1 31 ZLIB_CONFIGURE_EXEC=1
22 export ZLIB_CONFIGURE_EXEC 32 export ZLIB_CONFIGURE_EXEC
23 type "bash" > /dev/null 2>&1 && exec bash "$0" "$@" 33 type "bash" > /dev/null 2>&1 && exec bash "$0" "$@"
@@ -29,6 +39,7 @@ if test "0$ZLIB_CONFIGURE_EXEC" -lt 1; then
29# exit 1 39# exit 1
30# we could give up here, but go ahead and give their old sh a try 40# we could give up here, but go ahead and give their old sh a try
31 fi 41 fi
42 unset try
32fi 43fi
33 44
34if [ -n "${CHOST}" ]; then 45if [ -n "${CHOST}" ]; then
@@ -42,10 +53,22 @@ VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
42VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h` 53VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < zlib.h`
43VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h` 54VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h`
44VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h` 55VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h`
45AR=${AR-"${CROSS_PREFIX}ar"} 56if [ -x "${CROSS_PREFIX}ar" ]; then
57 AR=${AR-"${CROSS_PREFIX}ar"}
58else
59 AR=${AR-"ar"}
60fi
46AR_RC="${AR} rc" 61AR_RC="${AR} rc"
47RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"} 62if [ -x "${CROSS_PREFIX}ranlib" ]; then
48NM=${NM-"nm"} 63 RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"}
64else
65 RANLIB=${RANLIB-"ranlib"}
66fi
67if [ -x "${CROSS_PREFIX}nm" ]; then
68 NM=${NM-"${CROSS_PREFIX}nm"}
69else
70 NM=${NM-"nm"}
71fi
49LDCONFIG=${LDCONFIG-"ldconfig"} 72LDCONFIG=${LDCONFIG-"ldconfig"}
50LDSHAREDLIBC="${LDSHAREDLIBC-"-lc"}" 73LDSHAREDLIBC="${LDSHAREDLIBC-"-lc"}"
51prefix=${prefix-/usr/local} 74prefix=${prefix-/usr/local}
@@ -121,6 +144,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
121 CYGWIN* | Cygwin* | cygwin* | OS/2*) 144 CYGWIN* | Cygwin* | cygwin* | OS/2*)
122 EXE='.exe' ;; 145 EXE='.exe' ;;
123 MINGW*) 146 MINGW*)
147 LDSHARED=${LDSHARED-"$cc -shared"}
124 LDSHAREDLIBC="" 148 LDSHAREDLIBC=""
125 EXE='.exe' ;; 149 EXE='.exe' ;;
126 QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 150 QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
diff --git a/contrib/delphi/ZLib.pas b/contrib/delphi/ZLib.pas
index 72ef99f..6ed89ce 100644
--- a/contrib/delphi/ZLib.pas
+++ b/contrib/delphi/ZLib.pas
@@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
152 const OutBuf: Pointer; BufSize: Integer); 152 const OutBuf: Pointer; BufSize: Integer);
153 153
154const 154const
155 zlib_version = '1.2.4.2'; 155 zlib_version = '1.2.4.3';
156 156
157type 157type
158 EZlibError = class(Exception); 158 EZlibError = class(Exception);
diff --git a/contrib/dotzlib/DotZLib/UnitTests.cs b/contrib/dotzlib/DotZLib/UnitTests.cs
index 6cfdaa7..0668c9f 100644
--- a/contrib/dotzlib/DotZLib/UnitTests.cs
+++ b/contrib/dotzlib/DotZLib/UnitTests.cs
@@ -156,7 +156,7 @@ namespace DotZLibTests
156 public void Info_Version() 156 public void Info_Version()
157 { 157 {
158 Info info = new Info(); 158 Info info = new Info();
159 Assert.AreEqual("1.2.4.2", Info.Version); 159 Assert.AreEqual("1.2.4.3", Info.Version);
160 Assert.AreEqual(32, info.SizeOfUInt); 160 Assert.AreEqual(32, info.SizeOfUInt);
161 Assert.AreEqual(32, info.SizeOfULong); 161 Assert.AreEqual(32, info.SizeOfULong);
162 Assert.AreEqual(32, info.SizeOfPointer); 162 Assert.AreEqual(32, info.SizeOfPointer);
@@ -271,4 +271,4 @@ namespace DotZLibTests
271 } 271 }
272} 272}
273 273
274#endif \ No newline at end of file 274#endif
diff --git a/contrib/infback9/inftree9.c b/contrib/infback9/inftree9.c
index 362008c..a67f21d 100644
--- a/contrib/infback9/inftree9.c
+++ b/contrib/infback9/inftree9.c
@@ -9,7 +9,7 @@
9#define MAXBITS 15 9#define MAXBITS 15
10 10
11const char inflate9_copyright[] = 11const char inflate9_copyright[] =
12 " inflate9 1.2.4.2 Copyright 1995-2010 Mark Adler "; 12 " inflate9 1.2.4.3 Copyright 1995-2010 Mark Adler ";
13/* 13/*
14 If you use the zlib library in a product, an acknowledgment is welcome 14 If you use the zlib library in a product, an acknowledgment is welcome
15 in the documentation of your product. If for some reason you cannot 15 in the documentation of your product. If for some reason you cannot
@@ -64,7 +64,7 @@ unsigned short FAR *work;
64 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 64 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129, 65 128, 128, 128, 128, 128, 128, 128, 128, 129, 129, 129, 129,
66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, 66 130, 130, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132,
67 133, 133, 133, 133, 144, 202, 75}; 67 133, 133, 133, 133, 144, 195, 66};
68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */ 68 static const unsigned short dbase[32] = { /* Distance codes 0..31 base */
69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 69 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49,
70 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 70 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073,
diff --git a/contrib/pascal/zlibpas.pas b/contrib/pascal/zlibpas.pas
index e0bc74b..28383bc 100644
--- a/contrib/pascal/zlibpas.pas
+++ b/contrib/pascal/zlibpas.pas
@@ -10,7 +10,7 @@ unit zlibpas;
10interface 10interface
11 11
12const 12const
13 ZLIB_VERSION = '1.2.4.2'; 13 ZLIB_VERSION = '1.2.4.3';
14 14
15type 15type
16 alloc_func = function(opaque: Pointer; items, size: Integer): Pointer; 16 alloc_func = function(opaque: Pointer; items, size: Integer): Pointer;
diff --git a/contrib/vstudio/vc10/zlib.rc b/contrib/vstudio/vc10/zlib.rc
index 38615f0..6d8cd3c 100644
--- a/contrib/vstudio/vc10/zlib.rc
+++ b/contrib/vstudio/vc10/zlib.rc
@@ -2,8 +2,8 @@
2 2
3#define IDR_VERSION1 1 3#define IDR_VERSION1 1
4IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 4IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1,2,4,2 5 FILEVERSION 1,2,4,3
6 PRODUCTVERSION 1,2,4,2 6 PRODUCTVERSION 1,2,4,3
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0 8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32 9 FILEOS VOS_DOS_WINDOWS32
@@ -17,7 +17,7 @@ BEGIN
17 17
18 BEGIN 18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.2.4.2\0" 20 VALUE "FileVersion", "1.2.4.3\0"
21 VALUE "InternalName", "zlib\0" 21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlib.dll\0" 22 VALUE "OriginalFilename", "zlib.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0" 23 VALUE "ProductName", "ZLib.DLL\0"
diff --git a/contrib/vstudio/vc9/zlib.rc b/contrib/vstudio/vc9/zlib.rc
index 38615f0..6d8cd3c 100644
--- a/contrib/vstudio/vc9/zlib.rc
+++ b/contrib/vstudio/vc9/zlib.rc
@@ -2,8 +2,8 @@
2 2
3#define IDR_VERSION1 1 3#define IDR_VERSION1 1
4IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 4IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
5 FILEVERSION 1,2,4,2 5 FILEVERSION 1,2,4,3
6 PRODUCTVERSION 1,2,4,2 6 PRODUCTVERSION 1,2,4,3
7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 7 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8 FILEFLAGS 0 8 FILEFLAGS 0
9 FILEOS VOS_DOS_WINDOWS32 9 FILEOS VOS_DOS_WINDOWS32
@@ -17,7 +17,7 @@ BEGIN
17 17
18 BEGIN 18 BEGIN
19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 19 VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 VALUE "FileVersion", "1.2.4.2\0" 20 VALUE "FileVersion", "1.2.4.3\0"
21 VALUE "InternalName", "zlib\0" 21 VALUE "InternalName", "zlib\0"
22 VALUE "OriginalFilename", "zlib.dll\0" 22 VALUE "OriginalFilename", "zlib.dll\0"
23 VALUE "ProductName", "ZLib.DLL\0" 23 VALUE "ProductName", "ZLib.DLL\0"
diff --git a/deflate.c b/deflate.c
index 7025528..efb26bf 100644
--- a/deflate.c
+++ b/deflate.c
@@ -52,7 +52,7 @@
52#include "deflate.h" 52#include "deflate.h"
53 53
54const char deflate_copyright[] = 54const char deflate_copyright[] =
55 " deflate 1.2.4.2 Copyright 1995-2010 Jean-loup Gailly and Mark Adler "; 55 " deflate 1.2.4.3 Copyright 1995-2010 Jean-loup Gailly and Mark Adler ";
56/* 56/*
57 If you use the zlib library in a product, an acknowledgment is welcome 57 If you use the zlib library in a product, an acknowledgment is welcome
58 in the documentation of your product. If for some reason you cannot 58 in the documentation of your product. If for some reason you cannot
diff --git a/gzguts.h b/gzguts.h
index a0e7119..b0a4cbd 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -3,7 +3,7 @@
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6#if _LARGEFILE64_SOURCE 6#ifdef _LARGEFILE64_SOURCE
7# ifndef _LARGEFILE_SOURCE 7# ifndef _LARGEFILE_SOURCE
8# define _LARGEFILE_SOURCE 1 8# define _LARGEFILE_SOURCE 1
9# endif 9# endif
@@ -56,18 +56,12 @@
56# endif 56# endif
57#endif 57#endif
58 58
59#if _LARGEFILE64_SOURCE
60# define z_off64_t off64_t
61#else
62# define z_off64_t z_off_t
63#endif
64
65/* provide prototypes for these when building zlib without LFS */ 59/* provide prototypes for these when building zlib without LFS */
66#if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 60#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
67 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 61 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
68 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); 62 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
69 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); 63 ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
70 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); 64 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
71#endif 65#endif
72 66
73/* default i/o buffer size -- double this for output when reading */ 67/* default i/o buffer size -- double this for output when reading */
diff --git a/gzlib.c b/gzlib.c
index d1b6253..1839002 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -5,7 +5,7 @@
5 5
6#include "gzguts.h" 6#include "gzguts.h"
7 7
8#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE 8#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
9# define LSEEK lseek64 9# define LSEEK lseek64
10#else 10#else
11# define LSEEK lseek 11# define LSEEK lseek
diff --git a/inftrees.c b/inftrees.c
index 1ea90f7..430b174 100644
--- a/inftrees.c
+++ b/inftrees.c
@@ -9,7 +9,7 @@
9#define MAXBITS 15 9#define MAXBITS 15
10 10
11const char inflate_copyright[] = 11const char inflate_copyright[] =
12 " inflate 1.2.4.2 Copyright 1995-2010 Mark Adler "; 12 " inflate 1.2.4.3 Copyright 1995-2010 Mark Adler ";
13/* 13/*
14 If you use the zlib library in a product, an acknowledgment is welcome 14 If you use the zlib library in a product, an acknowledgment is welcome
15 in the documentation of your product. If for some reason you cannot 15 in the documentation of your product. If for some reason you cannot
@@ -62,7 +62,7 @@ unsigned short FAR *work;
62 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; 62 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
63 static const unsigned short lext[31] = { /* Length codes 257..285 extra */ 63 static const unsigned short lext[31] = { /* Length codes 257..285 extra */
64 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 64 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 202, 75}; 65 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 195, 66};
66 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */ 66 static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
67 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 67 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
68 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 68 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,
diff --git a/minigzip.c b/minigzip.c
index f43cb54..9825ccc 100644
--- a/minigzip.c
+++ b/minigzip.c
@@ -53,7 +53,7 @@
53# include <unix.h> /* for fileno */ 53# include <unix.h> /* for fileno */
54#endif 54#endif
55 55
56#if !defined(Z_HAVE_UNISTD_H) && _LARGEFILE64_SOURCE+0 != 1 56#if !defined(Z_HAVE_UNISTD_H) && !defined(_LARGEFILE64_SOURCE)
57#ifndef WIN32 /* unlink already in stdio.h for WIN32 */ 57#ifndef WIN32 /* unlink already in stdio.h for WIN32 */
58 extern int unlink OF((const char *)); 58 extern int unlink OF((const char *));
59#endif 59#endif
diff --git a/qnx/package.qpg b/qnx/package.qpg
index 99d3701..55cb3e1 100644
--- a/qnx/package.qpg
+++ b/qnx/package.qpg
@@ -25,10 +25,10 @@
25 <QPG:Files> 25 <QPG:Files>
26 <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/> 26 <QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/>
27 <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/> 27 <QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/>
28 <QPG:Add file="../libz.so.1.2.4.2" install="/opt/lib/" user="root:bin" permission="644"/> 28 <QPG:Add file="../libz.so.1.2.4.3" install="/opt/lib/" user="root:bin" permission="644"/>
29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.2"/> 29 <QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.3"/>
30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.2"/> 30 <QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.3"/>
31 <QPG:Add file="../libz.so.1.2.4.2" install="/opt/lib/" component="slib"/> 31 <QPG:Add file="../libz.so.1.2.4.3" install="/opt/lib/" component="slib"/>
32 </QPG:Files> 32 </QPG:Files>
33 33
34 <QPG:PackageFilter> 34 <QPG:PackageFilter>
@@ -63,7 +63,7 @@
63 </QPM:ProductDescription> 63 </QPM:ProductDescription>
64 64
65 <QPM:ReleaseDescription> 65 <QPM:ReleaseDescription>
66 <QPM:ReleaseVersion>1.2.4.2</QPM:ReleaseVersion> 66 <QPM:ReleaseVersion>1.2.4.3</QPM:ReleaseVersion>
67 <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency> 67 <QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
68 <QPM:ReleaseStability>Stable</QPM:ReleaseStability> 68 <QPM:ReleaseStability>Stable</QPM:ReleaseStability>
69 <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor> 69 <QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
diff --git a/treebuild.xml b/treebuild.xml
index d2c6a25..616ed3f 100644
--- a/treebuild.xml
+++ b/treebuild.xml
@@ -1,6 +1,6 @@
1<?xml version="1.0" ?> 1<?xml version="1.0" ?>
2<package name="zlib" version="1.2.4.2"> 2<package name="zlib" version="1.2.4.3">
3 <library name="zlib" dlversion="1.2.4.2" dlname="z"> 3 <library name="zlib" dlversion="1.2.4.3" dlname="z">
4 <property name="description"> zip compression library </property> 4 <property name="description"> zip compression library </property>
5 <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" /> 5 <property name="include-target-dir" value="$(@PACKAGE/install-includedir)" />
6 6
diff --git a/zconf.h b/zconf.h
index d3eaf91..1988920 100644
--- a/zconf.h
+++ b/zconf.h
@@ -368,7 +368,7 @@ typedef uLong FAR uLongf;
368# include <sys/types.h> /* for off_t */ 368# include <sys/types.h> /* for off_t */
369#endif 369#endif
370 370
371#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE 371#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
372# include <unistd.h> /* for SEEK_* and off_t */ 372# include <unistd.h> /* for SEEK_* and off_t */
373# ifdef VMS 373# ifdef VMS
374# include <unixio.h> /* for off_t */ 374# include <unixio.h> /* for off_t */
@@ -388,6 +388,12 @@ typedef uLong FAR uLongf;
388# define z_off_t long 388# define z_off_t long
389#endif 389#endif
390 390
391#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
392# define z_off64_t off64_t
393#else
394# define z_off64_t z_off_t
395#endif
396
391#if defined(__OS400__) 397#if defined(__OS400__)
392# define NO_vsnprintf 398# define NO_vsnprintf
393#endif 399#endif
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index bbe25a7..cf9cc24 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -370,7 +370,7 @@ typedef uLong FAR uLongf;
370# include <sys/types.h> /* for off_t */ 370# include <sys/types.h> /* for off_t */
371#endif 371#endif
372 372
373#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE 373#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
374# include <unistd.h> /* for SEEK_* and off_t */ 374# include <unistd.h> /* for SEEK_* and off_t */
375# ifdef VMS 375# ifdef VMS
376# include <unixio.h> /* for off_t */ 376# include <unixio.h> /* for off_t */
@@ -390,6 +390,12 @@ typedef uLong FAR uLongf;
390# define z_off_t long 390# define z_off_t long
391#endif 391#endif
392 392
393#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
394# define z_off64_t off64_t
395#else
396# define z_off64_t z_off_t
397#endif
398
393#if defined(__OS400__) 399#if defined(__OS400__)
394# define NO_vsnprintf 400# define NO_vsnprintf
395#endif 401#endif
diff --git a/zconf.h.in b/zconf.h.in
index d3eaf91..1988920 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -368,7 +368,7 @@ typedef uLong FAR uLongf;
368# include <sys/types.h> /* for off_t */ 368# include <sys/types.h> /* for off_t */
369#endif 369#endif
370 370
371#if defined(Z_HAVE_UNISTD_H) || _LARGEFILE64_SOURCE 371#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
372# include <unistd.h> /* for SEEK_* and off_t */ 372# include <unistd.h> /* for SEEK_* and off_t */
373# ifdef VMS 373# ifdef VMS
374# include <unixio.h> /* for off_t */ 374# include <unixio.h> /* for off_t */
@@ -388,6 +388,12 @@ typedef uLong FAR uLongf;
388# define z_off_t long 388# define z_off_t long
389#endif 389#endif
390 390
391#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
392# define z_off64_t off64_t
393#else
394# define z_off64_t z_off_t
395#endif
396
391#if defined(__OS400__) 397#if defined(__OS400__)
392# define NO_vsnprintf 398# define NO_vsnprintf
393#endif 399#endif
diff --git a/zlib.3 b/zlib.3
index 552318d..b534616 100644
--- a/zlib.3
+++ b/zlib.3
@@ -1,4 +1,4 @@
1.TH ZLIB 3 "9 Apr 2010" 1.TH ZLIB 3 "10 Apr 2010"
2.SH NAME 2.SH NAME
3zlib \- compression/decompression library 3zlib \- compression/decompression library
4.SH SYNOPSIS 4.SH SYNOPSIS
@@ -125,7 +125,7 @@ before asking for help.
125Send questions and/or comments to zlib@gzip.org, 125Send questions and/or comments to zlib@gzip.org,
126or (for the Windows DLL version) to Gilles Vollant (info@winimage.com). 126or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
127.SH AUTHORS 127.SH AUTHORS
128Version 1.2.4.2 128Version 1.2.4.3
129Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org) 129Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org)
130and Mark Adler (madler@alumni.caltech.edu). 130and Mark Adler (madler@alumni.caltech.edu).
131.LP 131.LP
diff --git a/zlib.3.pdf b/zlib.3.pdf
index abbbb7f..584f793 100644
--- a/zlib.3.pdf
+++ b/zlib.3.pdf
Binary files differ
diff --git a/zlib.h b/zlib.h
index 25535f9..699630c 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1,5 +1,5 @@
1/* zlib.h -- interface of the 'zlib' general purpose compression library 1/* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.2.4.2, April 9th, 2010 2 version 1.2.4.3, April 10th, 2010
3 3
4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
5 5
@@ -37,12 +37,12 @@
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
40#define ZLIB_VERSION "1.2.4.2" 40#define ZLIB_VERSION "1.2.4.3"
41#define ZLIB_VERNUM 0x1241 41#define ZLIB_VERNUM 0x1243
42#define ZLIB_VER_MAJOR 1 42#define ZLIB_VER_MAJOR 1
43#define ZLIB_VER_MINOR 2 43#define ZLIB_VER_MINOR 2
44#define ZLIB_VER_REVISION 4 44#define ZLIB_VER_REVISION 4
45#define ZLIB_VER_SUBREVISION 2 45#define ZLIB_VER_SUBREVISION 3
46 46
47/* 47/*
48 The 'zlib' compression library provides in-memory compression and 48 The 'zlib' compression library provides in-memory compression and
@@ -1556,29 +1556,35 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
1556 inflateBackInit_((strm), (windowBits), (window), \ 1556 inflateBackInit_((strm), (windowBits), (window), \
1557 ZLIB_VERSION, sizeof(z_stream)) 1557 ZLIB_VERSION, sizeof(z_stream))
1558 1558
1559#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE 1559/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or
1560 * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if
1561 * both are true, the application gets the *64 functions, and the regular
1562 * functions are changed to 64 bits) -- in case these are set on systems
1563 * without large file support, _LFS64_LARGEFILE must also be true
1564 */
1565#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
1560 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1566 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
1561 ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int)); 1567 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
1562 ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile)); 1568 ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
1563 ZEXTERN off64_t ZEXPORT gzoffset64 OF((gzFile)); 1569 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1564 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off64_t)); 1570 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1565 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t)); 1571 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
1566#endif 1572#endif
1567 1573
1568#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS+0 == 64 && _LFS64_LARGEFILE 1574#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
1569# define gzopen gzopen64 1575# define gzopen gzopen64
1570# define gzseek gzseek64 1576# define gzseek gzseek64
1571# define gztell gztell64 1577# define gztell gztell64
1572# define gzoffset gzoffset64 1578# define gzoffset gzoffset64
1573# define adler32_combine adler32_combine64 1579# define adler32_combine adler32_combine64
1574# define crc32_combine crc32_combine64 1580# define crc32_combine crc32_combine64
1575# if _LARGEFILE64_SOURCE 1581# ifdef _LARGEFILE64_SOURCE
1576 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); 1582 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
1577 ZEXTERN off_t ZEXPORT gzseek64 OF((gzFile, off_t, int)); 1583 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
1578 ZEXTERN off_t ZEXPORT gztell64 OF((gzFile)); 1584 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
1579 ZEXTERN off_t ZEXPORT gzoffset64 OF((gzFile)); 1585 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1580 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off_t)); 1586 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1581 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off_t)); 1587 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1582# endif 1588# endif
1583#else 1589#else
1584 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); 1590 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
@@ -1589,10 +1595,12 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
1589 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); 1595 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1590#endif 1596#endif
1591 1597
1598/* hack for buggy compilers */
1592#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) 1599#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1593 struct internal_state {int dummy;}; /* hack for buggy compilers */ 1600 struct internal_state {int dummy;};
1594#endif 1601#endif
1595 1602
1603/* undocumented functions */
1596ZEXTERN const char * ZEXPORT zError OF((int)); 1604ZEXTERN const char * ZEXPORT zError OF((int));
1597ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp)); 1605ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
1598ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); 1606ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
diff --git a/zutil.h b/zutil.h
index 850f1ec..a250088 100644
--- a/zutil.h
+++ b/zutil.h
@@ -154,14 +154,8 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
154 #pragma warn -8066 154 #pragma warn -8066
155#endif 155#endif
156 156
157#if _LARGEFILE64_SOURCE && _LFS64_LARGEFILE
158# define z_off64_t off64_t
159#else
160# define z_off64_t z_off_t
161#endif
162
163/* provide prototypes for these when building zlib without LFS */ 157/* provide prototypes for these when building zlib without LFS */
164#if _LARGEFILE64_SOURCE+0 != 1 || _LFS64_LARGEFILE+0 != 1 158#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
165 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); 159 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
166 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); 160 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
167#endif 161#endif