Lines Matching refs:zlib
47 } zlib; variable
77 if (zlib.z_dlp != NULL) in ctf_zopen()
78 return (zlib.z_dlp); /* library is already loaded */ in ctf_zopen()
83 if ((zlib.z_dlp = dlopen(_libctf_zlib, RTLD_LAZY | RTLD_LOCAL)) == NULL) in ctf_zopen()
86 zlib.z_uncompress = (int (*)()) dlsym(zlib.z_dlp, "uncompress"); in ctf_zopen()
87 zlib.z_error = (const char *(*)()) dlsym(zlib.z_dlp, "zError"); in ctf_zopen()
89 if (zlib.z_uncompress == NULL || zlib.z_error == NULL) { in ctf_zopen()
90 (void) dlclose(zlib.z_dlp); in ctf_zopen()
91 bzero(&zlib, sizeof (zlib)); in ctf_zopen()
95 return (zlib.z_dlp); in ctf_zopen()
105 return (zlib.z_uncompress(dst, (ulong_t *)dstlen, src, srclen)); in z_uncompress()
111 return (zlib.z_error(err)); in z_strerror()