Lines Matching refs:found

70   struct __gconv_loaded_object *found;  in __gconv_find_shlib()  local
90 found = malloc (sizeof (struct __gconv_loaded_object) + namelen); in __gconv_find_shlib()
91 if (found != NULL) in __gconv_find_shlib()
94 found->name = (char *) memcpy (found + 1, name, namelen); in __gconv_find_shlib()
95 found->counter = -TRIES_BEFORE_UNLOAD - 1; in __gconv_find_shlib()
96 found->handle = NULL; in __gconv_find_shlib()
98 if (__builtin_expect (tsearch (found, &loaded, known_compare) in __gconv_find_shlib()
102 free (found); in __gconv_find_shlib()
103 found = NULL; in __gconv_find_shlib()
108 found = *(struct __gconv_loaded_object **) keyp; in __gconv_find_shlib()
113 if (found != NULL) in __gconv_find_shlib()
115 if (found->counter < -TRIES_BEFORE_UNLOAD) in __gconv_find_shlib()
117 assert (found->handle == NULL); in __gconv_find_shlib()
118 found->handle = __libc_dlopen (found->name); in __gconv_find_shlib()
119 if (found->handle != NULL) in __gconv_find_shlib()
121 found->fct = __libc_dlsym (found->handle, "gconv"); in __gconv_find_shlib()
122 if (found->fct == NULL) in __gconv_find_shlib()
126 __gconv_release_shlib (found); in __gconv_find_shlib()
127 found = NULL; in __gconv_find_shlib()
131 found->init_fct = __libc_dlsym (found->handle, "gconv_init"); in __gconv_find_shlib()
132 found->end_fct = __libc_dlsym (found->handle, "gconv_end"); in __gconv_find_shlib()
135 found->counter = 1; in __gconv_find_shlib()
140 found = NULL; in __gconv_find_shlib()
142 else if (found->handle != NULL) in __gconv_find_shlib()
143 found->counter = MAX (found->counter + 1, 1); in __gconv_find_shlib()
146 return found; in __gconv_find_shlib()