xref: /onnv-gate/usr/src/uts/common/sys/zmod.h (revision 420:45e68e7aede3)
1*420Sstevel /*
2*420Sstevel  * CDDL HEADER START
3*420Sstevel  *
4*420Sstevel  * The contents of this file are subject to the terms of the
5*420Sstevel  * Common Development and Distribution License, Version 1.0 only
6*420Sstevel  * (the "License").  You may not use this file except in compliance
7*420Sstevel  * with the License.
8*420Sstevel  *
9*420Sstevel  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*420Sstevel  * or http://www.opensolaris.org/os/licensing.
11*420Sstevel  * See the License for the specific language governing permissions
12*420Sstevel  * and limitations under the License.
13*420Sstevel  *
14*420Sstevel  * When distributing Covered Code, include this CDDL HEADER in each
15*420Sstevel  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*420Sstevel  * If applicable, add the following below this CDDL HEADER, with the
17*420Sstevel  * fields enclosed by brackets "[]" replaced with your own identifying
18*420Sstevel  * information: Portions Copyright [yyyy] [name of copyright owner]
19*420Sstevel  *
20*420Sstevel  * CDDL HEADER END
21*420Sstevel  */
22*420Sstevel 
230Sstevel@tonic-gate /*
240Sstevel@tonic-gate  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
250Sstevel@tonic-gate  * Use is subject to license terms.
260Sstevel@tonic-gate  */
270Sstevel@tonic-gate 
280Sstevel@tonic-gate #ifndef	_ZMOD_H
290Sstevel@tonic-gate #define	_ZMOD_H
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
320Sstevel@tonic-gate 
330Sstevel@tonic-gate #ifdef	__cplusplus
340Sstevel@tonic-gate extern "C" {
350Sstevel@tonic-gate #endif
360Sstevel@tonic-gate 
370Sstevel@tonic-gate /*
380Sstevel@tonic-gate  * zmod - RFC-1950-compatible decompression routines
390Sstevel@tonic-gate  *
400Sstevel@tonic-gate  * This file provides the public interfaces to zmod, an in-kernel RFC 1950
410Sstevel@tonic-gate  * decompression library.  More information about the implementation of these
420Sstevel@tonic-gate  * interfaces can be found in the usr/src/uts/common/zmod/ directory.
430Sstevel@tonic-gate  */
440Sstevel@tonic-gate 
450Sstevel@tonic-gate #define	Z_OK		0
460Sstevel@tonic-gate #define	Z_STREAM_END	1
470Sstevel@tonic-gate #define	Z_NEED_DICT	2
480Sstevel@tonic-gate #define	Z_ERRNO		(-1)
490Sstevel@tonic-gate #define	Z_STREAM_ERROR	(-2)
500Sstevel@tonic-gate #define	Z_DATA_ERROR	(-3)
510Sstevel@tonic-gate #define	Z_MEM_ERROR	(-4)
520Sstevel@tonic-gate #define	Z_BUF_ERROR	(-5)
530Sstevel@tonic-gate #define	Z_VERSION_ERROR	(-6)
540Sstevel@tonic-gate 
550Sstevel@tonic-gate extern int z_uncompress(void *, size_t *, const void *, size_t);
560Sstevel@tonic-gate extern const char *z_strerror(int);
570Sstevel@tonic-gate 
580Sstevel@tonic-gate #ifdef	__cplusplus
590Sstevel@tonic-gate }
600Sstevel@tonic-gate #endif
610Sstevel@tonic-gate 
620Sstevel@tonic-gate #endif	/* _ZMOD_H */
63