/titanic_44/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 59 table_size = 0; in db_index() 85 for (i = 0; i < table_size; i++) { // go through table in reset() 98 table_size = count = 0; in reset() 144 long unsigned oldsize = table_size, i; in grow() 148 table_size = get_next_hashsize(table_size); in grow() 152 fprintf(ddt, "savehash GROWING to %d\n", table_size); in grow() 155 if (table_size > CALLOC_LIMIT) { in grow() 156 table_size = oldsize; in grow() 164 calloc((unsigned int) table_size, in grow() 167 table_size = oldsize; in grow() [all …]
|
H A D | db_table.cc | 315 table_size = 0; in db_table() 350 i <= last_used && i < table_size && done < count; in reset() 360 table_size = last_used = count = 0; in reset() 429 long oldsize = table_size; in grow() 433 table_size = get_new_table_size(oldsize); in grow() 436 fprintf(stderr, "db_table GROWING to %d\n", table_size); in grow() 439 if (table_size > CALLOC_LIMIT) { in grow() 440 table_size = oldsize; in grow() 448 calloc((unsigned int) table_size, in grow() 451 table_size = oldsize; in grow() [all …]
|
H A D | db_table_c.x | 151 % long table_size; 227 % long getsize() { return table_size; }
|
H A D | db_index_c.x | 67 % long table_size;
|
/titanic_44/usr/src/cmd/tnf/tnfdump/ |
H A D | table.c | 41 static int table_size = 0; /* max number of elements */ variable 54 table_size = num_entries; in table_grow() 55 table_start = malloc(table_size * sizeof (struct entry)); in table_grow() 60 table_size += num_entries; in table_grow() 61 temp = realloc(table_start, table_size * sizeof (struct entry)); in table_grow() 87 if (table_cur >= table_size) { in table_insert() 97 return (table_size); in table_get_num_elements()
|
/titanic_44/usr/src/cmd/oawk/ |
H A D | b.c | 829 insert_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, in insert_table() argument 846 for (i = 0, table = table_base; i < table_size; i++, table++) { in insert_table() 856 table_size++; in insert_table() 857 for (; i < table_size; i++, table++) { in insert_table() 882 return (table_size); in insert_table() 898 table_size++; in insert_table() 908 if ((i + 1) >= table_size) { in insert_table() 911 return (table_size); in insert_table() 922 for (; i < table_size; i++, table++) { in insert_table() 944 saved_i = table_size - (i - saved_i - 1); in insert_table() [all …]
|
/titanic_44/usr/src/cmd/geniconvtbl/ |
H A D | itm_util.c | 378 itm_size_t table_size; in range_table() local 404 table_size = ((sizeof (itm_tbl_hdr_t)) + in range_table() 406 table_size = ITMROUNDUP(table_size); in range_table() 408 table = malloc_vital(table_size); in range_table() 412 table->size = table_size; in range_table() 444 itm_size_t table_size; in escseq_table() local 464 table_size = ((sizeof (itm_tbl_hdr_t)) + in escseq_table() 467 table_size = ITMROUNDUP(table_size); in escseq_table() 468 table = malloc_vital(table_size); in escseq_table() 472 table->size = table_size; in escseq_table() [all …]
|
/titanic_44/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_ht.c | 89 ht_create_table(size_t table_size, size_t key_size, size_t flags) in ht_create_table() argument 95 if ((table_size == 0) || (key_size == 0)) in ht_create_table() 98 if (ht_is_power2(table_size) == 0) in ht_create_table() 101 msize = sizeof (HT_HANDLE) + (sizeof (HT_TABLE_ENTRY) * table_size); in ht_create_table() 108 ht->ht_table_size = table_size; in ht_create_table() 109 ht->ht_table_mask = table_size - 1; in ht_create_table() 119 for (i = 0; i < table_size; i++) in ht_create_table()
|
/titanic_44/usr/src/uts/common/sys/tsol/ |
H A D | tndb.h | 310 #define TSOL_ADDR_HASH(addr, table_size) \ argument 312 % (table_size)) 314 #define TSOL_ADDR_HASH_V6(addr, table_size) \ argument 317 (addr).s6_addr8[14] ^ (addr).s6_addr8[15]) % (table_size)) 320 #define TSOL_ADDR_MASK_HASH_V6(addr, mask, table_size) \ argument 326 ((addr).s6_addr8[15] & (mask).s6_addr8[15])) & ((table_size) - 1))
|
/titanic_44/usr/src/lib/libxcurses/src/tic/ |
H A D | ticparse.c | 54 int table_size = 0; /* current string_table size */ variable 414 if (table_size == 0) 418 table_size = 1024; 420 table_size); 423 while (table_size < next_free + strlen(string)) 425 if ((string_table = realloc(string_table, table_size + 1024)) 428 table_size += 1024; 429 DEBUG(5, "Extended string table. Size now %d\n", table_size);
|
/titanic_44/usr/src/cmd/tic/ |
H A D | tic_parse.c | 108 unsigned int table_size = 0; /* current string_table size */ variable 758 if (table_size == 0) { 761 table_size = 1024; 763 table_size); 766 while (table_size <= next_free + strlen(string)) { 767 if ((string_table = realloc(string_table, table_size + 1024)) 770 table_size += 1024; 771 DEBUG(5, "Extended string table. Size now %u\n", table_size);
|
/titanic_44/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 193 size_t table_size = 0; in sata_rcm_info_table() local 249 table_size = (2 + tuples) * (width + 1) + 2; in sata_rcm_info_table() 252 *table = calloc(table_size, sizeof (char)); in sata_rcm_info_table() 257 newtable = realloc(*table, strlen(*table) + table_size); in sata_rcm_info_table()
|
/titanic_44/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 213 size_t table_size = 0; in usb_rcm_info_table() local 271 table_size = (2 + tuples) * (width + 1) + 2; in usb_rcm_info_table() 274 *table = calloc(table_size, sizeof (char)); in usb_rcm_info_table() 281 newtable = realloc(*table, strlen(*table) + table_size); in usb_rcm_info_table()
|
/titanic_44/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 261 size_t table_size = 0; in ib_rcm_info_table() local 318 table_size = (2 + tuples) * (width + 1) + 2; in ib_rcm_info_table() 320 *table = malloc(table_size); in ib_rcm_info_table() 322 newtable = realloc(*table, strlen(*table) + table_size); in ib_rcm_info_table()
|
/titanic_44/usr/src/uts/common/inet/ |
H A D | ip_ire.h | 50 #define IRE_ADDR_HASH(addr, table_size) \ argument 52 ((table_size) - 1)) 58 #define IRE_ADDR_HASH_V6(addr, table_size) \ argument 59 IRE_ADDR_HASH((addr).s6_addr32[3], table_size) 66 #define IRE_ADDR_MASK_HASH_V6(addr, mask, table_size) \ argument 76 ((addr).s6_addr8[15] & (mask).s6_addr8[15])) & ((table_size) - 1))
|
H A D | ip_ndp.h | 272 #define NCE_ADDR_HASH_V6(addr, table_size) \ argument 275 (addr).s6_addr8[14] ^ (addr).s6_addr8[15]) % (table_size))
|
/titanic_44/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_rcm.c | 260 size_t table_size = 0; in scsi_rcm_info_table() local 309 table_size = (2 + tuples) * (width + 1) + 2; in scsi_rcm_info_table() 312 *table = calloc(table_size, sizeof (char)); in scsi_rcm_info_table() 316 newtable = realloc(*table, strlen(*table) + table_size); in scsi_rcm_info_table()
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip6_asp.c | 241 size_t table_size; in ip6_asp_check_for_updates() local 262 table_size = iocp->ioc_count; in ip6_asp_check_for_updates() 265 table_size = iocp->ioc_count; in ip6_asp_check_for_updates() 268 ip6_asp_replace(mp, table, table_size, B_TRUE, ipst, in ip6_asp_check_for_updates()
|
/titanic_44/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_hash.c | 352 IN DAT_COUNT table_size, in dapls_hash_create() argument 357 DAT_COUNT table_length = table_size * sizeof (DAPL_HASH_ELEM); in dapls_hash_create() 374 p_table->tbl_size = table_size; in dapls_hash_create() 386 for (i = 0; i < table_size; i++) { in dapls_hash_create()
|
/titanic_44/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 488 size_t table_size = 0; in fp_rcm_info_table() local 539 table_size = (2 + tuples) * (width + 1) + 2; in fp_rcm_info_table() 541 *table = malloc(table_size); in fp_rcm_info_table() 543 newtable = realloc(*table, strlen(*table) + table_size); in fp_rcm_info_table()
|
/titanic_44/usr/src/cmd/sendmail/db/lock/ |
H A D | lock.c | 183 list[i].obj, sh_obj, lt->region->table_size, 410 links, sh_obj, lt->region->table_size, __lock_lhash); 684 dbt, sh_obj, lrp->table_size, __lock_ohash, __lock_cmp); 803 lrp->table_size, __lock_ohash, __lock_cmp); 807 sh_obj, lrp->table_size, __lock_locker_hash, 860 __db_lockobj, links, sh_obj, lrp->table_size, __lock_lhash); 916 __db_lockobj, links, obj, lt->region->table_size, __lock_lhash);
|
H A D | lock_deadlock.c | 268 for (id = 0, i = 0; i < lt->region->table_size; i++) 278 for (i = 0; i < lt->region->table_size; i++) { 442 links, lockerp, lt->region->table_size, __lock_lhash);
|
H A D | lock_region.c | 191 lrp->table_size = __db_tablesize(lrp->maxlocks); 227 nelements = lrp->table_size; 603 "table size", (u_long)lrp->table_size, 622 for (i = 0; i < lrp->table_size; i++) {
|
/titanic_44/usr/src/cmd/make/bin/ |
H A D | ar.cc | 568 int table_size; in process_long_names_member() local 591 &table_size) != 1) { in process_long_names_member() 594 *long_names_table = (char *) malloc(table_size); in process_long_names_member() 596 if (fread(*long_names_table, table_size, 1, arp->fd) != 1) { in process_long_names_member()
|
/titanic_44/usr/src/uts/common/smbsrv/ |
H A D | hash_table.h | 154 extern HT_HANDLE *ht_create_table(size_t table_size, size_t key_size,
|