Lines Matching refs:bucket
201 db_table_desc* bucket;
205 /* delete each bucket */
207 bucket = dict->tables.tables_val[i];
208 if (bucket)
209 delete_bucket(bucket);
218 /* Relocate bucket starting with this entry to new hashtable 'new_tab'. */
220 relocate_bucket(db_table_desc* bucket,
225 for (np = bucket; np != NULL; np = next_np) {
238 enumerate_bucket(db_table_desc* bucket, db_status(*func)(db_table_desc *))
243 for (np = bucket; np != NULL; np = np->next) {
257 search_bucket(db_table_desc* bucket, unsigned long hval, char *target)
261 for (np = bucket; np != NULL; np = np->next) {
279 remove_from_bucket(db_table_desc_p bucket,
285 /* Search for it in the bucket */
286 for (dp = np = bucket; np != NULL; np = np->next) {
299 *head = np->next; // deleting head of bucket
311 * Add given entry to the bucket pointed to by 'bucket'.
313 * is done. The entry is added to the head of the bucket.
316 add_to_bucket(db_table_desc_p bucket, db_table_desc **head, db_table_desc_p td)
324 /* Search for it in the bucket */
325 for (prev = curr = bucket; curr != NULL; curr = curr->next) {
344 /* Print bucket starting with this entry. */
461 db_table_desc *bucket;
468 bucket = dd->tables.tables_val[i];
469 if (bucket) {
470 status = enumerate_bucket(bucket, func);
488 unsigned long bucket;
494 bucket = hval % dd->tables.tables_len;
496 db_table_desc_p fst = dd->tables.tables_val[bucket];
514 unsigned long bucket;
522 bucket = hval % dd->tables.tables_len;
523 fst = dd->tables.tables_val[bucket];
526 if (remove_from_bucket(fst, &dd->tables.tables_val[bucket],
570 unsigned long bucket;
571 bucket = hval % dd->tables.tables_len;
572 fst = dd->tables.tables_val[bucket];
574 if (fst == NULL) { /* Empty bucket */
575 dd->tables.tables_val[bucket] = td;
576 } else if (!add_to_bucket(fst, &dd->tables.tables_val[bucket], td)) {
623 * This routine clones an entire hash bucket chain. If you clone a
626 * pain if you then pass the cloned bucket to routines such as
629 * entires or lose entries. If you wish to clone the entire bucket chain
634 db_dictionary::db_clone_bucket(db_table_desc *bucket, db_table_desc **clone)
642 size = xdr_sizeof((xdrproc_t) use_this, (void *) bucket);
651 if (!xdr_db_table_desc(&xdrs, bucket)) {
842 db_table_desc *bucket, *np, *clone, *next_np;
875 bucket = dictionary->tables.tables_val[i];
876 if (bucket) {
877 np = bucket;
2188 /* ... and each bucket in the chain ... */