17c478bd9Sstevel@tonic-gate /* 2*a0b85df4Sstevel * CDDL HEADER START 3*a0b85df4Sstevel * 4*a0b85df4Sstevel * The contents of this file are subject to the terms of the 5*a0b85df4Sstevel * Common Development and Distribution License, Version 1.0 only 6*a0b85df4Sstevel * (the "License"). You may not use this file except in compliance 7*a0b85df4Sstevel * with the License. 8*a0b85df4Sstevel * 9*a0b85df4Sstevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*a0b85df4Sstevel * or http://www.opensolaris.org/os/licensing. 11*a0b85df4Sstevel * See the License for the specific language governing permissions 12*a0b85df4Sstevel * and limitations under the License. 13*a0b85df4Sstevel * 14*a0b85df4Sstevel * When distributing Covered Code, include this CDDL HEADER in each 15*a0b85df4Sstevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*a0b85df4Sstevel * If applicable, add the following below this CDDL HEADER, with the 17*a0b85df4Sstevel * fields enclosed by brackets "[]" replaced with your own identifying 18*a0b85df4Sstevel * information: Portions Copyright [yyyy] [name of copyright owner] 19*a0b85df4Sstevel * 20*a0b85df4Sstevel * CDDL HEADER END 21*a0b85df4Sstevel */ 22*a0b85df4Sstevel 23*a0b85df4Sstevel /* 247c478bd9Sstevel@tonic-gate * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 257c478bd9Sstevel@tonic-gate * Use is subject to license terms. 267c478bd9Sstevel@tonic-gate */ 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate #ifndef _ZMOD_H 297c478bd9Sstevel@tonic-gate #define _ZMOD_H 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #ifdef __cplusplus 347c478bd9Sstevel@tonic-gate extern "C" { 357c478bd9Sstevel@tonic-gate #endif 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate /* 387c478bd9Sstevel@tonic-gate * zmod - RFC-1950-compatible decompression routines 397c478bd9Sstevel@tonic-gate * 407c478bd9Sstevel@tonic-gate * This file provides the public interfaces to zmod, an in-kernel RFC 1950 417c478bd9Sstevel@tonic-gate * decompression library. More information about the implementation of these 427c478bd9Sstevel@tonic-gate * interfaces can be found in the usr/src/uts/common/zmod/ directory. 437c478bd9Sstevel@tonic-gate */ 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate #define Z_OK 0 467c478bd9Sstevel@tonic-gate #define Z_STREAM_END 1 477c478bd9Sstevel@tonic-gate #define Z_NEED_DICT 2 487c478bd9Sstevel@tonic-gate #define Z_ERRNO (-1) 497c478bd9Sstevel@tonic-gate #define Z_STREAM_ERROR (-2) 507c478bd9Sstevel@tonic-gate #define Z_DATA_ERROR (-3) 517c478bd9Sstevel@tonic-gate #define Z_MEM_ERROR (-4) 527c478bd9Sstevel@tonic-gate #define Z_BUF_ERROR (-5) 537c478bd9Sstevel@tonic-gate #define Z_VERSION_ERROR (-6) 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate extern int z_uncompress(void *, size_t *, const void *, size_t); 567c478bd9Sstevel@tonic-gate extern const char *z_strerror(int); 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate #ifdef __cplusplus 597c478bd9Sstevel@tonic-gate } 607c478bd9Sstevel@tonic-gate #endif 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate #endif /* _ZMOD_H */ 63