llib-lz revision 184
225N/A/*
225N/A * CDDL HEADER START
225N/A *
225N/A * The contents of this file are subject to the terms of the
225N/A * Common Development and Distribution License (the "License").
225N/A * You may not use this file except in compliance with the License.
225N/A *
225N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
225N/A * or http://www.opensolaris.org/os/licensing.
225N/A * See the License for the specific language governing permissions
225N/A * and limitations under the License.
225N/A *
225N/A * When distributing Covered Code, include this CDDL HEADER in each
225N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
225N/A * If applicable, add the following below this CDDL HEADER, with the
225N/A * fields enclosed by brackets "[]" replaced with your own identifying
225N/A * information: Portions Copyright [yyyy] [name of copyright owner]
225N/A *
225N/A * CDDL HEADER END
225N/A */
225N/A
225N/A/*
5473N/A * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
225N/A */
5680N/A
225N/A/* LINTLIBRARY */
225N/A/* PROTOLIB1 */
225N/A
225N/A#include <stdlib.h>
618N/A#include <stdio.h>
225N/A#include <stdarg.h>
844N/A#include <zlib.h>
844N/A
225N/Aconst char *zlibVersion(void);
225N/Aint deflateInit_(z_streamp strm, int level, const char *version,
2899N/A int stream_size);
2899N/Aint deflateInit2_(z_streamp strm, int level, int method, int windowBits,
5680N/A int memLevel, int strategy, const char *version, int stream_size);
225N/Aint deflate(z_streamp strm, int flush);
225N/Aint deflateSetDictionary(z_streamp strm, const Bytef *dictionary,
225N/A uInt dictLength);
225N/Aint deflateCopy(z_streamp dest, z_streamp source);
5473N/Aint deflateReset(z_streamp strm);
225N/Aint deflateParams(z_streamp strm, int level, int strategy);
225N/Aint deflateEnd(z_streamp strm);
225N/Aint deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain);
225N/AuLong deflateBound(z_streamp strm, uLong sourceLen);
1392N/Aint deflatePrime(z_streamp strm, int bits, int value);
225N/Aint deflateSetHeader(z_streamp strm, gz_headerp head);
5680N/Aint inflateCopy(z_streamp dest, z_streamp source);
5680N/Aint inflatePrime(z_streamp strm, int bits, int value);
5680N/Aint inflateGetHeader(z_streamp strm, gz_headerp head);
5680N/Aint inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc);
5680N/Aint inflateBackEnd(z_streamp strm);
5680N/Aint inflateInit_(z_streamp strm, const char *version, int stream_size);
5680N/Aint inflateInit2_(z_streamp strm, int windowBits, const char *version,
892N/A int stream_size);
3843N/Aint inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window,
225N/A const char *version, int stream_size);
3843N/Aint inflate(z_streamp strm, int flush);
3843N/Aint inflateSetDictionary(z_streamp strm, const Bytef *dictionary,
3843N/A uInt dictLength);
225N/Aint inflateSync(z_streamp strm);
225N/Aint inflateReset(z_streamp strm);
225N/Aint inflateEnd(z_streamp strm);
225N/Aint compress(Bytef *dest, uLongf *destLen, const Bytef *source,
225N/A uLong sourceLen);
897N/Aint compress2(Bytef *dest, uLongf *destLen, const Bytef *source,
897N/A uLong sourceLen, int level);
892N/AuLong compressBound(uLong sourceLen);
3817N/Aint uncompress(Bytef *dest, uLongf *destLen, const Bytef *source,
3817N/A uLong sourceLen);
3817N/AgzFile gzopen(const char *path, const char *mode);
gzFile gzdopen(int fd, const char *mode);
int gzsetparams(gzFile file, int level, int strategy);
int gzread(gzFile file, voidp buf, unsigned len);
int gzwrite(gzFile file, voidpc buf, unsigned len);
int gzprintf(gzFile file, const char *format, ...);
int gzputs(gzFile file, const char *s);
char *gzgets(gzFile file, char *buf, int len);
int gzungetc(int c, gzFile file);
int gzputc(gzFile file, int c);
int gzgetc(gzFile file);
int gzflush(gzFile file, int flush);
z_off_t gzseek(gzFile file, z_off_t offset, int whence);
int gzrewind(gzFile file);
z_off_t gztell(gzFile file);
int gzeof(gzFile file);
int gzclose(gzFile file);
int gzdirect(gzFile file);
void gzclearerr(gzFile file);
const char *gzerror(gzFile file, int *errnum);
uLong adler32(uLong adler, const Bytef *buf, uInt len);
uLong adler32_combine(uLong adler1, uLong adler2, z_off_t len2);
uLong crc32(uLong crc, const Bytef *buf, uInt len);
uLong crc32_combine(uLong crc1, uLong crc2, z_off_t len2);
const char *zError(int err);
uLong zlibCompileFlags(void);
int inflateSyncPoint(z_streamp z);
const uLongf *get_crc_table(void);