Lines Matching defs:table
35 * SysV/XPG4 hash table functions.
91 _DIAGASSERT(htable.table == NULL);
93 /* Make sure this isn't called when a table already exists. */
94 if (htable.table != NULL) {
104 struct internal_head *table;
124 /* Allocate the table. */
127 table = NULL;
128 errno = reallocarr(&table, nel, sizeof(*table));
131 head->table = (void *)table;
135 SLIST_INIT(&table[idx]);
143 _DIAGASSERT(htable.table != NULL);
160 struct internal_head *table;
165 p = head->table;
166 head->table = NULL;
167 table = p;
170 while (!SLIST_EMPTY(&table[idx])) {
171 ie = SLIST_FIRST(&table[idx]);
172 SLIST_REMOVE_HEAD(&table[idx], link);
180 free(table);
193 _DIAGASSERT(htable.table != NULL);
201 struct internal_head *table, *chain;
210 p = head->table;
211 table = p;
216 chain = &table[hashval & (head->size - 1)];