Lines Matching refs:b

224 	bucket_t *b;  in add_by_name()  local
235 if ((b = find_in_hashmap(version)) == NULL) { in add_by_name()
293 b->b_protected_table = in add_by_name()
294 add_to_stringtable(b->b_protected_table, buffer); in add_by_name()
295 b->b_has_protecteds = 1; in add_by_name()
296 errlog(VERBOSE, "set has_protecteds on bucket 0x%p", b); in add_by_name()
299 b->b_global_table = add_to_stringtable(b->b_global_table, in add_by_name()
318 bucket_t *l, *b; in sort_buckets() local
323 for (b = first_from_list(l); b != NULL; b = next_from_list()) { in sort_buckets()
324 errlog(VERBOSE, " b-bkt: %s", b->b_name); in sort_buckets()
325 sort_stringtable(b->b_global_table); in sort_buckets()
326 sort_stringtable(b->b_protected_table); in sort_buckets()
327 if (b->b_uncles) { in sort_buckets()
329 if (b->b_uncles->bl_bucket) { in sort_buckets()
330 sort_stringtable(b->b_uncles->bl_bucket->b_global_table); in sort_buckets()
331 sort_stringtable(b->b_uncles->bl_bucket->b_protected_table); in sort_buckets()
348 bucket_t *b, *list; in add_local() local
355 for (b = list; b != NULL; b = b->b_parent) { in add_local()
356 if (b->b_weak != 1) { in add_local()
358 b->b_has_locals = done = 1; in add_local()
360 "set has_locals on bucket 0x%p", b); in add_local()
364 if (b != NULL && b->b_has_locals == 1) in add_local()
386 const bucket_t *b = start; in parents_of() local
394 if (b->b_parent == NULL) { in parents_of()
399 b = b->b_parent; in parents_of()
400 *p++ = b->b_name; in parents_of()
418 print_bucket(const bucket_t *b) in print_bucket() argument
421 errlog(TRACING, "bucket_t at 0x%p {", (void *)b); in print_bucket()
422 errlog(TRACING, " char *b_name = \"%s\";", b->b_name); in print_bucket()
424 (void *)b->b_parent); in print_bucket()
426 (void *)b->b_uncles); in print_bucket()
428 (void *)b->b_thread); in print_bucket()
430 b->b_has_locals); in print_bucket()
432 b->b_has_protecteds); in print_bucket()
434 b->b_was_printed); in print_bucket()
436 b->b_weak); in print_bucket()
438 (void *)b->b_global_table); in print_bucket()
440 (void *)b->b_protected_table); in print_bucket()
447 bucket_t *l, *b; in print_all_buckets() local
453 for (j = 0, b = first_from_list(l); in print_all_buckets()
454 b != NULL; b = next_from_list(), ++j) { in print_all_buckets()
456 print_bucket(b); in print_all_buckets()
458 print_stringtable(b->b_global_table); in print_all_buckets()
461 print_stringtable(b->b_protected_table); in print_all_buckets()
464 for (p = parents_of(b); p != NULL && *p != NULL; ++p) { in print_all_buckets()
469 if (b->b_uncles) { in print_all_buckets()
471 print_bucket(b->b_uncles->bl_bucket); in print_all_buckets()
474 b->b_uncles->bl_bucket->b_global_table); in print_all_buckets()
478 b->b_uncles->bl_bucket->b_protected_table); in print_all_buckets()
496 bucket_t *b; in new_bucket() local
498 if ((b = (bucket_t *)calloc(1, sizeof (bucket_t))) == NULL) { in new_bucket()
502 if ((b->b_name = strdup(name)) == NULL) { in new_bucket()
506 b->b_uncles = NULL; in new_bucket()
507 b->b_global_table = create_stringtable(TABLE_INITIAL); in new_bucket()
508 b->b_protected_table = create_stringtable(TABLE_INITIAL); in new_bucket()
509 b->b_weak = weak; in new_bucket()
510 return (b); in new_bucket()
518 start_new_list(const bucket_t *b) in start_new_list() argument
529 Buckethead[i] = (bucket_t *)b; in start_new_list()