Lines Matching refs:db_entry
57 nscd_db_entry_t db_entry; member
126 nscd_db_entry_t *db_entry; in scan_hash() local
129 db_entry = &((nscd_hash_t *)idx_p)->db_entry; in scan_hash()
130 if (db_entry->type == type) { in scan_hash()
131 if (strcasecmp(str, db_entry->name) == 0) { in scan_hash()
136 if (id_num == db_entry->id_num) in scan_hash()
144 if (id_num == db_entry->id_num) in scan_hash()
179 return (&hash_p->db_entry); in _nscd_get_db_entry()
200 nscd_db_entry_t *db_entry; in _nscd_add_db_entry() local
213 db_entry = &idx_p->db_entry; in _nscd_add_db_entry()
221 if (db_entry->type != entry->type) in _nscd_add_db_entry()
223 if (strcasecmp(db_entry->name, str) != 0) in _nscd_add_db_entry()
226 if (db_entry->id_num == entry->id_num) { in _nscd_add_db_entry()
235 if (db_entry->type != entry->type) in _nscd_add_db_entry()
237 if (strcasecmp(db_entry->name, str) != 0) in _nscd_add_db_entry()
297 nscd_db_entry_t *db_entry; in _nscd_delete_db_entry() local
309 db_entry = &idx_p->db_entry; in _nscd_delete_db_entry()
310 if (db_entry->type != type) in _nscd_delete_db_entry()
312 if (strcasecmp(db_entry->name, str) != 0) in _nscd_delete_db_entry()
324 if (db_entry->id_num == id_num) { in _nscd_delete_db_entry()
405 hash->db_entry.num_data = num_data; in _nscd_alloc_db_entry()
406 hash->db_entry.num_array = num_array; in _nscd_alloc_db_entry()
407 hash->db_entry.type = type; in _nscd_alloc_db_entry()
408 hash->db_entry.name = (char *)hash + sizeof (*hash); in _nscd_alloc_db_entry()
410 hash->db_entry.data_array = (void **)p; in _nscd_alloc_db_entry()
411 *(hash->db_entry.data_array) = (char *)hash + data_o; in _nscd_alloc_db_entry()
412 (void) strcpy(hash->db_entry.name, name); in _nscd_alloc_db_entry()
414 return (&hash->db_entry); in _nscd_alloc_db_entry()
590 return (&c->hash->db_entry); in _nscd_walk_db()
616 return (&c->hash->db_entry); in _nscd_walk_db()