Lines Matching refs:cdpath
340 iconv_p cdpath;
342 if ((cdpath = malloc(sizeof (struct _iconv_fields))) == NULL)
345 if ((cdpath->_icv_handle = dlopen(lib, RTLD_LAZY)) == 0) {
346 free(cdpath);
353 if ((fptr = (iconv_t(*)(const char *))dlsym(cdpath->_icv_handle,
355 (void) dlclose(cdpath->_icv_handle);
356 free(cdpath);
364 * and stores it in cdpath->_icv_iconv
367 if ((cdpath->_icv_iconv = (size_t(*)(iconv_t, const char **,
368 size_t *, char **, size_t *))dlsym(cdpath->_icv_handle,
370 (void) dlclose(cdpath->_icv_handle);
371 free(cdpath);
381 if ((cdpath->_icv_close = (void(*)(iconv_t))dlsym(cdpath->_icv_handle,
383 (void) dlclose(cdpath->_icv_handle);
384 free(cdpath);
395 cdpath->_icv_state = (void *)(*fptr)(tbl);
397 if (cdpath->_icv_state == (struct _icv_state *)-1) {
398 (void) dlclose(cdpath->_icv_handle);
399 free(cdpath);
405 return (cdpath);