Home
last modified time | relevance | path

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

/freebsd-11-stable/usr.sbin/nscd/
HDcachelib.c78 struct cache_ht_item_data_ *hp1, *hp2; in ht_items_cmp_func() local
82 hp1 = (struct cache_ht_item_data_ *)p1; in ht_items_cmp_func()
85 assert(hp1->key != NULL); in ht_items_cmp_func()
88 if (hp1->key_size != hp2->key_size) { in ht_items_cmp_func()
89 min_size = (hp1->key_size < hp2->key_size) ? hp1->key_size : in ht_items_cmp_func()
91 result = memcmp(hp1->key, hp2->key, min_size); in ht_items_cmp_func()
94 return ((hp1->key_size < hp2->key_size) ? -1 : 1); in ht_items_cmp_func()
98 return (memcmp(hp1->key, hp2->key, hp1->key_size)); in ht_items_cmp_func()
104 struct cache_ht_item_data_ *hp1, *hp2; in ht_items_fixed_size_left_cmp_func() local
108 hp1 = (struct cache_ht_item_data_ *)p1; in ht_items_fixed_size_left_cmp_func()
[all …]
/freebsd-11-stable/lib/libcasper/services/cap_dns/tests/
HDdns_test.c180 hostent_compare(const struct hostent *hp0, const struct hostent *hp1) in hostent_compare() argument
183 if (hp0 == NULL && hp1 != NULL) in hostent_compare()
186 if (hp0 == NULL || hp1 == NULL) in hostent_compare()
189 if (hp0->h_name != NULL || hp1->h_name != NULL) { in hostent_compare()
190 if (hp0->h_name == NULL || hp1->h_name == NULL) in hostent_compare()
192 if (strcmp(hp0->h_name, hp1->h_name) != 0) in hostent_compare()
196 if (!hostent_aliases_compare(hp0->h_aliases, hp1->h_aliases)) in hostent_compare()
198 if (!hostent_aliases_compare(hp1->h_aliases, hp0->h_aliases)) in hostent_compare()
201 if (hp0->h_addrtype != hp1->h_addrtype) in hostent_compare()
204 if (hp0->h_length != hp1->h_length) in hostent_compare()
[all …]
/freebsd-11-stable/lib/libc/net/
HDname6.c501 _hpmerge(struct hostent *hp1, struct hostent *hp2, int *errp) in _hpmerge() argument
510 if (hp1 == NULL) in _hpmerge()
513 return _hpcopy(hp1, errp); in _hpmerge()
515 #define HP(i) (i == 1 ? hp1 : hp2) in _hpmerge()
517 hp->h_name = (hp1->h_name != NULL ? hp1->h_name : hp2->h_name); in _hpmerge()
533 if (hp1->h_length != hp2->h_length) { in _hpmerge()
537 hp->h_addrtype = hp1->h_addrtype; in _hpmerge()
538 hp->h_length = hp1->h_length; in _hpmerge()
/freebsd-11-stable/share/doc/smm/02.config/
HDspell.ok171 hp1