Home
last modified time | relevance | path

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

/bionic/libc/dns/net/
Dsethostent.c91 struct hostent *hp; in _hf_gethtbyname() local
108 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname()
110 hp = NULL; in _hf_gethtbyname()
111 if (hp == NULL) in _hf_gethtbyname()
112 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname()
116 hp = _hf_gethtbyname2(name, af, info); in _hf_gethtbyname()
118 if (hp == NULL) { in _hf_gethtbyname()
130 struct hostent *hp, hent; in _hf_gethtbyname2() local
159 info->hp->h_addrtype = af; in _hf_gethtbyname2()
160 info->hp->h_length = 0; in _hf_gethtbyname2()
[all …]
Dgethnamaddr.c211 const HEADER *hp; in getanswer() local
250 hp = &answer->hdr; in getanswer()
251 ancount = ntohs(hp->ancount); in getanswer()
252 qdcount = ntohs(hp->qdcount); in getanswer()
518 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, in gethostbyname_r() argument
532 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, in gethostbyname_r()
539 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, in gethostbyname_r()
551 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, in gethostbyname2_r() argument
561 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, in gethostbyname2_r()
600 android_read_hostent(FILE* proxy, struct hostent* hp, char* hbuf, size_t hbuflen, int *he) in android_read_hostent() argument
[all …]
Dgetnameinfo.c169 struct hostent *hp; in getnameinfo_inet() local
306 hp = android_gethostbyaddrfornetcontext_proxy(addr, afd->a_addrlen, afd->a_af, &netcontext); in getnameinfo_inet()
307 if (hp) { in getnameinfo_inet()
315 p = strchr(hp->h_name, '.'); in getnameinfo_inet()
317 TODO: Before uncommenting rewrite to avoid modifying hp. in getnameinfo_inet()
321 if (strlen(hp->h_name) + 1 > (size_t)hostlen) { in getnameinfo_inet()
324 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
Dgetaddrinfo.c1312 const HEADER *hp; in getanswer() local
1344 hp = &answer->hdr; in getanswer()
1345 ancount = ntohs(hp->ancount); in getanswer()
1346 qdcount = ntohs(hp->qdcount); in getanswer()
2158 HEADER *hp; in res_queryN() local
2175 hp = (HEADER *)(void *)t->answer; in res_queryN()
2176 hp->rcode = NOERROR; /* default */ in res_queryN()
2214 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2215 rcode = hp->rcode; /* record most recent error */ in res_queryN()
2218 printf(";; rcode = %u, ancount=%u\n", hp->rcode, in res_queryN()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
De_remainder.c37 int32_t hx,hp; in __ieee754_remainder() local
42 EXTRACT_WORDS(hp,lp,p); in __ieee754_remainder()
44 hp &= 0x7fffffff; in __ieee754_remainder()
48 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainder()
50 ((hp>=0x7ff00000)&& /* p is NaN */ in __ieee754_remainder()
51 (((hp-0x7ff00000)|lp)!=0))) in __ieee754_remainder()
55 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ in __ieee754_remainder()
56 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder()
59 if (hp<0x00200000) { in __ieee754_remainder()
De_remainderf.c28 int32_t hx,hp; in __ieee754_remainderf() local
33 GET_FLOAT_WORD(hp,p); in __ieee754_remainderf()
35 hp &= 0x7fffffff; in __ieee754_remainderf()
39 if(hp==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainderf()
41 ((hp>0x7f800000))) /* p is NaN */ in __ieee754_remainderf()
45 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */ in __ieee754_remainderf()
46 if ((hx-hp)==0) return zero*x; in __ieee754_remainderf()
49 if (hp<0x01000000) { in __ieee754_remainderf()
/bionic/tests/
Dnetdb_test.cpp186 hostent* hp = gethostbyname("localhost"); in TEST() local
187 VerifyLocalhost(hp); in TEST()
191 hostent* hp = gethostbyname2("localhost", AF_INET); in TEST() local
192 VerifyLocalhost(hp); in TEST()
197 hostent *hp; in TEST() local
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
202 VerifyLocalhost(hp); in TEST()
205 hp->h_addr[0] = 0; in TEST()
214 ASSERT_EQ(0, hp->h_addr[0]); in TEST()
219 hostent *hp; in TEST() local
[all …]
/bionic/libc/dns/resolv/
Dres_mkquery.c126 register HEADER *hp; in res_nmkquery() local
144 hp = (HEADER *)(void *)buf; in res_nmkquery()
145 hp->id = htons(res_randomid()); in res_nmkquery()
146 hp->opcode = op; in res_nmkquery()
147 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery()
148 hp->rcode = NOERROR; in res_nmkquery()
171 hp->qdcount = htons(1); in res_nmkquery()
192 hp->arcount = htons(1); in res_nmkquery()
214 hp->ancount = htons(1); in res_nmkquery()
236 register HEADER *hp; in res_nopt() local
[all …]
Dres_query.c135 HEADER *hp = (HEADER *)(void *)answer; in res_nquery() local
142 hp->rcode = NOERROR; /* default */ in res_nquery()
184 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
188 p_rcode(hp->rcode), in res_nquery()
189 ntohs(hp->ancount), in res_nquery()
190 ntohs(hp->nscount), in res_nquery()
191 ntohs(hp->arcount)); in res_nquery()
193 switch (hp->rcode) { in res_nquery()
229 HEADER *hp = (HEADER *)(void *)answer; in res_nsearch() local
326 if (hp->rcode == SERVFAIL) { in res_nsearch()
Dres_debug.c922 u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ in loc_aton() local
994 hp = precsize_aton(&cp); in loc_aton()
1012 *bcp++ = hp; in loc_aton()
Dres_send.c760 const HEADER *hp = (const HEADER *)(const void *)buf; in send_vc() local
959 if (hp->id != anhp->id) { in send_vc()
1091 const HEADER *hp = (const HEADER *)(const void *)buf; in send_dg() local
1219 if (hp->id != anhp->id) { in send_dg()
/bionic/libc/dns/include/
Dhostent.h51 struct hostent *hp; member