Searched refs:table_size (Results 1 - 25 of 26) sorted by relevance

12

/osnet-11/usr/src/lib/libnisdb/
H A Ddb_index.cc59 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 Ddb_table.cc312 table_size = 0;
347 i <= last_used && i < table_size && done < count;
357 table_size = last_used = count = 0;
426 long oldsize = table_size;
430 table_size = get_new_table_size(oldsize);
433 fprintf(stderr, "db_table GROWING to %d\n", table_size);
436 if (table_size > CALLOC_LIMIT) {
437 table_size = oldsize;
443 // if ((tab = new entry_object_p[table_size]) == NULL)
445 calloc((unsigned int) table_size,
[all...]
H A Ddb_index_c.x67 % long table_size;
127 %/* Return in 'tsize' the table_size, and 'tcount' the number of entries
H A Ddb_table_c.x151 % long table_size;
227 % long getsize() { return table_size; }
260 % <table_size><last_used><count>[freelist].
/osnet-11/usr/src/lib/libsmbns/common/
H A Dsmbns_hash.c85 ht_create_table(size_t table_size, size_t key_size, size_t flags) argument
91 if ((table_size == 0) || (key_size == 0))
94 if (ht_is_power2(table_size) == 0)
97 msize = sizeof (HT_HANDLE) + (sizeof (HT_TABLE_ENTRY) * table_size);
104 ht->ht_table_size = table_size;
105 ht->ht_table_mask = table_size - 1;
115 for (i = 0; i < table_size; i++)
H A Dsmbns_hash.h151 extern HT_HANDLE *ht_create_table(size_t table_size, size_t key_size,
/osnet-11/usr/src/lib/libxcurses/src/tic/
H A Dticparse.c54 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);
/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/
H A Dcache.h75 unsigned int table_size; member in struct:_HfsCPrivateCacheTable
H A Dcache.c49 ret->table_size = size;
145 == cache->last_table->table_size ) {
/osnet-11/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_rcm.c261 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);
/osnet-11/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_rcm.c193 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);
/osnet-11/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_rcm.c260 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);
/osnet-11/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_rcm.c213 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);
/osnet-11/usr/src/lib/libparted/common/libparted/fs/fat/
H A Dfat.c193 FatCluster table_size; local
195 table_size = fs_info->fat_sectors * 512
197 fs_info->fat = fat_table_new (fs_info->fat_type, table_size);
284 FatCluster table_size; local
359 table_size = fs_info->fat_sectors * 512
361 fs_info->fat = fat_table_new (fs_info->fat_type, table_size);
460 FatCluster table_size; local
463 table_size = fs_info->fat_sectors * 512
466 table_copy = fat_table_new (fs_info->fat_type, table_size);
/osnet-11/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rcm.c488 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);
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_hash.c347 * Create a new hash table with at least 'table_size' hash buckets.
351 IN DAT_COUNT table_size,
356 DAT_COUNT table_length = table_size * sizeof (DAPL_HASH_ELEM);
373 p_table->tbl_size = table_size;
385 for (i = 0; i < table_size; i++) {
350 dapls_hash_create( IN DAT_COUNT table_size, IN DAT_BOOLEAN locking_required, OUT DAPL_HASH_TABLE **pp_table) argument
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dfnmatch_loop.c464 int32_t table_size; local
487 table_size =
501 elem = hash % table_size;
504 second = hash % (table_size - 2) + 1;
685 int32_t table_size; local
708 table_size =
723 elem = hash % table_size;
726 second = hash % (table_size - 2) + 1;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/
H A DSubstrHash.pm13 tie %myhash, 'Tie::SubstrHash', $key_len, $value_len, $table_size;
25 data stored and retrieved. Efforts to store more than C<$table_size>
/osnet-11/usr/src/cmd/sendmail/db/lock/
H A Dlock.c183 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 Dlock_deadlock.c268 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 Dlock_region.c191 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++) {
/osnet-11/usr/src/cmd/sendmail/db/include/
H A Dlock.h50 u_int32_t table_size; /* size of hash table */ member in struct:__db_lockregion
/osnet-11/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c409 size_t table_size = 0; local
457 table_size = (2 + tuples) * (width + 1) + 2;
460 *table = calloc(table_size, sizeof (char));
464 newtable = realloc(*table, strlen(*table) + table_size);
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Dmemcache.c109 typedef int (*HashFuncPtr)(int table_size, void *key);
235 static int msgid_hashf(int table_size, void *key);
242 static int attrkey_hashf(int table_size, void *key);
1846 msgid_hashf(int table_size, void *key)
1849 return (((code << 20) + (code >> 12)) % table_size);
2042 attrkey_hashf(int table_size, void *key)
2044 return ((*((unsigned long*)key)) % table_size);
/osnet-11/usr/src/lib/cfgadm_plugins/pci/common/
H A Dcfga.c396 size_t table_size = 0; local
445 table_size = (2 + tuples) * (width + 1) + 2;
448 *table = calloc(table_size, sizeof (char));
452 newtable = realloc(*table, strlen(*table) + table_size);

Completed in 295 milliseconds

12