/illumos-gate/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; 55 table_start = malloc(table_size * sizeof (struct entry)); 60 table_size += num_entries; 61 temp = realloc(table_start, table_size * sizeof (struct entry)); 87 if (table_cur >= table_size) { 97 return (table_size);
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 59 table_size = 0; 85 for (i = 0; i < table_size; i++) { // go through table 98 table_size = count = 0; 144 long unsigned oldsize = table_size, i; 148 table_size = get_next_hashsize(table_size); 152 fprintf(ddt, "savehash GROWING to %d\n", table_size); 155 if (table_size > CALLOC_LIMIT) { 156 table_size = oldsize; 164 calloc((unsigned int) table_size, [all...] |
H A D | db_table.cc | 317 table_size = 0; 352 i <= last_used && i < table_size && done < count; 362 table_size = last_used = count = 0; 431 long oldsize = table_size; 435 table_size = get_new_table_size(oldsize); 438 fprintf(stderr, "db_table GROWING to %d\n", table_size); 441 if (table_size > CALLOC_LIMIT) { 442 table_size = oldsize; 448 // if ((tab = new entry_object_p[table_size]) == NULL) 450 calloc((unsigned int) table_size, [all...] |
H A D | db_index_c.x | 72 % long table_size; 132 %/* Return in 'tsize' the table_size, and 'tcount' the number of entries
|
H A D | db_table_c.x | 151 % long table_size; 227 % long getsize() { return table_size; } 260 % <table_size><last_used><count>[freelist].
|
/illumos-gate/usr/src/uts/common/sys/tsol/ |
H A D | tndb.h | 310 #define TSOL_ADDR_HASH(addr, table_size) \ 312 % (table_size)) 314 #define TSOL_ADDR_HASH_V6(addr, table_size) \ 317 (addr).s6_addr8[14] ^ (addr).s6_addr8[15]) % (table_size)) 319 /* This assumes that table_size is a power of 2. */ 320 #define TSOL_ADDR_MASK_HASH_V6(addr, mask, table_size) \ 326 ((addr).s6_addr8[15] & (mask).s6_addr8[15])) & ((table_size) - 1))
|
/illumos-gate/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) argument 95 if ((table_size == 0) || (key_size == 0)) 98 if (ht_is_power2(table_size) == 0) 101 msize = sizeof (HT_HANDLE) + (sizeof (HT_TABLE_ENTRY) * table_size); 108 ht->ht_table_size = table_size; 109 ht->ht_table_mask = table_size - 1; 119 for (i = 0; i < table_size; i++)
|
/illumos-gate/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, argument 846 for (i = 0, table = table_base; i < table_size; i++, table++) { 856 table_size++; 857 for (; i < table_size; i++, table++) { 882 return (table_size); 898 table_size++; 908 if ((i + 1) >= table_size) { 911 return (table_size); 922 for (; i < table_size; i++, table++) { 944 saved_i = table_size 967 delete_table(ccl_chars_t *table_base, int table_size, int ns, wchar_t cs, int ne, wchar_t ce) argument [all...] |
/illumos-gate/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);
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | itm_util.c | 378 itm_size_t table_size; local 404 table_size = ((sizeof (itm_tbl_hdr_t)) + 406 table_size = ITMROUNDUP(table_size); 408 table = malloc_vital(table_size); 412 table->size = table_size; 444 itm_size_t table_size; local 464 table_size = ((sizeof (itm_tbl_hdr_t)) + 467 table_size = ITMROUNDUP(table_size); 960 itm_size_t table_size; local 1144 itm_size_t table_size; local 1297 itm_size_t table_size; local 1603 itm_size_t table_size; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 193 size_t table_size = 0; local 249 table_size = (2 + tuples) * (width + 1) + 2; 252 *table = calloc(table_size, sizeof (char)); 257 newtable = realloc(*table, strlen(*table) + table_size);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_rcm.c | 260 size_t table_size = 0; local 309 table_size = (2 + tuples) * (width + 1) + 2; 312 *table = calloc(table_size, sizeof (char)); 316 newtable = realloc(*table, strlen(*table) + table_size);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 213 size_t table_size = 0; local 271 table_size = (2 + tuples) * (width + 1) + 2; 274 *table = calloc(table_size, sizeof (char)); 281 newtable = realloc(*table, strlen(*table) + table_size);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 261 size_t table_size = 0; local 318 table_size = (2 + tuples) * (width + 1) + 2; 320 *table = malloc(table_size); 322 newtable = realloc(*table, strlen(*table) + table_size);
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | ip_ire.h | 50 #define IRE_ADDR_HASH(addr, table_size) \ 52 ((table_size) - 1)) 58 #define IRE_ADDR_HASH_V6(addr, table_size) \ 59 IRE_ADDR_HASH((addr).s6_addr32[3], table_size) 66 #define IRE_ADDR_MASK_HASH_V6(addr, mask, table_size) \ 76 ((addr).s6_addr8[15] & (mask).s6_addr8[15])) & ((table_size) - 1))
|
H A D | ip_ndp.h | 265 * address. Assumes table_size does not exceed 256. 268 #define NCE_ADDR_HASH_V6(addr, table_size) \ 271 (addr).s6_addr8[14] ^ (addr).s6_addr8[15]) % (table_size))
|
/illumos-gate/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);
|
/illumos-gate/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,
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 488 size_t table_size = 0; local 539 table_size = (2 + tuples) * (width + 1) + 2; 541 *table = malloc(table_size); 543 newtable = realloc(*table, strlen(*table) + table_size);
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_asp.c | 241 size_t table_size; local 262 table_size = iocp->ioc_count; 265 table_size = iocp->ioc_count; 268 ip6_asp_replace(mp, table, table_size, B_TRUE, ipst,
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_hash.c | 348 * Create a new hash table with at least 'table_size' hash buckets. 352 IN DAT_COUNT table_size, 357 DAT_COUNT table_length = table_size * sizeof (DAPL_HASH_ELEM); 374 p_table->tbl_size = table_size; 386 for (i = 0; i < table_size; i++) { 351 dapls_hash_create( IN DAT_COUNT table_size, IN DAT_BOOLEAN locking_required, OUT DAPL_HASH_TABLE **pp_table) argument
|
/illumos-gate/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++) {
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | lock.h | 50 u_int32_t table_size; /* size of hash table */ member in struct:__db_lockregion
|