1*c9431fa1Sahl /*
2*c9431fa1Sahl * CDDL HEADER START
3*c9431fa1Sahl *
4*c9431fa1Sahl * The contents of this file are subject to the terms of the
5*c9431fa1Sahl * Common Development and Distribution License (the "License").
6*c9431fa1Sahl * You may not use this file except in compliance with the License.
7*c9431fa1Sahl *
8*c9431fa1Sahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*c9431fa1Sahl * or http://www.opensolaris.org/os/licensing.
10*c9431fa1Sahl * See the License for the specific language governing permissions
11*c9431fa1Sahl * and limitations under the License.
12*c9431fa1Sahl *
13*c9431fa1Sahl * When distributing Covered Code, include this CDDL HEADER in each
14*c9431fa1Sahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*c9431fa1Sahl * If applicable, add the following below this CDDL HEADER, with the
16*c9431fa1Sahl * fields enclosed by brackets "[]" replaced with your own identifying
17*c9431fa1Sahl * information: Portions Copyright [yyyy] [name of copyright owner]
18*c9431fa1Sahl *
19*c9431fa1Sahl * CDDL HEADER END
20*c9431fa1Sahl */
21*c9431fa1Sahl
22*c9431fa1Sahl /*
23*c9431fa1Sahl * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24*c9431fa1Sahl * Use is subject to license terms.
25*c9431fa1Sahl */
26*c9431fa1Sahl
27*c9431fa1Sahl #pragma ident "%Z%%M% %I% %E% SMI"
28*c9431fa1Sahl
29*c9431fa1Sahl #include <sys/types.h>
30*c9431fa1Sahl #include <sys/zmod.h>
31*c9431fa1Sahl
32*c9431fa1Sahl #include "zlib.h"
33*c9431fa1Sahl
34*c9431fa1Sahl /*ARGSUSED*/
35*c9431fa1Sahl int
z_uncompress(void * dst,size_t * dstlen,const void * src,size_t srclen)36*c9431fa1Sahl z_uncompress(void *dst, size_t *dstlen, const void *src, size_t srclen)
37*c9431fa1Sahl {
38*c9431fa1Sahl return (0);
39*c9431fa1Sahl }
40*c9431fa1Sahl
41*c9431fa1Sahl /*ARGSUSED*/
42*c9431fa1Sahl int
z_compress(void * dst,size_t * dstlen,const void * src,size_t srclen)43*c9431fa1Sahl z_compress(void *dst, size_t *dstlen, const void *src, size_t srclen)
44*c9431fa1Sahl {
45*c9431fa1Sahl return (0);
46*c9431fa1Sahl }
47*c9431fa1Sahl
48*c9431fa1Sahl /*ARGSUSED*/
49*c9431fa1Sahl int
z_compress_level(void * dst,size_t * dstlen,const void * src,size_t srclen,int level)50*c9431fa1Sahl z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen,
51*c9431fa1Sahl int level)
52*c9431fa1Sahl {
53*c9431fa1Sahl return (0);
54*c9431fa1Sahl }
55*c9431fa1Sahl
56*c9431fa1Sahl /*ARGSUSED*/
57*c9431fa1Sahl const char *
z_strerror(int err)58*c9431fa1Sahl z_strerror(int err)
59*c9431fa1Sahl {
60*c9431fa1Sahl return (NULL);
61*c9431fa1Sahl }
62*c9431fa1Sahl
63*c9431fa1Sahl /*ARGSUSED*/
64*c9431fa1Sahl int
inflate(z_streamp strm,int flush)65*c9431fa1Sahl inflate(z_streamp strm, int flush)
66*c9431fa1Sahl {
67*c9431fa1Sahl return (0);
68*c9431fa1Sahl }
69*c9431fa1Sahl
70*c9431fa1Sahl /*ARGSUSED*/
71*c9431fa1Sahl int
inflateInit2_(z_streamp strm,int window,const char * version,int size)72*c9431fa1Sahl inflateInit2_(z_streamp strm, int window, const char *version, int size)
73*c9431fa1Sahl {
74*c9431fa1Sahl return (0);
75*c9431fa1Sahl }
76*c9431fa1Sahl
77*c9431fa1Sahl /*ARGSUSED*/
78*c9431fa1Sahl int
inflateEnd(z_streamp strm)79*c9431fa1Sahl inflateEnd(z_streamp strm)
80*c9431fa1Sahl {
81*c9431fa1Sahl return (0);
82*c9431fa1Sahl }
83*c9431fa1Sahl
84*c9431fa1Sahl /*ARGSUSED*/
85*c9431fa1Sahl int
inflateReset(z_streamp strm)86*c9431fa1Sahl inflateReset(z_streamp strm)
87*c9431fa1Sahl {
88*c9431fa1Sahl return (0);
89*c9431fa1Sahl }
90