Lines Matching refs:item

135 	HT_ITEM *item;  in ht_destroy_table()  local
143 while ((item = ht_findfirst(handle, &iterator)) != 0) in ht_destroy_table()
144 (void) ht_remove_item(handle, item->hi_key); in ht_destroy_table()
234 HT_ITEM *item; in ht_add_item() local
253 if ((item = malloc(msize)) == 0) in ht_add_item()
256 item->hi_key = (char *)item + sizeof (HT_ITEM); in ht_add_item()
257 (void) memcpy(item->hi_key, key, key_len); in ht_add_item()
258 item->hi_data = (void *)data; in ht_add_item()
259 item->hi_flags = 0; in ht_add_item()
266 item->hi_next = handle->ht_table[h_index].he_head; in ht_add_item()
267 handle->ht_table[h_index].he_head = item; in ht_add_item()
273 return (item); in ht_add_item()
499 ht_mark_delete(HT_HANDLE *handle, HT_ITEM *item) in ht_mark_delete() argument
501 if (handle && item) { in ht_mark_delete()
502 item->hi_flags |= HTIF_MARKED_DELETED; in ht_mark_delete()
513 ht_clear_delete(HT_HANDLE *handle, HT_ITEM *item) in ht_clear_delete() argument
515 if (handle && item) { in ht_clear_delete()
516 item->hi_flags &= ~HTIF_MARKED_DELETED; in ht_clear_delete()
530 HT_ITEM *item = head; in ht_bucket_search() local
531 while ((item != 0) && (item->hi_flags & HTIF_MARKED_DELETED)) in ht_bucket_search()
532 item = item->hi_next; in ht_bucket_search()
534 return (item); in ht_bucket_search()
550 HT_ITEM *item; in ht_findfirst() local
561 item = ht_bucket_search(handle->ht_table[h_index].he_head); in ht_findfirst()
562 if (item != 0) { in ht_findfirst()
564 iterator->hti_item = item; in ht_findfirst()
565 return (item); in ht_findfirst()
591 HT_ITEM *item; in ht_findnext() local
615 item = ht_bucket_search(iterator->hti_item->hi_next); in ht_findnext()
616 if (item != 0) { in ht_findnext()
617 iterator->hti_item = item; in ht_findnext()
618 return (item); in ht_findnext()
627 item = ht_bucket_search(handle->ht_table[index].he_head); in ht_findnext()
628 if (item != 0) { in ht_findnext()
630 iterator->hti_item = item; in ht_findnext()
631 return (item); in ht_findnext()