1420Sstevel /* 2420Sstevel * CDDL HEADER START 3420Sstevel * 4420Sstevel * The contents of this file are subject to the terms of the 5*3886Sahl * Common Development and Distribution License (the "License"). 6*3886Sahl * You may not use this file except in compliance with the License. 7420Sstevel * 8420Sstevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9420Sstevel * or http://www.opensolaris.org/os/licensing. 10420Sstevel * See the License for the specific language governing permissions 11420Sstevel * and limitations under the License. 12420Sstevel * 13420Sstevel * When distributing Covered Code, include this CDDL HEADER in each 14420Sstevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15420Sstevel * If applicable, add the following below this CDDL HEADER, with the 16420Sstevel * fields enclosed by brackets "[]" replaced with your own identifying 17420Sstevel * information: Portions Copyright [yyyy] [name of copyright owner] 18420Sstevel * 19420Sstevel * CDDL HEADER END 20420Sstevel */ 21420Sstevel 220Sstevel@tonic-gate /* 23*3886Sahl * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate * Use is subject to license terms. 250Sstevel@tonic-gate */ 260Sstevel@tonic-gate 270Sstevel@tonic-gate #ifndef _ZCONF_H 280Sstevel@tonic-gate #define _ZCONF_H 290Sstevel@tonic-gate 300Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 310Sstevel@tonic-gate 32*3886Sahl #include <sys/param.h> 33*3886Sahl #include <sys/systm.h> 340Sstevel@tonic-gate #include <sys/types.h> 350Sstevel@tonic-gate 360Sstevel@tonic-gate #ifdef __cplusplus 370Sstevel@tonic-gate extern "C" { 380Sstevel@tonic-gate #endif 390Sstevel@tonic-gate 40*3886Sahl /* 41*3886Sahl * We don't want to turn on zlib's debugging. 42*3886Sahl */ 43*3886Sahl #undef DEBUG 44*3886Sahl 45*3886Sahl /* 46*3886Sahl * We define our own memory allocation and deallocation routines that use kmem. 47*3886Sahl */ 48*3886Sahl #define MY_ZCALLOC 49*3886Sahl 50*3886Sahl /* 51*3886Sahl * We don't define HAVE_MEMCPY here, but do in zutil.c, and implement our 52*3886Sahl * our versions of zmemcpy(), zmemzero(), and zmemcmp(). 53*3886Sahl */ 54*3886Sahl 55*3886Sahl /* 56*3886Sahl * We have a sufficiently capable compiler as to not need zlib's compiler hack. 57*3886Sahl */ 58*3886Sahl #define NO_DUMMY_DECL 59*3886Sahl 60*3886Sahl #define compressBound(len) (len + (len >> 12) + (len >> 14) + 11) 61*3886Sahl 620Sstevel@tonic-gate #define z_off_t off_t 630Sstevel@tonic-gate #define OF(p) p 640Sstevel@tonic-gate #define ZEXTERN extern 650Sstevel@tonic-gate #define ZEXPORT 660Sstevel@tonic-gate #define ZEXPORTVA 670Sstevel@tonic-gate #define FAR 680Sstevel@tonic-gate 690Sstevel@tonic-gate #define deflateInit_ z_deflateInit_ 700Sstevel@tonic-gate #define deflate z_deflate 710Sstevel@tonic-gate #define deflateEnd z_deflateEnd 720Sstevel@tonic-gate #define inflateInit_ z_inflateInit_ 730Sstevel@tonic-gate #define inflate z_inflate 740Sstevel@tonic-gate #define inflateEnd z_inflateEnd 750Sstevel@tonic-gate #define deflateInit2_ z_deflateInit2_ 760Sstevel@tonic-gate #define deflateSetDictionary z_deflateSetDictionary 77*3886Sahl #define deflateCopy z_deflateCopy 78*3886Sahl #define deflateReset z_deflateReset 79*3886Sahl #define deflateParams z_deflateParams 80*3886Sahl #define deflateBound z_deflateBound 81*3886Sahl #define deflatePrime z_deflatePrime 82*3886Sahl #define inflateInit2_ z_inflateInit2_ 830Sstevel@tonic-gate #define inflateSetDictionary z_inflateSetDictionary 840Sstevel@tonic-gate #define inflateSync z_inflateSync 850Sstevel@tonic-gate #define inflateSyncPoint z_inflateSyncPoint 86*3886Sahl #define inflateCopy z_inflateCopy 870Sstevel@tonic-gate #define inflateReset z_inflateReset 88*3886Sahl #define inflateBack z_inflateBack 89*3886Sahl #define inflateBackEnd z_inflateBackEnd 90*3886Sahl #define compress zz_compress 91*3886Sahl #define compress2 zz_compress2 92*3886Sahl #define uncompress zz_uncompress 930Sstevel@tonic-gate #define adler32 z_adler32 940Sstevel@tonic-gate #define crc32 z_crc32 950Sstevel@tonic-gate #define get_crc_table z_get_crc_table 96*3886Sahl #define zError z_zError 970Sstevel@tonic-gate 980Sstevel@tonic-gate #define MAX_MEM_LEVEL 9 990Sstevel@tonic-gate #define MAX_WBITS 15 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate typedef unsigned char Byte; 1020Sstevel@tonic-gate typedef unsigned int uInt; 1030Sstevel@tonic-gate typedef unsigned long uLong; 1040Sstevel@tonic-gate typedef Byte Bytef; 1050Sstevel@tonic-gate typedef char charf; 1060Sstevel@tonic-gate typedef int intf; 1070Sstevel@tonic-gate typedef uInt uIntf; 1080Sstevel@tonic-gate typedef uLong uLongf; 109*3886Sahl typedef void *voidpc; 1100Sstevel@tonic-gate typedef void *voidpf; 1110Sstevel@tonic-gate typedef void *voidp; 1120Sstevel@tonic-gate 1130Sstevel@tonic-gate #ifdef __cplusplus 1140Sstevel@tonic-gate } 1150Sstevel@tonic-gate #endif 1160Sstevel@tonic-gate 1170Sstevel@tonic-gate #endif /* _ZCONF_H */ 118