Lines Matching refs:table
70 info_table_t *table; member
83 static void free_table(info_table_t *table, size_t table_len);
332 info_table_t *table; in merge_rcm_info() local
337 if ((rv = build_table(info, &table, &table_len)) != 0) { in merge_rcm_info()
343 if ((table == NULL) || (table_len == 0)) { in merge_rcm_info()
350 arg.table = table; in merge_rcm_info()
357 free_table(table, table_len); in merge_rcm_info()
470 if ((slot = bsearch(&lookup, arg->table, arg->table_len, in merge_callback()
522 info_table_t *table; in build_table() local
542 table = (info_table_t *)calloc(table_len, sizeof (info_table_t)); in build_table()
543 if (table == NULL) in build_table()
575 slot = &table[table_len]; in build_table()
578 free_table(table, table_len); in build_table()
591 free_table(table, table_len); in build_table()
603 free_table(table, table_len); in build_table()
611 free(table); in build_table()
616 qsort(table, table_len, sizeof (info_table_t), compare_info); in build_table()
619 *tablep = table; in build_table()
630 free_table(info_table_t *table, size_t table_len) in free_table() argument
635 if (table != NULL) { in free_table()
637 if (table[index].path != NULL) in free_table()
638 free(table[index].path); in free_table()
639 while (table[index].entries != NULL) { in free_table()
640 entry = table[index].entries; in free_table()
641 table[index].entries = entry->next; in free_table()
649 free(table); in free_table()