4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/param.h>
33 #include <sys/systm.h>
34 #include <sys/types.h>
41 * We don't want to turn on zlib's debugging.
46 * We define our own memory allocation and deallocation routines that use kmem.
51 * We don't define HAVE_MEMCPY here, but do in zutil.c, and implement our
52 * our versions of zmemcpy(), zmemzero(), and zmemcmp().
56 * We have a sufficiently capable compiler as to not need zlib's compiler hack.
60 #define compressBound(len) (len + (len >> 12) + (len >> 14) + 11)
64 #define ZEXTERN extern
69 #define deflateInit_ z_deflateInit_
70 #define deflate z_deflate
71 #define deflateEnd z_deflateEnd
72 #define inflateInit_ z_inflateInit_
73 #define inflate z_inflate
74 #define inflateEnd z_inflateEnd
75 #define deflateInit2_ z_deflateInit2_
76 #define deflateSetDictionary z_deflateSetDictionary
77 #define deflateCopy z_deflateCopy
78 #define deflateReset z_deflateReset
79 #define deflateParams z_deflateParams
80 #define deflateBound z_deflateBound
81 #define deflatePrime z_deflatePrime
82 #define inflateInit2_ z_inflateInit2_
83 #define inflateSetDictionary z_inflateSetDictionary
84 #define inflateSync z_inflateSync
85 #define inflateSyncPoint z_inflateSyncPoint
86 #define inflateCopy z_inflateCopy
87 #define inflateReset z_inflateReset
88 #define inflateBack z_inflateBack
89 #define inflateBackEnd z_inflateBackEnd
90 #define compress zz_compress
91 #define compress2 zz_compress2
92 #define uncompress zz_uncompress
93 #define adler32 z_adler32
95 #define get_crc_table z_get_crc_table
96 #define zError z_zError
98 #define MAX_MEM_LEVEL 9
101 typedef unsigned char Byte
;
102 typedef unsigned int uInt
;
103 typedef unsigned long uLong
;
108 typedef uLong uLongf
;
109 typedef void *voidpc
;
110 typedef void *voidpf
;
117 #endif /* _ZCONF_H */