summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h45
1 files changed, 36 insertions, 9 deletions
diff --git a/zlib.h b/zlib.h
index 44ae5e9..bb164c0 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.3.2, September 3rd, 2006 2 version 1.2.3.3, October 2nd, 2006
3 3
4 Copyright (C) 1995-2006 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2006 Jean-loup Gailly and Mark Adler
5 5
@@ -37,8 +37,8 @@
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
40#define ZLIB_VERSION "1.2.3.2" 40#define ZLIB_VERSION "1.2.3.3"
41#define ZLIB_VERNUM 0x1232 41#define ZLIB_VERNUM 0x1233
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 3 44#define ZLIB_VER_REVISION 3
@@ -1077,8 +1077,9 @@ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
1077 1077
1078typedef voidp gzFile; 1078typedef voidp gzFile;
1079 1079
1080ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
1081/* 1080/*
1081ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
1082
1082 Opens a gzip (.gz) file for reading or writing. The mode parameter 1083 Opens a gzip (.gz) file for reading or writing. The mode parameter
1083 is as in fopen ("rb" or "wb") but can also include a compression level 1084 is as in fopen ("rb" or "wb") but can also include a compression level
1084 ("wb9") or a strategy: 'f' for filtered data as in "wb6f", 'h' for 1085 ("wb9") or a strategy: 'f' for filtered data as in "wb6f", 'h' for
@@ -1192,9 +1193,10 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
1192 degrade compression. 1193 degrade compression.
1193*/ 1194*/
1194 1195
1196/*
1195ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file, 1197ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
1196 z_off_t offset, int whence)); 1198 z_off_t offset, int whence));
1197/* 1199
1198 Sets the starting position for the next gzread or gzwrite on the 1200 Sets the starting position for the next gzread or gzwrite on the
1199 given compressed file. The offset represents a number of bytes in the 1201 given compressed file. The offset represents a number of bytes in the
1200 uncompressed data stream. The whence parameter is defined as in lseek(2); 1202 uncompressed data stream. The whence parameter is defined as in lseek(2);
@@ -1217,8 +1219,9 @@ ZEXTERN int ZEXPORT gzrewind OF((gzFile file));
1217 gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET) 1219 gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET)
1218*/ 1220*/
1219 1221
1220ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
1221/* 1222/*
1223ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
1224
1222 Returns the starting position for the next gzread or gzwrite on the 1225 Returns the starting position for the next gzread or gzwrite on the
1223 given compressed file. This position represents a number of bytes in the 1226 given compressed file. This position represents a number of bytes in the
1224 uncompressed data stream. 1227 uncompressed data stream.
@@ -1289,9 +1292,10 @@ ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1289 if (adler != original_adler) error(); 1292 if (adler != original_adler) error();
1290*/ 1293*/
1291 1294
1295/*
1292ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2, 1296ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
1293 z_off_t len2)); 1297 z_off_t len2));
1294/* 1298
1295 Combine two Adler-32 checksums into one. For two sequences of bytes, seq1 1299 Combine two Adler-32 checksums into one. For two sequences of bytes, seq1
1296 and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for 1300 and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for
1297 each, adler1 and adler2. adler32_combine() returns the Adler-32 checksum of 1301 each, adler1 and adler2. adler32_combine() returns the Adler-32 checksum of
@@ -1314,9 +1318,9 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1314 if (crc != original_crc) error(); 1318 if (crc != original_crc) error();
1315*/ 1319*/
1316 1320
1321/*
1317ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2)); 1322ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
1318 1323
1319/*
1320 Combine two CRC-32 check values into one. For two sequences of bytes, 1324 Combine two CRC-32 check values into one. For two sequences of bytes,
1321 seq1 and seq2 with lengths len1 and len2, CRC-32 check values were 1325 seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
1322 calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32 1326 calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32
@@ -1357,13 +1361,36 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
1357 inflateBackInit_((strm), (windowBits), (window), \ 1361 inflateBackInit_((strm), (windowBits), (window), \
1358 ZLIB_VERSION, sizeof(z_stream)) 1362 ZLIB_VERSION, sizeof(z_stream))
1359 1363
1364#ifdef _LARGEFILE64_SOURCE
1365 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
1366 ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int));
1367 ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile));
1368 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off64_t));
1369 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off64_t));
1370#endif
1371
1372#if _FILE_OFFSET_BITS == 64
1373# define gzopen gzopen64
1374# define gzseek gzseek64
1375# define gztell gztell64
1376# define adler32_combine adler32_combine64
1377# define crc32_combine crc32_combine64
1378#else
1379 ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
1380 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
1381 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
1382 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1383 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1384#endif
1385
1360#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) 1386#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1361 struct internal_state {int dummy;}; /* hack for buggy compilers */ 1387 struct internal_state {int dummy;}; /* hack for buggy compilers */
1362#endif 1388#endif
1363 1389
1364ZEXTERN const char * ZEXPORT zError OF((int)); 1390ZEXTERN const char * ZEXPORT zError OF((int));
1365ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp z)); 1391ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
1366ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); 1392ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
1393ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
1367 1394
1368#ifdef __cplusplus 1395#ifdef __cplusplus
1369} 1396}