Lines Matching refs:htab
62 __hcreate_r (size_t nel, struct hsearch_data *htab) in __hcreate_r() argument
65 if (htab == NULL) in __hcreate_r()
72 if (htab->table != NULL) in __hcreate_r()
93 htab->size = nel; in __hcreate_r()
94 htab->filled = 0; in __hcreate_r()
97 htab->table = (_ENTRY *) calloc (htab->size + 1, sizeof (_ENTRY)); in __hcreate_r()
98 if (htab->table == NULL) in __hcreate_r()
111 __hdestroy_r (struct hsearch_data *htab) in weak_alias()
114 if (htab == NULL) in weak_alias()
121 free (htab->table); in weak_alias()
124 htab->table = NULL; in weak_alias()
145 struct hsearch_data *htab) in weak_alias()
164 idx = hval % htab->size + 1; in weak_alias()
166 if (htab->table[idx].used) in weak_alias()
169 if (htab->table[idx].used == hval in weak_alias()
170 && strcmp (item.key, htab->table[idx].entry.key) == 0) in weak_alias()
172 *retval = &htab->table[idx].entry; in weak_alias()
177 unsigned int hval2 = 1 + hval % (htab->size - 2); in weak_alias()
185 idx = htab->size + idx - hval2; in weak_alias()
194 if (htab->table[idx].used == hval in weak_alias()
195 && strcmp (item.key, htab->table[idx].entry.key) == 0) in weak_alias()
197 *retval = &htab->table[idx].entry; in weak_alias()
201 while (htab->table[idx].used); in weak_alias()
209 if (htab->filled == htab->size) in weak_alias()
216 htab->table[idx].used = hval; in weak_alias()
217 htab->table[idx].entry = item; in weak_alias()
219 ++htab->filled; in weak_alias()
221 *retval = &htab->table[idx].entry; in weak_alias()