Lines Matching refs:item
133 HT_ITEM *item; in ht_destroy_table() local
141 while ((item = ht_findfirst(handle, &iterator)) != 0) in ht_destroy_table()
142 (void) ht_remove_item(handle, item->hi_key); in ht_destroy_table()
232 HT_ITEM *item; in ht_add_item() local
251 if ((item = malloc(msize)) == 0) in ht_add_item()
254 item->hi_key = (char *)item + sizeof (HT_ITEM); in ht_add_item()
255 (void) memcpy(item->hi_key, key, key_len); in ht_add_item()
256 item->hi_data = (void *)data; in ht_add_item()
257 item->hi_flags = 0; in ht_add_item()
264 item->hi_next = handle->ht_table[h_index].he_head; in ht_add_item()
265 handle->ht_table[h_index].he_head = item; in ht_add_item()
271 return (item); in ht_add_item()
497 ht_mark_delete(HT_HANDLE *handle, HT_ITEM *item) in ht_mark_delete() argument
499 if (handle && item) { in ht_mark_delete()
500 item->hi_flags |= HTIF_MARKED_DELETED; in ht_mark_delete()
511 ht_clear_delete(HT_HANDLE *handle, HT_ITEM *item) in ht_clear_delete() argument
513 if (handle && item) { in ht_clear_delete()
514 item->hi_flags &= ~HTIF_MARKED_DELETED; in ht_clear_delete()
528 HT_ITEM *item = head; in ht_bucket_search() local
529 while ((item != 0) && (item->hi_flags & HTIF_MARKED_DELETED)) in ht_bucket_search()
530 item = item->hi_next; in ht_bucket_search()
532 return (item); in ht_bucket_search()
548 HT_ITEM *item; in ht_findfirst() local
559 item = ht_bucket_search(handle->ht_table[h_index].he_head); in ht_findfirst()
560 if (item != 0) { in ht_findfirst()
562 iterator->hti_item = item; in ht_findfirst()
563 return (item); in ht_findfirst()
589 HT_ITEM *item; in ht_findnext() local
613 item = ht_bucket_search(iterator->hti_item->hi_next); in ht_findnext()
614 if (item != 0) { in ht_findnext()
615 iterator->hti_item = item; in ht_findnext()
616 return (item); in ht_findnext()
625 item = ht_bucket_search(handle->ht_table[index].he_head); in ht_findnext()
626 if (item != 0) { in ht_findnext()
628 iterator->hti_item = item; in ht_findnext()
629 return (item); in ht_findnext()