/illumos-gate/usr/src/cmd/spell/ |
H A D | spellin.c | 42 unsigned *table; variable 53 table[wp] |= w1>>(B-bp); in append() 98 table = (unsigned *)calloc(ND, sizeof (*table)); in main() 99 if (table == 0) { in main() 150 (void) fwrite((char *)table, sizeof (*table), wp, stdout); in main() 156 argv[0], (((float)BYTE * wp) * sizeof (*table) / count), in main() 157 (BYTE * ((float)wp * sizeof (*table) + sizeof (hindex)) / count)); in main()
|
H A D | hashcheck.c | 40 unsigned *table; variable 57 y |= (long)table[tp++] << empty; in fetch() 60 y |= table[tp]>>i-empty; in fetch() 89 table = (unsigned *)malloc(hindex[NI-1]*sizeof (*table)); in main() 90 (void) fread((char *)table, sizeof (*table), hindex[NI-1], stdin); in main()
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | hash.c | 41 ptr->table = malloc((size_t)(sizeof (hash_entry *) * size)); in make_hash() 55 ptr->table = malloc(sizeof (hash_entry *) * size); in make_ihash() 69 tmp = tbl->table[bucket = hash_string(key, tbl->size)]; in get_hash() 71 tmp = tbl->table[bucket = labs((long)key) % tbl->size]; in get_hash() 107 new->next_entry = tbl->table[bucket]; in get_hash() 108 tbl->table[bucket] = new; in get_hash() 119 tmp = tbl->table[hash_string(key, tbl->size)]; in find_hash() 126 tmp = tbl->table[labs((long)key) % tbl->size]; in find_hash() 148 if ((tmp = tbl->table[bucket]) == NULL) { in del_hash() 184 tbl->table[bucket] = tmp->next_entry; in del_hash() [all …]
|
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_object.c | 525 struct nwam_prop_table_entry *cur = table.entries; in nwam_get_prop_table_entry() 526 struct nwam_prop_table_entry *end = cur + table.num_entries; in nwam_get_prop_table_entry() 562 if ((pte = nwam_get_prop_table_entry(table, propname)) == NULL) in nwam_get_prop_type() 610 struct nwam_prop_table table; member 625 struct nwam_prop_table table = via->table; in nwam_validate_prop_internal() local 683 via.table = table; in nwam_validate_prop() 699 via.table = table; in nwam_validate() 718 nwam_get_default_proplist(struct nwam_prop_table table, in nwam_get_default_proplist() argument 721 struct nwam_prop_table_entry *cur = table.entries; in nwam_get_default_proplist() 722 struct nwam_prop_table_entry *end = cur + table.num_entries; in nwam_get_default_proplist() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | hash.c | 55 static struct node **table; variable 68 table = (struct node **)alloc(TABLENGTH * sizeof(struct node *)); in hcreate() 72 table[j] = 0; in hcreate() 95 p = table[j]; 118 if(table[i] == 0) 120 last = &table[i]; 126 q = &table[i]; 127 p = table[i];
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_filter.c | 1264 table->eft_unicst_filter_count = 0; 1270 table->eft_mulcst_filter_count = 0; 1275 if (table->eft_using_rss) 1307 table->eft_unicst_filter_count = 0; 1444 *erpp = table->eft_default_rxq; in ef10_filter_get_default_rxq() 1445 *using_rss = table->eft_using_rss; in ef10_filter_get_default_rxq() 1460 table->eft_using_rss = using_rss; in ef10_filter_default_rxq_set() 1463 table->eft_using_rss = B_FALSE; in ef10_filter_default_rxq_set() 1465 table->eft_default_rxq = erp; in ef10_filter_default_rxq_set() 1474 table->eft_default_rxq = NULL; in ef10_filter_default_rxq_clear() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_function_hashtable.h | 42 void add_##_name(struct hashtable *table, const char *look_for, _item_type *value) \ 48 list = search_##_name(table, key); \ 52 remove_##_name(table, key); \ 55 insert_##_name(table, key, list); \ 63 static inline void destroy_function_hashtable(struct hashtable *table) in destroy_function_hashtable() argument 65 hashtable_destroy(table, 0); in destroy_function_hashtable() 85 …r(const char *file, int (*insert_func)(struct hashtable *, char *, int *), struct hashtable *table) in load_hashtable_helper() argument 102 insert_func(table, name, (void *)1); in load_hashtable_helper()
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_hash.c | 68 DAPL_HASH_ELEM *table; member 225 if (NO_DATUM(p_table->table[hashValue].datum)) { in dapli_hash_add() 229 p_table->table[hashValue].key = key; in dapli_hash_add() 230 p_table->table[hashValue].datum = datum; in dapli_hash_add() 231 p_table->table[hashValue].next_element = 0; in dapli_hash_add() 376 if (NULL == p_table->table) { in dapls_hash_create() 387 p_table->table[i].datum = NO_DATUM_VALUE; in dapls_hash_create() 388 p_table->table[i].key = 0; in dapls_hash_create() 389 p_table->table[i].next_element = 0; in dapls_hash_create() 406 dapl_os_assert(p_table && p_table->table); in dapls_hash_free() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | crc32.h | 105 #define CRC32_INIT(table, poly) \ argument 109 for (Xt = (table) + Xi, *Xt = Xi, Xj = 8; Xj > 0; Xj--) \ 117 #define CRC32(crc, buf, size, start, table) \ argument 123 Xcrc = (Xcrc >> 8) ^ (table)[(Xcrc ^ *Xcp++) & 0xFF]; \ 132 #define CRC32_STRING(crc, len, str, start, table) \ argument 138 Xcrc = (Xcrc >> 8) ^ (table)[(Xcrc ^ Xc) & 0xFF]; \
|
/illumos-gate/usr/src/test/util-tests/tests/smbios/ |
H A D | smbios_test_extmemdevice.c | 41 smbios_test_extmem_mktable_invlen_cs(smbios_test_table_t *table) in smbios_test_extmem_mktable_invlen_cs() argument 47 (void) smbios_test_table_append(table, &ext, sizeof (ext)); in smbios_test_extmem_mktable_invlen_cs() 48 smbios_test_table_append_eot(table); in smbios_test_extmem_mktable_invlen_cs() 54 smbios_test_extmem_mktable_nocs(smbios_test_table_t *table) in smbios_test_extmem_mktable_nocs() argument 59 (void) smbios_test_table_append(table, &ext, sizeof (ext)); in smbios_test_extmem_mktable_nocs() 60 smbios_test_table_append_eot(table); in smbios_test_extmem_mktable_nocs() 66 smbios_test_extmem_mktable_cs(smbios_test_table_t *table) in smbios_test_extmem_mktable_cs() argument 78 (void) smbios_test_table_append(table, &ext, sizeof (ext)); in smbios_test_extmem_mktable_cs() 79 smbios_test_table_append_raw(table, &cs, sizeof (cs)); in smbios_test_extmem_mktable_cs() 80 smbios_test_table_append_eot(table); in smbios_test_extmem_mktable_cs()
|
/illumos-gate/usr/src/boot/common/ |
H A D | part.h | 84 void ptable_close(struct ptable *table); 85 enum ptable_type ptable_gettype(const struct ptable *table); 86 int ptable_getsize(const struct ptable *table, uint64_t *sizep); 88 int ptable_getpart(const struct ptable *table, struct ptable_entry *part, 90 int ptable_getbestpart(const struct ptable *table, struct ptable_entry *part); 92 int ptable_iterate(const struct ptable *table, void *arg,
|
/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | hashtable_itr.c | 27 if (NULL != h->table[i]) in hashtable_iterator() 29 itr->e = h->table[i]; in hashtable_iterator() 57 struct entry **table; in hashtable_iterator_advance() local 75 table = itr->h->table; in hashtable_iterator_advance() 76 while (NULL == (next = table[j])) in hashtable_iterator_advance() 108 itr->h->table[itr->index] = itr->e->next; in hashtable_iterator_remove() 137 e = h->table[index]; in hashtable_iterator_search()
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | inftrees.c | 33 unsigned codes, code FAR * FAR *table, unsigned FAR *bits, in inflate_table() argument 117 *(*table)++ = here; /* make a table to force an error */ in inflate_table() 118 *(*table)++ = here; in inflate_table() 197 next = *table; /* current table to fill in */ in inflate_table() 280 (*table)[low].op = (unsigned char)curr; in inflate_table() 281 (*table)[low].bits = (unsigned char)root; in inflate_table() 282 (*table)[low].val = (unsigned short)(next - *table); in inflate_table() 297 *table += used; in inflate_table()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/ |
H A D | hashscan.c | 54 pos->tab = tab->root->last.table = tab; in hashscan() 56 pos->slot = tab->table - 1; in hashscan() 57 pos->limit = tab->table + tab->size; in hashscan() 67 register Hash_bucket_t** sp = tab->table; in hashscan() 68 register Hash_bucket_t** sx = tab->table + tab->size; in hashscan() 104 pos->tab->root->last.table = pos->tab; in hashnext() 105 pos->limit = (pos->slot = pos->tab->table) + pos->tab->size; in hashnext()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | sym.msg | 37 @ MSG_ARG_SYM "Name of desired symbol within symbol table(s)" 43 @ MSG_ALLOC_ARGSTATE "symbol table state" 65 symbol in global part of symbol table \ 68 symbol in local part of symbol table \ 71 of a symbol in the dynamic symbol table will confuse \ 113 Use the symbol table found in the ELF section with the\n\ 116 Use the symbol table found in the ELF section with the\n\ 119 Use the first symbol table found in the ELF section with\n\ 141 @ MSG_A1_SYM "Name of desired symbol within symbol table.\n" 258 \tin the associated string table.\n\ [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | temptable.test | 28 # Create a permanent table. 59 } {1 {no such table: t2}} 62 } {1 {no such table: t2}} 86 } {1 {no such table: t2}} 101 } {1 {no such table: t2}} 117 } {1 {no such table: t2}} 148 # creates a permanent table also named T. The temp table in process A 149 # hides the existance of the permanent table. 179 } {1 {no such table: main.t2}} 219 } {1 {no such table: t2}} [all …]
|
H A D | laststmtchanges.test | 32 create table t0 (x); 61 # LSCC set properly after update on table where no rows changed 69 # LSCC set properly after delete from table 83 create table t1 (k integer primary key); 84 create table t2 (k integer primary key, v1, v2); 178 drop table t0; drop table t1; drop table t2; 179 create temp table t0(x); 180 create temp table t1 (k integer primary key); 181 create temp table t2 (k integer primary key); 184 create temp table n1 (k integer primary key, n); [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_db.cc | 516 if (table == 0) in dbFindObject() 519 sfree(table); in dbFindObject() 530 sfree(table); in dbFindObject() 538 sfree(table); in dbFindObject() 783 sfree(table); in dbTouchObj() 791 sfree(table); in dbTouchObj() 792 table = 0; in dbTouchObj() 804 sfree(table); in dbTouchObj() 815 sfree(table); in dbTouchObj() 822 sfree(table); in dbTouchObj() [all …]
|
H A D | db_table_c.x | 154 % STRUCTRWLOCK(table); 189 % entry_object_p *gettab() { ASSERTRHELD(table); return (tab); }; 197 % return (TRYWLOCK(table)); 201 % return (WLOCK(table)); 205 % return (WULOCK(table)); 209 % return (RLOCK(table)); 213 % return (RULOCK(table));
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | tb.c | 33 rused[c]|= real(table[i][c].rcol); in checkuse() 34 if( !real(table[i][c].rcol)) in checkuse() 35 used[c] |= real(table[i][c].col); in checkuse() 36 if (table[i][c].rcol) in checkuse() 37 lused[c] |= real(table[i][c].col); in checkuse() 40 used[c] |= real(table[i][c].col); in checkuse()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | table.c | 68 static TABLE_ENTRY *table = NULL; variable 87 ptr = table; in find_match() 143 ptr = table; in find_request() 206 ptr->next = table; in insert_table() 211 table = ptr; in insert_table() 241 ptr = table; in delete_invite() 271 if (table == ptr) { in delete() 272 table = ptr->next; in delete()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | gentab.sh | 51 table=1 54 -d) table=0 ;; 112 if test $table = 1 141 if test $table = 1 197 if test $table = 1 228 if test $table = 1
|
/illumos-gate/usr/src/cmd/fs.d/nfs/dfmounts/ |
H A D | dfmounts.c | 107 static struct mountbody *table[NTABLEENTRIES]; variable 159 tb = table; in pr_mounts() 160 for (; ml != NULL && tb < &table[NTABLEENTRIES]; ml = ml->ml_next) in pr_mounts() 162 if (ml != NULL && tb == &table[NTABLEENTRIES]) in pr_mounts() 166 qsort(table, endtb - table, sizeof (struct mountbody *), sortpath); in pr_mounts() 174 for (tb = table; tb < endtb; tb++) { in pr_mounts()
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | ActiveDiscoverer.java | 64 private ServerDATable table = null; field in ActiveDiscoverer 77 ServerDATable table, in ActiveDiscoverer() argument 83 this.table = table; in ActiveDiscoverer() 198 table.recordNewDA(url, in run() 250 table); in activeDiscovery() 330 table.recordNewDA(advert.URL, in addPreconfiguredDAs()
|
/illumos-gate/usr/src/cmd/units/ |
H A D | units.c | 29 struct table struct 34 } table[NTAB]; argument 78 struct table *hash(char *name); 245 struct table *q; in lookup() 311 struct table *tp, *lp; in init() 336 for(tp = &table[0]; tp < &table[NTAB]; tp++) { in init() 478 struct table * 481 struct table *tp; in hash() 491 tp = &table[h]; in hash() 498 if(tp >= &table[NTAB]) in hash() [all …]
|