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