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

/bionic/libc/dns/include/
H A Dhostent.h51 struct hostent *hp; member in struct:getnamaddr
/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/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 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 Dgethnamaddr.c203 const HEADER *hp; local
242 hp = &answer->hdr;
243 ancount = ntohs(hp->ancount);
244 qdcount = ntohs(hp->qdcount);
510 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, argument
524 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, NETID_UNSET,
531 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, NETID_UNSET,
543 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, argument
553 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, NETID_UNSET,
592 android_read_hostent(FILE* proxy, struct hostent* hp, cha argument
698 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument
816 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
850 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
863 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
923 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
1094 map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep) argument
1149 char *hp; local
1171 struct hostent *hp; local
1234 struct hostent *hp; local
1353 struct hostent *hp = info->hp; local
1470 struct hostent *hp = NULL; local
1522 struct hostent *hp; local
1591 struct hostent *hp; local
[all...]
H A Dgetaddrinfo.c1312 const HEADER *hp; local
1344 hp = &answer->hdr;
1345 ancount = ntohs(hp->ancount);
1346 qdcount = ntohs(hp->qdcount);
2155 HEADER *hp; local
2172 hp = (HEADER *)(void *)t->answer;
2173 hp->rcode = NOERROR; /* default */
2211 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
2212 rcode = hp
2259 HEADER *hp; local
[all...]
/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_debug.c922 u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ local
994 hp = precsize_aton(&cp);
1012 *bcp++ = hp;
H A Dres_send.c757 const HEADER *hp = (const HEADER *)(const void *)buf; local
956 if (hp->id != anhp->id) {
1088 const HEADER *hp = (const HEADER *)(const void *)buf; local
1216 if (hp->id != anhp->id) {
/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...]

Completed in 553 milliseconds