/bionic/libc/dns/net/ |
D | sethostent.c | 101 struct hostent *hp; in _hf_gethtbyname() local 118 hp = _hf_gethtbyname2(name, AF_INET6, info); in _hf_gethtbyname() 120 hp = NULL; in _hf_gethtbyname() 121 if (hp == NULL) in _hf_gethtbyname() 122 hp = _hf_gethtbyname2(name, AF_INET, info); in _hf_gethtbyname() 126 hp = _hf_gethtbyname2(name, af, info); in _hf_gethtbyname() 128 if (hp == NULL) { in _hf_gethtbyname() 141 struct hostent *hp, hent; in _hf_gethtbyname2() local 169 info->hp->h_addrtype = af; in _hf_gethtbyname2() 170 info->hp->h_length = 0; in _hf_gethtbyname2() [all …]
|
D | gethnamaddr.c | 219 const HEADER *hp; in getanswer() local 258 hp = &answer->hdr; in getanswer() 259 ancount = ntohs(hp->ancount); in getanswer() 260 qdcount = ntohs(hp->qdcount); in getanswer() 526 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, in gethostbyname_r() argument 539 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, in gethostbyname_r() 546 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, in gethostbyname_r() 553 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, in gethostbyname2_r() argument 562 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, in gethostbyname2_r() 568 android_read_hostent(FILE* proxy, struct hostent* hp, char* hbuf, size_t hbuflen, int *he) in android_read_hostent() argument [all …]
|
D | getnameinfo.c | 179 struct hostent *hp; in getnameinfo_inet() local 318 hp = android_gethostbyaddrfornetcontext_proxy(addr, afd->a_addrlen, afd->a_af, &netcontext); in getnameinfo_inet() 319 if (hp) { in getnameinfo_inet() 327 p = strchr(hp->h_name, '.'); in getnameinfo_inet() 329 TODO: Before uncommenting rewrite to avoid modifying hp. in getnameinfo_inet() 333 if (strlen(hp->h_name) + 1 > (size_t)hostlen) { in getnameinfo_inet() 336 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
|
D | getaddrinfo.c | 1317 const HEADER *hp; in getanswer() local 1349 hp = &answer->hdr; in getanswer() 1350 ancount = ntohs(hp->ancount); in getanswer() 1351 qdcount = ntohs(hp->qdcount); in getanswer() 2163 HEADER *hp; in res_queryN() local 2181 hp = (HEADER *)(void *)t->answer; in res_queryN() 2185 hp->rcode = NOERROR; /* default */ in res_queryN() 2224 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN() 2225 rcode = hp->rcode; /* record most recent error */ in res_queryN() 2240 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)|| /* 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)|| /* 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->ad = (statp->options & RES_USE_DNSSEC) != 0U; in res_nmkquery() 149 hp->rcode = NOERROR; in res_nmkquery() 172 hp->qdcount = htons(1); in res_nmkquery() 193 hp->arcount = htons(1); in res_nmkquery() 215 hp->ancount = htons(1); in res_nmkquery() [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 | 940 u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ in loc_aton() local 1012 hp = precsize_aton(&cp); in loc_aton() 1030 *bcp++ = hp; in loc_aton()
|
D | res_send.c | 763 const HEADER *hp = (const HEADER *)(const void *)buf; in send_vc() local 961 if (hp->id != anhp->id) { in send_vc() 1080 const HEADER *hp = (const HEADER *)(const void *)buf; in send_dg() local 1203 if (hp->id != anhp->id) { in send_dg()
|
/bionic/libc/dns/include/ |
D | hostent.h | 51 struct hostent *hp; member
|