Lines Matching refs:zs
56 z_stream zs; in z_uncompress() local
59 bzero(&zs, sizeof (zs)); in z_uncompress()
60 zs.next_in = (unsigned char *)src; in z_uncompress()
61 zs.avail_in = srclen; in z_uncompress()
62 zs.next_out = dst; in z_uncompress()
63 zs.avail_out = *dstlen; in z_uncompress()
64 zs.zalloc = zfs_zcalloc; in z_uncompress()
65 zs.zfree = zfs_zcfree; in z_uncompress()
72 if ((err = inflateInit2(&zs, DEF_WBITS | 0x20)) != Z_OK) in z_uncompress()
75 if ((err = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { in z_uncompress()
76 (void) inflateEnd(&zs); in z_uncompress()
80 *dstlen = zs.total_out; in z_uncompress()
81 return (inflateEnd(&zs)); in z_uncompress()