1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate */ 5*7c478bd9Sstevel@tonic-gate 6*7c478bd9Sstevel@tonic-gate #ifndef _ZMOD_H 7*7c478bd9Sstevel@tonic-gate #define _ZMOD_H 8*7c478bd9Sstevel@tonic-gate 9*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 10*7c478bd9Sstevel@tonic-gate 11*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 12*7c478bd9Sstevel@tonic-gate extern "C" { 13*7c478bd9Sstevel@tonic-gate #endif 14*7c478bd9Sstevel@tonic-gate 15*7c478bd9Sstevel@tonic-gate /* 16*7c478bd9Sstevel@tonic-gate * zmod - RFC-1950-compatible decompression routines 17*7c478bd9Sstevel@tonic-gate * 18*7c478bd9Sstevel@tonic-gate * This file provides the public interfaces to zmod, an in-kernel RFC 1950 19*7c478bd9Sstevel@tonic-gate * decompression library. More information about the implementation of these 20*7c478bd9Sstevel@tonic-gate * interfaces can be found in the usr/src/uts/common/zmod/ directory. 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate 23*7c478bd9Sstevel@tonic-gate #define Z_OK 0 24*7c478bd9Sstevel@tonic-gate #define Z_STREAM_END 1 25*7c478bd9Sstevel@tonic-gate #define Z_NEED_DICT 2 26*7c478bd9Sstevel@tonic-gate #define Z_ERRNO (-1) 27*7c478bd9Sstevel@tonic-gate #define Z_STREAM_ERROR (-2) 28*7c478bd9Sstevel@tonic-gate #define Z_DATA_ERROR (-3) 29*7c478bd9Sstevel@tonic-gate #define Z_MEM_ERROR (-4) 30*7c478bd9Sstevel@tonic-gate #define Z_BUF_ERROR (-5) 31*7c478bd9Sstevel@tonic-gate #define Z_VERSION_ERROR (-6) 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gate extern int z_uncompress(void *, size_t *, const void *, size_t); 34*7c478bd9Sstevel@tonic-gate extern const char *z_strerror(int); 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 37*7c478bd9Sstevel@tonic-gate } 38*7c478bd9Sstevel@tonic-gate #endif 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate #endif /* _ZMOD_H */ 41