6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / uts / common / zmod / zconf.h
blobccce7b2742da5a1fe1ad87dc8e8a4f986f374a2e
1 /*
2 * CDDL HEADER START
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]
19 * CDDL HEADER END
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _ZCONF_H
28 #define _ZCONF_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/param.h>
33 #include <sys/systm.h>
34 #include <sys/types.h>
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
41 * We don't want to turn on zlib's debugging.
43 #undef DEBUG
46 * We define our own memory allocation and deallocation routines that use kmem.
48 #define MY_ZCALLOC
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.
58 #define NO_DUMMY_DECL
60 #define compressBound(len) (len + (len >> 12) + (len >> 14) + 11)
62 #define z_off_t off_t
63 #define OF(p) p
64 #define ZEXTERN extern
65 #define ZEXPORT
66 #define ZEXPORTVA
67 #define FAR
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
94 #define crc32 z_crc32
95 #define get_crc_table z_get_crc_table
96 #define zError z_zError
98 #define MAX_MEM_LEVEL 9
99 #define MAX_WBITS 15
101 typedef unsigned char Byte;
102 typedef unsigned int uInt;
103 typedef unsigned long uLong;
104 typedef Byte Bytef;
105 typedef char charf;
106 typedef int intf;
107 typedef uInt uIntf;
108 typedef uLong uLongf;
109 typedef void *voidpc;
110 typedef void *voidpf;
111 typedef void *voidp;
113 #ifdef __cplusplus
115 #endif
117 #endif /* _ZCONF_H */