Searched refs:htab (Results 1 – 3 of 3) sorted by relevance
87 hcreate_r(size_t nel, struct hsearch_data *htab) in hcreate_r() argument93 if (htab->htable != NULL) { in hcreate_r()114 htab->htablesize = nel; in hcreate_r()115 htab->htable = malloc(htab->htablesize * sizeof htab->htable[0]); in hcreate_r()116 if (htab->htable == NULL) { in hcreate_r()122 for (idx = 0; idx < htab->htablesize; idx++) in hcreate_r()123 SLIST_INIT(&(htab->htable[idx])); in hcreate_r()129 hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument135 if (htab->htable == NULL) in hdestroy_r()139 for (idx = 0; idx < htab->htablesize; idx++) { in hdestroy_r()[all …]
55 static struct hsearch_data htab; variable60 return hcreate_r (nel, &htab); in hcreate()66 hdestroy_r (&htab); in hdestroy()75 hsearch_r (item, action, &retval, &htab); in hsearch()
115 typedef struct htab { /* Memory resident data structure */ struct