Home
last modified time | relevance | path

Searched refs:hp1 (Results 1 – 4 of 4) sorted by relevance

/freebsd/usr.sbin/nscd/
H A Dcachelib.c76 struct cache_ht_item_data_ *hp1, *hp2; in ht_items_cmp_func() local
80 hp1 = (struct cache_ht_item_data_ *)p1; in ht_items_cmp_func()
83 assert(hp1->key != NULL); in ht_items_cmp_func()
86 if (hp1->key_size != hp2->key_size) { in ht_items_cmp_func()
87 min_size = (hp1->key_size < hp2->key_size) ? hp1->key_size : in ht_items_cmp_func()
89 result = memcmp(hp1->key, hp2->key, min_size); in ht_items_cmp_func()
92 return ((hp1->key_size < hp2->key_size) ? -1 : 1); in ht_items_cmp_func()
96 return (memcmp(hp1->key, hp2->key, hp1->key_size)); in ht_items_cmp_func()
102 struct cache_ht_item_data_ *hp1, *hp2; in ht_items_fixed_size_left_cmp_func() local
106 hp1 = (struct cache_ht_item_data_ *)p1; in ht_items_fixed_size_left_cmp_func()
[all …]
/freebsd/lib/libcasper/services/cap_dns/tests/
H A Ddns_test.c159 hostent_compare(const struct hostent *hp0, const struct hostent *hp1) in hostent_compare() argument
162 if (hp0 == NULL && hp1 != NULL) in hostent_compare()
165 if (hp0 == NULL || hp1 == NULL) in hostent_compare()
168 if (hp0->h_name != NULL || hp1->h_name != NULL) { in hostent_compare()
169 if (hp0->h_name == NULL || hp1->h_name == NULL) in hostent_compare()
171 if (strcmp(hp0->h_name, hp1->h_name) != 0) in hostent_compare()
175 if (!hostent_aliases_compare(hp0->h_aliases, hp1->h_aliases)) in hostent_compare()
177 if (!hostent_aliases_compare(hp1->h_aliases, hp0->h_aliases)) in hostent_compare()
180 if (hp0->h_addrtype != hp1->h_addrtype) in hostent_compare()
183 if (hp0->h_length != hp1->h_length) in hostent_compare()
[all …]
/freebsd/lib/libc/net/
H A Dname6.c500 _hpmerge(struct hostent *hp1, struct hostent *hp2, int *errp) in _hpmerge() argument
509 if (hp1 == NULL) in _hpmerge()
512 return _hpcopy(hp1, errp); in _hpmerge()
514 #define HP(i) (i == 1 ? hp1 : hp2) in _hpmerge()
516 hp->h_name = (hp1->h_name != NULL ? hp1->h_name : hp2->h_name); in _hpmerge()
532 if (hp1->h_length != hp2->h_length) { in _hpmerge()
536 hp->h_addrtype = hp1->h_addrtype; in _hpmerge()
537 hp->h_length = hp1->h_length; in _hpmerge()
/freebsd/share/doc/smm/02.config/
H A Dspell.ok170 hp1