40#define ZLIB_VERSION "1.2.5"
41#define ZLIB_VERNUM 0x1250
42#define ZLIB_VER_MAJOR 1
43#define ZLIB_VER_MINOR 2
44#define ZLIB_VER_REVISION 5
45#define ZLIB_VER_SUBREVISION 0
80typedef voidpf (*alloc_func) OF((voidpf
opaque, uInt items, uInt
size));
81typedef void (*free_func) OF((voidpf
opaque, voidpf address));
165#define Z_PARTIAL_FLUSH 1
166#define Z_SYNC_FLUSH 2
167#define Z_FULL_FLUSH 3
174#define Z_STREAM_END 1
177#define Z_STREAM_ERROR (-2)
178#define Z_DATA_ERROR (-3)
179#define Z_MEM_ERROR (-4)
180#define Z_BUF_ERROR (-5)
181#define Z_VERSION_ERROR (-6)
186#define Z_NO_COMPRESSION 0
187#define Z_BEST_SPEED 1
188#define Z_BEST_COMPRESSION 9
189#define Z_DEFAULT_COMPRESSION (-1)
193#define Z_HUFFMAN_ONLY 2
196#define Z_DEFAULT_STRATEGY 0
201#define Z_ASCII Z_TEXT
210#define zlib_version zlibVersion()
216ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
246ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
352ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
391ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
499ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
578ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
617ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
635ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
646ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
667ZEXTERN
int ZEXPORT deflateTune OF((z_streamp strm,
684ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
694ZEXTERN
int ZEXPORT deflatePrime OF((z_streamp strm,
710ZEXTERN
int ZEXPORT deflateSetHeader OF((z_streamp strm,
784ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
806ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
821ZEXTERN
int ZEXPORT inflateCopy OF((z_streamp dest,
837ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
847ZEXTERN
int ZEXPORT inflateReset2 OF((z_streamp strm,
859ZEXTERN
int ZEXPORT inflatePrime OF((z_streamp strm,
880ZEXTERN
long ZEXPORT inflateMark OF((z_streamp strm));
908ZEXTERN
int ZEXPORT inflateGetHeader OF((z_streamp strm,
970typedef unsigned (*in_func) OF((
void FAR *,
unsigned char FAR * FAR *));
971typedef int (*out_func) OF((
void FAR *,
unsigned char FAR *,
unsigned));
973ZEXTERN
int ZEXPORT inflateBack OF((z_streamp strm,
974 in_func in,
void FAR *in_desc,
975 out_func out,
void FAR *out_desc));
1042ZEXTERN
int ZEXPORT inflateBackEnd OF((z_streamp strm));
1050ZEXTERN uLong ZEXPORT zlibCompileFlags OF((
void));
1102ZEXTERN
int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
1103 const Bytef *source, uLong sourceLen));
1116ZEXTERN
int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
1117 const Bytef *source, uLong sourceLen,
1132ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen));
1139ZEXTERN
int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
1140 const Bytef *source, uLong sourceLen));
1165typedef voidp gzFile;
1190ZEXTERN gzFile ZEXPORT gzdopen OF((
int fd,
const char *mode));
1209ZEXTERN
int ZEXPORT gzbuffer OF((gzFile
file,
unsigned size));
1226ZEXTERN
int ZEXPORT gzsetparams OF((gzFile
file,
int level,
int strategy));
1235ZEXTERN
int ZEXPORT gzread OF((gzFile
file, voidp buf,
unsigned len));
1251ZEXTERN
int ZEXPORT gzwrite OF((gzFile
file,
1252 voidpc buf,
unsigned len));
1259ZEXTERN
int ZEXPORTVA gzprintf OF((gzFile
file,
const char *
format, ...));
1274ZEXTERN
int ZEXPORT gzputs OF((gzFile
file,
const char *s));
1282ZEXTERN
char * ZEXPORT gzgets OF((gzFile
file,
char *buf,
int len));
1295ZEXTERN
int ZEXPORT gzputc OF((gzFile
file,
int c));
1301ZEXTERN
int ZEXPORT gzgetc OF((gzFile
file));
1307ZEXTERN
int ZEXPORT gzungetc OF((
int c, gzFile
file));
1319ZEXTERN
int ZEXPORT gzflush OF((gzFile
file,
int flush));
1354ZEXTERN
int ZEXPORT gzrewind OF((gzFile
file));
1382ZEXTERN
int ZEXPORT gzeof OF((gzFile
file));
1397ZEXTERN
int ZEXPORT gzdirect OF((gzFile
file));
1413ZEXTERN
int ZEXPORT gzclose OF((gzFile
file));
1425ZEXTERN
int ZEXPORT gzclose_r OF((gzFile
file));
1426ZEXTERN
int ZEXPORT gzclose_w OF((gzFile
file));
1437ZEXTERN
const char * ZEXPORT gzerror OF((gzFile
file,
int *errnum));
1453ZEXTERN
void ZEXPORT gzclearerr OF((gzFile
file));
1469ZEXTERN uLong ZEXPORT adler32 OF((uLong adler,
const Bytef *buf, uInt len));
1498ZEXTERN uLong ZEXPORT crc32 OF((uLong crc,
const Bytef *buf, uInt len));
1532ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
1533 const char *version,
int stream_size));
1534ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
1535 const char *version,
int stream_size));
1536ZEXTERN
int ZEXPORT deflateInit2_ OF((z_streamp strm,
int level,
int method,
1537 int windowBits,
int memLevel,
1538 int strategy,
const char *version,
1540ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
1541 const char *version,
int stream_size));
1542ZEXTERN
int ZEXPORT inflateBackInit_ OF((z_streamp strm,
int windowBits,
1543 unsigned char FAR *window,
1544 const char *version,
1546#define deflateInit(strm, level) \
1547 deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
1548#define inflateInit(strm) \
1549 inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))
1550#define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1551 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1552 (strategy), ZLIB_VERSION, sizeof(z_stream))
1553#define inflateInit2(strm, windowBits) \
1554 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
1555#define inflateBackInit(strm, windowBits, window) \
1556 inflateBackInit_((strm), (windowBits), (window), \
1557 ZLIB_VERSION, sizeof(z_stream))
1565#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
1566 ZEXTERN gzFile ZEXPORT gzopen64 OF((
const char *,
const char *));
1567 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t,
int));
1568 ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
1569 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1570 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1571 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
1574#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
1575# define gzopen gzopen64
1576# define gzseek gzseek64
1577# define gztell gztell64
1578# define gzoffset gzoffset64
1579# define adler32_combine adler32_combine64
1580# define crc32_combine crc32_combine64
1581# ifdef _LARGEFILE64_SOURCE
1582 ZEXTERN gzFile ZEXPORT gzopen64 OF((
const char *,
const char *));
1583 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t,
int));
1584 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
1585 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1586 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1587 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1590 ZEXTERN gzFile ZEXPORT gzopen OF((
const char *,
const char *));
1591 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t,
int));
1592 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
1593 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
1594 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1595 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1599#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1604ZEXTERN
const char * ZEXPORT zError OF((
int));
1605ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp));
1606ZEXTERN
const uLongf * ZEXPORT get_crc_table OF((
void));
1607ZEXTERN
int ZEXPORT inflateUndermine OF((z_streamp,
int));
Definition: xz_dec_lzma2.c:44
Definition: mongoose.c:442
Definition: b1553brm.c:75
unsigned size
Definition: tte.h:1