Lines Matching defs:zlib
49 } zlib;
79 if (zlib.z_dlp != NULL)
80 return (zlib.z_dlp); /* library is already loaded */
85 if ((zlib.z_dlp = dlopen(_libctf_zlib, RTLD_LAZY | RTLD_LOCAL)) == NULL)
88 zlib.z_uncompress = (int (*)()) dlsym(zlib.z_dlp, "uncompress");
89 zlib.z_error = (const char *(*)()) dlsym(zlib.z_dlp, "zError");
91 if (zlib.z_uncompress == NULL || zlib.z_error == NULL) {
92 (void) dlclose(zlib.z_dlp);
93 bzero(&zlib, sizeof (zlib));
97 return (zlib.z_dlp);
107 return (zlib.z_uncompress(dst, (ulong_t *)dstlen, src, srclen));
113 return (zlib.z_error(err));