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