/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/ |
H A D | hashlook.c | 37 hashlook(register Hash_table_t* tab, const char* name, long flags, const char* value) in hashlook() argument 62 HASHMOD(tab, n); in hashlook() 63 for (b = tab->table[n]; b; b = b->next) in hashlook() 70 if (!(tab = tab->scope) || (flags & HASH_NOSCOPE)) in hashlook() 75 tab->root->accesses++; in hashlook() 76 top = tab; in hashlook() 77 last = &tab->root->last; in hashlook() 80 last->table = tab; in hashlook() 89 else if (tab->flags & HASH_HASHED) in hashlook() 95 else HASH(tab->root, name, n); in hashlook() [all …]
|
H A D | hashalloc.c | 43 register Hash_table_t* tab; in hashalloc() local 65 if (!(tab = (Hash_table_t*)(*region)(handle, NiL, sizeof(Hash_table_t), 0))) in hashalloc() 67 memset(tab, 0, sizeof(Hash_table_t)); in hashalloc() 69 else if (!(tab = newof(0, Hash_table_t, 1, 0))) in hashalloc() 71 tab->bucketsize = (sizeof(Hash_header_t) + sizeof(char*) - 1) / sizeof(char*); in hashalloc() 74 tab->flags = ref->flags & ~HASH_RESET; in hashalloc() 75 tab->root = ref->root; in hashalloc() 82 if (!(tab->root = (Hash_root_t*)(*region)(handle, NiL, sizeof(Hash_root_t), 0))) in hashalloc() 84 memset(tab->root, 0, sizeof(Hash_root_t)); in hashalloc() 86 else if (!(tab->root = newof(0, Hash_root_t, 1, 0))) in hashalloc() [all …]
|
H A D | hashfree.c | 40 hashfree(register Hash_table_t* tab) in hashfree() argument 53 if (!tab) return(0); in hashfree() 54 if (tab->table) in hashfree() 58 if (tab->root->local->free) in hashfree() 60 if (tab->root->flags & HASH_BUCKET) freebucket = tab->root->local->free; in hashfree() 61 else freevalue = tab->root->local->free; in hashfree() 63 if (region = tab->root->local->region) in hashfree() 64 handle = tab->root->local->handle; in hashfree() 65 sx = &tab->table[tab->size]; in hashfree() 66 sp = &tab->table[0]; in hashfree() [all …]
|
H A D | hashscan.c | 47 hashscan(register Hash_table_t* tab, register int flags) in hashscan() argument 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() 58 if (tab->scope && !(flags & HASH_NOSCOPE)) in hashscan() 65 if (tab->frozen) in hashscan() 67 register Hash_bucket_t** sp = tab->table; in hashscan() 68 register Hash_bucket_t** sx = tab->table + tab->size; in hashscan() 74 } while (tab = tab->scope); in hashscan() 75 tab = pos->tab; in hashscan() [all …]
|
H A D | hashdump.c | 53 dumpbucket(register Hash_table_t* tab, int flags) in dumpbucket() argument 62 sx = tab->table + tab->size; in dumpbucket() 63 for (sp = tab->table; sp < sx; sp++) in dumpbucket() 67 if (!(b->hash & HASH_DELETED) && (!(tab->flags & HASH_VALUE) || b->value)) in dumpbucket() 71 sfprintf(sfstderr, "%5d %2d :", sp - tab->table, n); in dumpbucket() 73 if (!(b->hash & HASH_DELETED) && (!(tab->flags & HASH_VALUE) || b->value)) in dumpbucket() 75 if (n = tab->root->namesize) in dumpbucket() 91 if (tab->flags & HASH_VALUE) sfprintf(sfstderr, "=0x%08lx", (long)b->value); in dumpbucket() 104 dumptable(register Hash_table_t* tab, register int flags) in dumptable() argument 109 sfprintf(sfstderr, " name: %s", tab->name ? tab->name : "*no name*"); in dumptable() [all …]
|
H A D | hashsize.c | 38 hashsize(register Hash_table_t* tab, int size) in hashsize() argument 49 if (size > 0 && size != tab->size && !(size & (size - 1))) in hashsize() 51 if (region = tab->root->local->region) in hashsize() 53 handle = tab->root->local->handle; in hashsize() 57 if (!new_s) tab->flags |= HASH_FIXED; in hashsize() 60 old_sx = (old_s = tab->table) + tab->size; in hashsize() 61 tab->size = size; in hashsize() 70 HASHMOD(tab, index); in hashsize() 75 if ((tab->flags & (HASH_RESIZE|HASH_STATIC)) != HASH_STATIC) in hashsize() 77 if (region) (*region)(handle, tab->table, 0, 0); in hashsize() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | htable.c | 60 const htab_t *tab, in avl_search() argument 64 htab_itemx_t *x = tab->avlt; in avl_search() 93 const htab_t *tab, in avl_search_next() argument 98 htab_itemx_t *x = tab->avlt; in avl_search_next() 276 htab_t *tab, in avl_insert() argument 288 if (tab->avlt == NULL) { in avl_insert() 289 tab->avlt = x; in avl_insert() 293 a = tab->avlt; in avl_insert() 294 p = tab->avlt; in avl_insert() 360 tab->avlt = c; in avl_insert() [all …]
|
/illumos-gate/usr/src/cmd/troff/nroff.d/terms.d/ |
H A D | Makefile | 14 FILES1 = tab.2631 tab.2631-c tab.2631-e tab.lp 15 FILES2 = tab.300 tab.300-12 tab.300s tab.300s-12 tab.382 \ 16 tab.4000a tab.450 tab.450-12 tab.832 17 FILES3 = tab.37 tab.8510 tab.X tab.tn300 22 LNKFILES = tab.300S tab.300S-12 tab.4000A 25 $(ROOTNTERM)/tab.300S := ROOTLNKDEST = $(ROOTNTERM)/tab.300s 26 $(ROOTNTERM)/tab.300S-12 := ROOTLNKDEST = $(ROOTNTERM)/tab.300s-12 27 $(ROOTNTERM)/tab.4000A := ROOTLNKDEST = $(ROOTNTERM)/tab.4000a 37 $(FILES1) : $$(@:tab.%=a.%) b.lp 38 cat $(@:tab.%=a.%) b.lp >$@ [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 56 tab = NULL; in db_index() 82 if (tab != NULL) { in reset() 84 curr = tab[i]; in reset() 93 delete tab; // get rid of table itself in reset() 95 tab = NULL; in reset() 143 db_index_entry_p * oldtab = tab; in grow() 161 if ((tab = (db_index_entry_p*) in grow() 164 tab = oldtab; // restore previous table info in grow() 173 oldtab[i]->relocate(tab, table_size); in grow() 195 if (index_value == NULL || table_size == 0 || tab == NULL) { in lookup() [all …]
|
H A D | db_table.cc | 317 tab = NULL; in db_table() 351 if (tab != NULL) { in reset() 355 if (tab[i]) { in reset() 356 free_entry(tab[i]); in reset() 362 delete tab; in reset() 364 tab = NULL; in reset() 417 (void) memcpy(&newEnumArray[oldSize], &tab[oldSize], in allocateEnumArray() 433 entry_object_p *oldtab = tab; in grow() 450 if ((tab = (entry_object_p*) in grow() 453 tab = oldtab; // restore previous table info in grow() [all …]
|
/illumos-gate/usr/src/common/mpi/ |
H A D | mp_gf2m.c | 66 mp_digit tab[8], top2b = a >> 30; in s_bmul_1x1() local 71 tab[0] = 0; tab[1] = a1; tab[2] = a2; tab[3] = a1^a2; in s_bmul_1x1() 72 tab[4] = a4; tab[5] = a1^a4; tab[6] = a2^a4; tab[7] = a1^a2^a4; in s_bmul_1x1() 74 s = tab[b & 0x7]; l = s; in s_bmul_1x1() 75 s = tab[b >> 3 & 0x7]; l ^= s << 3; h = s >> 29; in s_bmul_1x1() 76 s = tab[b >> 6 & 0x7]; l ^= s << 6; h ^= s >> 26; in s_bmul_1x1() 77 s = tab[b >> 9 & 0x7]; l ^= s << 9; h ^= s >> 23; in s_bmul_1x1() 78 s = tab[b >> 12 & 0x7]; l ^= s << 12; h ^= s >> 20; in s_bmul_1x1() 79 s = tab[b >> 15 & 0x7]; l ^= s << 15; h ^= s >> 17; in s_bmul_1x1() 80 s = tab[b >> 18 & 0x7]; l ^= s << 18; h ^= s >> 14; in s_bmul_1x1() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmlex.c | 48 tmlex(register const char* s, char** e, char** tab, int ntab, char** suf, int nsuf) in tmlex() argument 54 for (p = tab, n = ntab; n-- && (x = *p); p++) in tmlex() 56 return p - tab; in tmlex() 57 if (tm_info.format != tm_data.format && tab >= tm_info.format && tab < tm_info.format + TM_NFORM) in tmlex() 59 tab = tm_data.format + (tab - tm_info.format); in tmlex() 60 if (suf && tab >= tm_info.format && tab < tm_info.format + TM_NFORM) in tmlex() 62 for (p = tab, n = ntab; n-- && (x = *p); p++) in tmlex() 64 return p - tab; in tmlex()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_hash.c | 130 did_hash_t *tab = (did_hash_t *)topo_mod_getspecific(mp); in did_hash_insert() local 132 int idx = did_dnhash(key) % tab->dph_hashlen; in did_hash_insert() 134 tab->dph_nelems++; in did_hash_insert() 136 topo_mod_dprintf(tab->dph_mod, "Insert [key=%p] into %p, bucket %d\n", in did_hash_insert() 137 key, (void *)tab, idx); in did_hash_insert() 138 if (tab->dph_hash[idx] == NULL) { in did_hash_insert() 139 tab->dph_hash[idx] = new; in did_hash_insert() 140 topo_mod_dprintf(tab->dph_mod, "first entry.\n"); in did_hash_insert() 145 for (assertchk = tab->dph_hash[idx]; in did_hash_insert() 149 new->dp_next = tab->dph_hash[idx]; in did_hash_insert() [all …]
|
/illumos-gate/usr/src/lib/libfru/ |
H A D | Makefile.targ | 45 pics/y.tab.cc pics/y.tab.h: ../libfru/nameSyntaxYacc.y 47 $(SED) -f ../libfru/yy-sed y.tab.c > pics/y.tab.cc 48 $(SED) -f ../libfru/yy-sed y.tab.h > pics/y.tab.h 49 $(RM) y.tab.c y.tab.h 51 pics/nameSyntaxYacc.o: pics/y.tab.cc 52 $(COMPILE.cc) -I../libfru -Ipics -o $@ pics/y.tab.cc 54 pics/nameSyntaxLex.o: ../libfru/nameSyntaxLex.l pics/y.tab.h
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | userdefs.c | 83 static const parsent_t tab[] = { variable 110 #define NDEF (sizeof (tab) / sizeof (parsent_t)) 133 if (strncmp(cur_p, tab[ind].name, tab[ind].nmsz) == 0) { in scan() 134 *start_p = cur_p + tab[ind].nmsz; in scan() 135 return (&tab[ind]); in scan() 384 if (tab[i].off == skip) in putusrdef() 387 switch (tab[i].type) { in putusrdef() 389 res = fprintf(defptr, "%s%d\n", tab[i].name, in putusrdef() 390 FIELD(defs, &tab[i], int)); in putusrdef() 393 res = fprintf(defptr, "%s%s\n", tab[i].name, in putusrdef() [all …]
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | Makefile.com | 34 OBJS = itmcomp.o assemble.o disassemble.o itm_util.o y.tab.o lex.yy.o 35 MSGFILES = itmcomp.i assemble.i disassemble.i itm_util.i y.tab.i lex.yy.i geniconvtbl.i 47 CLEANFILES = $(OBJS) y.tab.c y.tab.h lex.yy.c \ 82 y.tab.c + y.tab.h: $(SRCDIR)/itm_comp.y 84 @ $(MV) y.tab.c y.tab.c~ 85 @ $(SED) -f $(SRCDIR)/yacc.sed y.tab.c~ > y.tab.c 86 @ $(RM) y.tab.c~ 88 lex.yy.c: $(SRCDIR)/itm_comp.l y.tab.h
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getnetgrent.c | 70 netgroup_table_t tab; member 78 netgroup_table_t tab; member 105 add_netgroup_name(const char *name, netgroup_table_t *tab) in add_netgroup_name() argument 111 if (tab == NULL) { in add_netgroup_name() 124 ng = tab->hash_list[h]; in add_netgroup_name() 142 ng_new->next_hash = tab->hash_list[h]; in add_netgroup_name() 143 tab->hash_list[h] = ng_new; in add_netgroup_name() 144 ng_new->next = tab->to_do; in add_netgroup_name() 145 tab->to_do = ng_new; in add_netgroup_name() 151 get_next_netgroup(netgroup_table_t *tab) in get_next_netgroup() argument [all …]
|
/illumos-gate/usr/src/tools/ndrgen/ |
H A D | Makefile | 40 CLEANFILES += $(OBJS) y.tab.c y.tab.h 57 $(OBJS): y.tab.h 59 y.tab.c y.tab.h: ndr_parse.y 62 ndr_parse.o : y.tab.c 63 $(COMPILE.c) -o $@ y.tab.c
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | Makefile | 50 CLEANFILES= awk.c y.tab.h 85 awk.c + y.tab.h: awk.y 87 awk.o: awk.c y.tab.h 89 awk0.c: awk.c y.tab.h 91 awk1.c: awk.c y.tab.h 93 awk2.c: awk.c y.tab.h 95 awk3.c: awk.c y.tab.h 97 awk4.c: awk.c y.tab.h
|
/illumos-gate/usr/src/data/zoneinfo/ |
H A D | README.illumos | 33 Next you need to copy the country tab and the zone tab files. These have 36 $ cp iso3166.tab $CODEMGR_WS/usr/src/data/zoneinfo/country.tab 37 $ cp zone.tab $CODEMGR_WS/usr/src/data/zoneinfo/zone.tab.txt 39 Now, you need to manually fix up the zone_sun.tab. zone_sun.tab has 42 in zone_sun.tab. The simplest way known to deal with it today is 46 $ vimdiff zone.tab.txt zone_sun.tab 49 diff zone.tab.txt' and see what changed and fix zone_sun.tab 54 *** zone_sun.tab must remain sorted. 55 *** The upstream zone.tab.txt is not always completely in alphabetical order. 57 To check the final zone_sun.tab file, the `zonelint` script in the current
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | Makefile | 122 ipf.tab.c > ipf_y.c 124 ipf.tab.h > ipf_y.h 126 CLEANFILES += ipf.tab.c ipf.tab.h 160 ipmon.tab.c > ipmon_y.c 162 ipmon.tab.h > ipmon_y.h 164 CLEANFILES += ipmon.tab.c ipmon.tab.h 189 ipnat.tab.c > ipnat_y.c 191 ipnat.tab.h > ipnat_y.h 193 CLEANFILES += ipnat.tab.c ipnat.tab.h 218 ippool.tab.c > ippool_y.c [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | Makefile | 30 OBJS= nwamcfg.o nwamcfg_lex.o nwamcfg_grammar.tab.o 38 CLEANFILES += nwamcfg_lex.c nwamcfg_grammar.tab.c nwamcfg_grammar.tab.h 58 nwamcfg_lex.c: nwamcfg_lex.l nwamcfg_grammar.tab.h nwamcfg.h 61 nwamcfg_grammar.tab.h + nwamcfg_grammar.tab.c: nwamcfg_grammar.y nwamcfg.h 64 nwamcfg_lex.o nwamcfg_grammar.tab.o := CCVERBOSE =
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | Makefile | 22 OBJS = iconv_main.o iconv_list.o charmap.o parser.tab.o scanner.o 37 CLEANFILES = $(OBJS) parser.tab.c parser.tab.h 50 $(OBJS): parser.tab.h 51 $(PIFILES): parser.tab.h 53 parser.tab.c parser.tab.h: parser.y
|
/illumos-gate/usr/src/cmd/mdb/common/modules/crypto/ |
H A D | impl.c | 204 kcf_provider_desc_t **tab; in prov_tab() local 224 tab = mdb_zalloc(prov_tab_max * sizeof (kcf_provider_desc_t *), in prov_tab() 228 mdb_printf("DEBUG: tab = %p, prov_tab_max = %d\n", tab, prov_tab_max); in prov_tab() 231 if (mdb_vread(tab, prov_tab_max * sizeof (kcf_provider_desc_t *), in prov_tab() 238 mdb_printf("DEBUG: *tab = %p\n", *tab); in prov_tab() 242 if (tab[i] == NULL) { in prov_tab() 257 mdb_printf("prov_tab[%d] = %p ", i, tab[i]); in prov_tab() 260 (uintptr_t)tab[i]) == -1) { in prov_tab() 262 (uintptr_t)tab[i]); in prov_tab() 273 if ((i > 0) && (tab[i-1] == NULL)) { in prov_tab() [all …]
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | Makefile | 29 OBJS= zonecfg.o zonecfg_lex.o zonecfg_grammar.tab.o 44 CLEANFILES += zonecfg_lex.c zonecfg_grammar.tab.c zonecfg_grammar.tab.h 68 zonecfg_lex.c: zonecfg_lex.l zonecfg_grammar.tab.h zonecfg.h 71 zonecfg_grammar.tab.h zonecfg_grammar.tab.c: zonecfg_grammar.y zonecfg.h 74 zonecfg_lex.o zonecfg_grammar.tab.o := CCVERBOSE =
|