/bionic/libc/dns/net/ |
D | sethostent.c | 91 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 …]
|
D | gethnamaddr.c | 211 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 …]
|
D | getnameinfo.c | 169 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()
|
D | getaddrinfo.c | 1312 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/ |
D | e_remainder.c | 37 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()
|
D | e_remainderf.c | 28 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/ |
D | netdb_test.cpp | 186 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/ |
D | res_mkquery.c | 126 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 …]
|
D | res_query.c | 135 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()
|
D | res_debug.c | 922 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()
|
D | res_send.c | 760 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/ |
D | hostent.h | 51 struct hostent *hp; member
|