Home
last modified time | relevance | path

Searched refs:htab (Results 1 – 15 of 15) sorted by relevance

/freebsd/crypto/heimdal/lib/asn1/
H A Dhash.c50 Hashtab *htab; in hashtabnew() local
56 if (htab == NULL) in hashtabnew()
60 htab->tab[i] = NULL; in hashtabnew()
62 htab->cmp = cmp; in hashtabnew()
63 htab->hash = hash; in hashtabnew()
64 htab->sz = sz; in hashtabnew()
65 return htab; in hashtabnew()
77 for (hptr = htab->tab[(*htab->hash) (ptr) % htab->sz]; in _search()
115 tabptr = &htab->tab[(*htab->hash) (ptr) % htab->sz]; in hashtabadd()
155 assert(htab); in hashtabforeach()
[all …]
H A Dhash.h63 void *hashtabsearch(Hashtab *htab, /* The hash table */
67 void *hashtabadd(Hashtab *htab, /* The hash table */
70 int _hashtabdel(Hashtab *htab, /* The table */
74 void hashtabforeach(Hashtab *htab,
85 #define hashtabdel(htab,key) _hashtabdel(htab,key,FALSE) argument
87 #define hashtabfree(htab,key) _hashtabdel(htab,key,TRUE) /* Do! */ argument
H A Dsymbol.c37 static Hashtab *htab; variable
59 htab = hashtabnew(101, cmp, hash); in initsym()
79 s = (Symbol *) hashtabsearch(htab, (void *) &key); in addsym()
86 hashtabadd(htab, s); in addsym()
106 hashtabforeach(htab, checkfunc, &f); in checkundefined()
/freebsd/contrib/mandoc/
H A Dmansearch.c94 struct ohash *htab; in mansearch() local
211 ohash_delete(htab); in mansearch()
212 free(htab); in mansearch()
241 return manmerge_term(e, htab); in manmerge()
259 if (htab == NULL) { in manmerge_term()
260 htab = mandoc_malloc(sizeof(*htab)); in manmerge_term()
307 return htab; in manmerge_term()
314 htab = manmerge(e, htab); in manmerge_or()
317 return htab; in manmerge_or()
371 if (htab == NULL) in manmerge_and()
[all …]
H A Droff.c640 struct ohash *htab; in roffhash_alloc() local
646 htab = mandoc_malloc(sizeof(*htab)); in roffhash_alloc()
657 ohash_insert(htab, slot, req); in roffhash_alloc()
659 return htab; in roffhash_alloc()
663 roffhash_free(struct ohash *htab) in roffhash_free() argument
668 if (htab == NULL) in roffhash_free()
671 req = ohash_next(htab, &slot)) in roffhash_free()
673 ohash_delete(htab); in roffhash_free()
674 free(htab); in roffhash_free()
685 req = ohash_find(htab, ohash_qlookupi(htab, name, &end)); in roffhash_find()
[all …]
H A Dmandocdb.c1854 struct ohash *htab; in putkeys() local
1866 htab = &names; in putkeys()
1875 htab = &strings; in putkeys()
1885 slot = ohash_qlookupi(htab, cp, &end); in putkeys()
1886 s = ohash_find(htab, slot); in putkeys()
1894 ohash_insert(htab, slot, s); in putkeys()
/freebsd/sbin/hastd/
H A Dlzf.c104 , LZF_STATE htab in lzf_compress() argument
109 LZF_STATE htab; in lzf_compress() local
137 memset (htab, 0, sizeof (htab)); in lzf_compress()
139 for (hslot = htab; hslot < htab + HSIZE; hslot++) in lzf_compress()
150 hslot = htab + IDX (hval); in lzf_compress()
243 htab[IDX (hval)] = ip; in lzf_compress()
248 htab[IDX (hval)] = ip; in lzf_compress()
257 htab[IDX (hval)] = ip; in lzf_compress()
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz.c190 const unsigned char **htab = g_htab; in FASTLZ_COMPRESSOR() local
210 for (hslot = htab; hslot < htab + HASH_SIZE; hslot++) in FASTLZ_COMPRESSOR()
243 hslot = htab + hval; in FASTLZ_COMPRESSOR()
244 ref = htab[hval]; in FASTLZ_COMPRESSOR()
385 htab[hval] = ip++; in FASTLZ_COMPRESSOR()
387 htab[hval] = ip++; in FASTLZ_COMPRESSOR()
/freebsd/lib/libc/stdlib/
H A Dhdestroy_r.c32 hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument
37 hsearch = htab->__hsearch; in hdestroy_r()
H A Dhsearch_r.c73 hsearch_r(ENTRY item, ACTION action, ENTRY **retval, struct hsearch_data *htab) in hsearch_r() argument
79 hsearch = htab->__hsearch; in hsearch_r()
138 hsearch = htab->__hsearch; in hsearch_r()
H A Dhcreate_r.c32 hcreate_r(size_t nel, struct hsearch_data *htab) in hcreate_r() argument
58 htab->__hsearch = hsearch; in hcreate_r()
/freebsd/usr.sbin/config/
H A Dmain.cc100 } *htab; variable
669 for (hl = htab; hl != NULL; hl = hl->h_next) { in cleanheaders()
700 for (hl = htab; hl != NULL; hl = hl->h_next) { in remember()
710 hl->h_next = htab; in remember()
711 htab = hl; in remember()
/freebsd/usr.bin/compress/
H A Dzopen.c146 #define htab zs->zs_htab macro
181 #define htabof(i) htab[i]
185 #define tab_suffixof(i) ((char_type *)(htab))[i]
664 htab_p = htab + cl_hsize; in cl_hash()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_htable.c261 iphtable_t htab, *iph, *oiph; in ipf_htable_create() local
265 if (op->iplo_size != sizeof(htab)) { in ipf_htable_create()
269 err = COPYIN(op->iplo_struct, &htab, sizeof(htab)); in ipf_htable_create()
276 if (htab.iph_unit != unit) { in ipf_htable_create()
280 if (htab.iph_size < 1) { in ipf_htable_create()
305 *iph = htab; in ipf_htable_create()
/freebsd/lib/libc/db/hash/
H A Dhash.h88 typedef struct htab { /* Memory resident data structure */ struct