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 #include <sys/param.h>
31 #include <sys/systm.h>
32 #include <sys/types.h>
39 * We don't want to turn on zlib's debugging.
44 * We define our own memory allocation and deallocation routines that use kmem.
49 * We don't define HAVE_MEMCPY here, but do in zutil.c, and implement our
50 * our versions of zmemcpy(), zmemzero(), and zmemcmp().
54 * We have a sufficiently capable compiler as to not need zlib's compiler hack.
58 #define compressBound(len) (len + (len >> 12) + (len >> 14) + 11)
62 #define ZEXTERN extern
67 #define deflateInit_ z_deflateInit_
68 #define deflate z_deflate
69 #define deflateEnd z_deflateEnd
70 #define inflateInit_ z_inflateInit_
71 #define inflate z_inflate
72 #define inflateEnd z_inflateEnd
73 #define deflateInit2_ z_deflateInit2_
74 #define deflateSetDictionary z_deflateSetDictionary
75 #define deflateCopy z_deflateCopy
76 #define deflateReset z_deflateReset
77 #define deflateParams z_deflateParams
78 #define deflateBound z_deflateBound
79 #define deflatePrime z_deflatePrime
80 #define inflateInit2_ z_inflateInit2_
81 #define inflateSetDictionary z_inflateSetDictionary
82 #define inflateSync z_inflateSync
83 #define inflateSyncPoint z_inflateSyncPoint
84 #define inflateCopy z_inflateCopy
85 #define inflateReset z_inflateReset
86 #define inflateBack z_inflateBack
87 #define inflateBackEnd z_inflateBackEnd
88 #define compress zz_compress
89 #define compress2 zz_compress2
90 #define uncompress zz_uncompress
91 #define adler32 z_adler32
93 #define get_crc_table z_get_crc_table
94 #define zError z_zError
96 #define MAX_MEM_LEVEL 9
99 typedef unsigned char Byte
;
100 typedef unsigned int uInt
;
101 typedef unsigned long uLong
;
106 typedef uLong uLongf
;
107 typedef void *voidpc
;
108 typedef void *voidpf
;
115 #endif /* _ZCONF_H */