Home
last modified time | relevance | path

Searched refs:hindex (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/cmd/spell/
H A Dhashlook.c38 int hindex[NI]; variable
63 wp = &table[hindex[t]]; in hashlook()
64 tp = &table[hindex[t+1]]; in hashlook()
122 if (rhuff(f) == 0 || read(fileno(f), (char *)hindex, in prime()
123 NI * sizeof (*hindex)) != NI * sizeof (*hindex) || in prime()
124 (table = (unsigned *)malloc(hindex[NI-1] * sizeof (*table))) == 0 || in prime()
125 read(fileno(f), (char *)table, sizeof (*table) * hindex[NI-1]) != in prime()
126 hindex[NI-1] * sizeof (*table)) in prime()
136 fread((char *)hindex, sizeof (*hindex), NI, f) != NI || in prime()
137 (table = (unsigned *)malloc(hindex[NI-1] * sizeof (*table))) == 0 || in prime()
[all …]
H A Dhashcheck.c41 int hindex[NI]; variable
90 (void) fread((char *)hindex, sizeof (*hindex), NI, stdin); in main()
91 table = (unsigned *)malloc(hindex[NI-1]*sizeof (*table)); in main()
92 (void) fread((char *)table, sizeof (*table), hindex[NI-1], stdin); in main()
96 for (wp = hindex[i]; wp < hindex[i+1]; ) { in main()
97 if (wp == hindex[i] && bp == U) in main()
104 if (wp > hindex[i+1] || in main()
105 wp == hindex[i+1] && bp < U) in main()
H A Dspellin.c45 int hindex[NI]; variable
120 hindex[++u] = wp; in main()
149 hindex[u] = wp; in main()
151 (void) fwrite((char *)hindex, sizeof (*hindex), NI, stdout); in main()
159 (BYTE * ((float)wp * sizeof (*table) + sizeof (hindex)) / count)); in main()
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_addr.c113 uint_t hindex; in sctp_ipif_inactive() local
121 hindex = SCTP_IPIF_ADDR_HASH(sctp_ipif->sctp_ipif_saddr, in sctp_ipif_inactive()
133 list_remove(&sctps->sctps_g_ipifs[hindex].sctp_ipif_list, in sctp_ipif_inactive()
135 sctps->sctps_g_ipifs[hindex].ipif_count--; in sctp_ipif_inactive()
180 int hindex; in sctp_lookup_ipif_addr() local
182 hindex = SCTP_IPIF_ADDR_HASH(*addr, !IN6_IS_ADDR_V4MAPPED(addr)); in sctp_lookup_ipif_addr()
185 if (sctps->sctps_g_ipifs[hindex].ipif_count == 0) { in sctp_lookup_ipif_addr()
189 sctp_ipif = list_head(&sctps->sctps_g_ipifs[hindex].sctp_ipif_list); in sctp_lookup_ipif_addr()
190 for (j = 0; j < sctps->sctps_g_ipifs[hindex].ipif_count; j++) { in sctp_lookup_ipif_addr()
214 &sctps->sctps_g_ipifs[hindex].sctp_ipif_list, sctp_ipif); in sctp_lookup_ipif_addr()
[all …]
/titanic_41/usr/src/lib/libsip/common/
H A Dsip_hash.c52 sip_hash_add(sip_hash_t *sip_hash, void *obj, int hindex) in sip_hash_add() argument
65 hash_entry = &sip_hash[hindex]; in sip_hash_add()
87 sip_hash_find(sip_hash_t *sip_hash, void *digest, int hindex, in sip_hash_find() argument
94 hash_entry = &sip_hash[hindex]; in sip_hash_find()
140 sip_hash_delete(sip_hash_t *sip_hash, void *digest, int hindex, in sip_hash_delete() argument
148 hash_entry = &sip_hash[hindex]; in sip_hash_delete()
H A Dsip_xaction.c58 sip_find_md5_digest(char *bid, _sip_msg_t *msg, uint16_t *hindex, in sip_find_md5_digest() argument
102 (uchar_t *)hindex); in sip_find_md5_digest()
106 (uchar_t *)hindex); in sip_find_md5_digest()
273 sip_xaction_match(void *obj, void *hindex) in sip_xaction_match() argument
281 if (bcmp(tmp->sip_xaction_hash_digest, hindex, in sip_xaction_match()
298 int hindex; in sip_xaction_find() local
318 hindex = SIP_DIGEST_TO_HASH(hash_index); in sip_xaction_find()
320 (void *)hash_index, hindex, sip_xaction_match); in sip_xaction_find()
484 sip_xaction_remove(void *obj, void *hindex, int *found) in sip_xaction_remove() argument
494 if (bcmp(tmp->sip_xaction_hash_digest, hindex, in sip_xaction_remove()
[all …]
H A Dsip_dialog.c1196 sip_dialog_match(void *obj, void *hindex) in sip_dialog_match() argument
1205 if (bcmp(dialog->sip_dlg_id, hindex, in sip_dialog_match()
1219 sip_dialog_dontfree(void *obj, void *hindex, int *found) in sip_dialog_dontfree() argument
1225 if (bcmp(dialog->sip_dlg_id, hindex, sizeof (dialog->sip_dlg_id)) in sip_dialog_dontfree()
1240 sip_dialog_free(void *obj, void *hindex, int *found) in sip_dialog_free() argument
1246 if (bcmp(dialog->sip_dlg_id, hindex, sizeof (dialog->sip_dlg_id)) in sip_dialog_free()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.c2204 int hindex; in cvthname() local
2217 if ((h = hnc_lookup(nbp, ncp, &hindex)) != NULL) { in cvthname()
2300 hnc_register(nbp, ncp, h, hindex); in cvthname()
5357 hnc_lookup(struct netbuf *nbp, struct netconfig *ncp, int *hindex) in hnc_lookup() argument
5375 *hindex = index = addr_hash(nbp); in hnc_lookup()
5424 host_list_t *h, int hindex) in hnc_register() argument
5462 for (hpp = &hnc_cache[hindex]; (hp = *hpp) != NULL; ) { in hnc_register()
5491 entry->next = hnc_cache[hindex]; in hnc_register()
5492 hnc_cache[hindex] = entry; in hnc_register()