Lines Matching refs:zlib
57 } zlib; variable
94 if (zlib.z_dlp != NULL) in ctf_zopen()
95 return (zlib.z_dlp); /* library is already loaded */ in ctf_zopen()
100 if ((zlib.z_dlp = dlopen(_libctf_zlib, RTLD_LAZY | RTLD_LOCAL)) == NULL) in ctf_zopen()
103 …zlib.z_uncompress = (int (*)(uchar_t *, ulong_t *, const uchar_t *, ulong_t)) dlsym(zlib.z_dlp, "u… in ctf_zopen()
104 zlib.z_error = (const char *(*)(int)) dlsym(zlib.z_dlp, "zError"); in ctf_zopen()
106 if (zlib.z_uncompress == NULL || zlib.z_error == NULL) { in ctf_zopen()
107 (void) dlclose(zlib.z_dlp); in ctf_zopen()
108 bzero(&zlib, sizeof (zlib)); in ctf_zopen()
112 zlib.z_uncompress = uncompress; in ctf_zopen()
113 zlib.z_error = zError; in ctf_zopen()
116 zlib.z_dlp = (void *) (uintptr_t) 1; in ctf_zopen()
119 return (zlib.z_dlp); in ctf_zopen()
129 return (zlib.z_uncompress(dst, (ulong_t *)dstlen, src, srclen)); in z_uncompress()
135 return (zlib.z_error(err)); in z_strerror()