Lines Matching refs:key

70 static void _hdelete(const char *key, struct hsearch_data *htab,
163 free((void *)ep->key); in hdestroy_r()
219 if (!strncmp(match, htab->table[idx].entry.key, key_len)) { in hmatch_r()
251 && strcmp(item.key, htab->table[idx].entry.key) == 0) { in _compare_and_overwrite_entry()
259 "%s, skipping it!\n", item.key); in _compare_and_overwrite_entry()
266 if (do_callback(&htab->table[idx].entry, item.key, in _compare_and_overwrite_entry()
269 "%s, skipping it!\n", item.key); in _compare_and_overwrite_entry()
296 unsigned int len = strlen(item.key); in hsearch_r()
306 hval += item.key[count]; in hsearch_r()
391 htab->table[idx].entry.key = strdup(item.key); in hsearch_r()
393 if (!htab->table[idx].entry.key || in hsearch_r()
411 "%s, skipping it!\n", item.key); in hsearch_r()
412 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r()
419 if (do_callback(&htab->table[idx].entry, item.key, item.data, in hsearch_r()
422 "%s, skipping it!\n", item.key); in hsearch_r()
423 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r()
450 static void _hdelete(const char *key, struct hsearch_data *htab, in _hdelete() argument
454 debug("hdelete: DELETING key \"%s\"\n", key); in _hdelete()
455 free((void *)ep->key); in _hdelete()
463 int hdelete_r(const char *key, struct hsearch_data *htab, int flag) in hdelete_r() argument
468 debug("hdelete: DELETE key \"%s\"\n", key); in hdelete_r()
470 e.key = (char *)key; in hdelete_r()
482 "%s, skipping it!\n", key); in hdelete_r()
488 if (do_callback(&htab->table[idx].entry, key, NULL, in hdelete_r()
491 "%s, skipping it!\n", key); in hdelete_r()
496 _hdelete(key, htab, ep, idx); in hdelete_r()
549 return (strcmp(e1->key, e2->key)); in cmpkey()
599 if (match_string(flag, ep->key, argv[arg], priv)) in match_entry()
641 if ((flag & H_HIDE_DOT) && ep->key[0] == '.') in hexport_r()
646 totlen += strlen(ep->key); in hexport_r()
670 i, list[i], list[i]->key, list[i]->data); in hexport_r()
709 s = list[i]->key; in hexport_r()
948 e.key = name; in himport_r()