Searched refs:hp (Results 1 - 12 of 12) sorted by relevance

/bionic/libc/dns/net/
H A Dsethostent.c91 struct hostent *hp; local
108 hp = _hf_gethtbyname2(name, AF_INET6, info);
110 hp = NULL;
111 if (hp == NULL)
112 hp = _hf_gethtbyname2(name, AF_INET, info);
116 hp = _hf_gethtbyname2(name, af, info);
118 if (hp == NULL) {
130 struct hostent *hp, hent; local
159 info->hp->h_addrtype = af;
160 info->hp
244 struct hostent *hp; local
[all...]
H A Dgethnamaddr.c204 const HEADER *hp; local
243 hp = &answer->hdr;
244 ancount = ntohs(hp->ancount);
245 qdcount = ntohs(hp->qdcount);
511 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, argument
525 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, NETID_UNSET,
532 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, NETID_UNSET,
544 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, argument
554 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, NETID_UNSET,
593 android_read_hostent(FILE* proxy, struct hostent* hp, cha argument
699 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument
817 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *hbuf, size_t hbuflen, int *errorp, unsigned netid, unsigned mark) argument
851 gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *h_errnop) argument
864 android_gethostbyaddrfornet_real(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, size_t buflen, int *he, unsigned netid, unsigned mark) argument
924 android_gethostbyaddrfornet_proxy_internal(const void* addr, socklen_t len, int af, struct hostent *hp, char *hbuf, size_t hbuflen, int *he, unsigned netid, unsigned mark) argument
1095 map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep) argument
1150 char *hp; local
1172 struct hostent *hp; local
1235 struct hostent *hp; local
1354 struct hostent *hp = info->hp; local
1471 struct hostent *hp = NULL; local
1523 struct hostent *hp; local
1592 struct hostent *hp; local
[all...]
H A Dgetnameinfo.c172 struct hostent *hp; local
306 hp = android_gethostbyaddrfornet_proxy(addr, afd->a_addrlen, afd->a_af, netid, mark);
307 if (hp) {
315 p = strchr(hp->h_name, '.');
317 TODO: Before uncommenting rewrite to avoid modifying hp.
321 if (strlen(hp->h_name) + 1 > (size_t)hostlen) {
324 strlcpy(host, hp->h_name, hostlen);
H A Dgetaddrinfo.c1301 const HEADER *hp; local
1333 hp = &answer->hdr;
1334 ancount = ntohs(hp->ancount);
1335 qdcount = ntohs(hp->qdcount);
2141 HEADER *hp; local
2158 hp = (HEADER *)(void *)t->answer;
2159 hp->rcode = NOERROR; /* default */
2197 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
2198 rcode = hp
2245 HEADER *hp; local
[all...]
/bionic/libm/upstream-freebsd/lib/msun/src/
H A De_remainder.c37 int32_t hx,hp; local
42 EXTRACT_WORDS(hp,lp,p);
44 hp &= 0x7fffffff;
48 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */
50 ((hp>=0x7ff00000)&& /* p is NaN */
51 (((hp-0x7ff00000)|lp)!=0)))
55 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */
56 if (((hx-hp)|(lx-lp))==0) return zero*x;
59 if (hp<0x00200000) {
H A De_remainderf.c28 int32_t hx,hp; local
33 GET_FLOAT_WORD(hp,p);
35 hp &= 0x7fffffff;
39 if(hp==0) return (x*p)/(x*p); /* p = 0 */
41 ((hp>0x7f800000))) /* p is NaN */
45 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */
46 if ((hx-hp)==0) return zero*x;
49 if (hp<0x01000000) {
/bionic/libc/dns/resolv/
H A Dres_mkquery.c127 register HEADER *hp; local
145 hp = (HEADER *)(void *)buf;
146 hp->id = htons(res_randomid());
147 hp->opcode = op;
148 hp->rd = (statp->options & RES_RECURSE) != 0U;
149 hp->rcode = NOERROR;
172 hp->qdcount = htons(1);
193 hp->arcount = htons(1);
215 hp->ancount = htons(1);
237 register HEADER *hp; local
[all...]
H A Dres_query.c135 HEADER *hp = (HEADER *)(void *)answer; local
142 hp->rcode = NOERROR; /* default */
184 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
188 p_rcode(hp->rcode),
189 ntohs(hp->ancount),
190 ntohs(hp->nscount),
191 ntohs(hp->arcount));
193 switch (hp->rcode) {
229 HEADER *hp local
[all...]
H A Dres_send.c740 const HEADER *hp = (const HEADER *)(const void *)buf; local
927 if (hp->id != anhp->id) {
1051 const HEADER *hp = (const HEADER *)(const void *)buf; local
1178 if (hp->id != anhp->id) {
H A Dres_debug.c922 u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ local
994 hp = precsize_aton(&cp);
1012 *bcp++ = hp;
/bionic/tests/
H A Dnetdb_test.cpp186 hostent* hp = gethostbyname("localhost"); local
187 VerifyLocalhost(hp);
191 hostent* hp = gethostbyname2("localhost", AF_INET); local
192 VerifyLocalhost(hp);
197 hostent *hp; local
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err);
202 VerifyLocalhost(hp);
204 // Change hp->h_addr to test reentrancy.
205 hp->h_addr[0] = 0;
214 ASSERT_EQ(0, hp
219 hostent *hp; local
241 hostent *hp = gethostbyaddr(&addr, sizeof(addr), AF_INET); local
248 hostent *hp; local
270 hostent *hp; local
280 hostent *hp; local
291 hostent *hp; local
[all...]
/bionic/libc/dns/include/
H A Dhostent.h51 struct hostent *hp; member in struct:getnamaddr

Completed in 144 milliseconds