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.c42 static Hashentry *_search(Hashtab * htab, /* The hash table */
50 Hashtab *htab; in hashtabnew() local
55 htab = (Hashtab *) malloc(sizeof(Hashtab) + (sz - 1) * sizeof(Hashentry *)); in hashtabnew()
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()
71 _search(Hashtab * htab, void *ptr) in _search() argument
[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
163 if ((htab = manmerge(e, NULL)) == NULL) { in mansearch()
168 for (rp = ohash_first(htab, &slot); rp != NULL; in mansearch()
169 rp = ohash_next(htab, &slot)) { in mansearch()
211 ohash_delete(htab); in mansearch()
212 free(htab); in mansearch()
237 manmerge(struct expr *e, struct ohash *htab) in manmerge() argument
241 return manmerge_term(e, htab); in manmerge()
243 return manmerge_or(e->child, htab); in manmerge()
245 return manmerge_and(e->child, htab); in manmerge()
[all …]
H A Droff.c639 struct ohash *htab; in roffhash_alloc() local
645 htab = mandoc_malloc(sizeof(*htab)); in roffhash_alloc()
646 mandoc_ohash_init(htab, 8, offsetof(struct roffreq, name)); in roffhash_alloc()
655 slot = ohash_qlookup(htab, req->name); in roffhash_alloc()
656 ohash_insert(htab, slot, req); in roffhash_alloc()
658 return htab; in roffhash_alloc()
662 roffhash_free(struct ohash *htab) in roffhash_free() argument
667 if (htab == NULL) in roffhash_free()
669 for (req = ohash_first(htab, &slot); req != NULL; in roffhash_free()
670 req = ohash_next(htab, &slot)) in roffhash_free()
[all …]
H A Dmandocdb.c1857 struct ohash *htab; in putkeys() local
1869 htab = &names; in putkeys()
1878 htab = &strings; in putkeys()
1888 slot = ohash_qlookupi(htab, cp, &end); in putkeys()
1889 s = ohash_find(htab, slot); in putkeys()
1897 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[ID in lzf_compress()
[all...]
/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 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 Dhdestroy_r.c32 hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument
37 hsearch = htab->__hsearch; in hdestroy_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.cc101 } *htab; variable
674 for (hl = htab; hl != NULL; hl = hl->h_next) { in cleanheaders()
705 for (hl = htab; hl != NULL; hl = hl->h_next) { in remember()
715 hl->h_next = htab; in remember()
716 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]
665 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