/freebsd/crypto/heimdal/lib/asn1/ |
H A D | hash.c | 50 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 D | hash.h | 63 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 D | symbol.c | 37 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 D | mansearch.c | 94 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 D | roff.c | 640 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 D | mandocdb.c | 1854 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 D | lzf.c | 104 , 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 D | fastlz.c | 190 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 D | hdestroy_r.c | 32 hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument 37 hsearch = htab->__hsearch; in hdestroy_r()
|
H A D | hsearch_r.c | 73 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 D | hcreate_r.c | 32 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 D | main.cc | 100 } *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 D | zopen.c | 146 #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 D | ip_htable.c | 261 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 D | hash.h | 88 typedef struct htab { /* Memory resident data structure */ struct
|