/bionic/libc/dns/net/ |
H A D | sethostent.c | 104 struct hostent *hp; local 121 hp = _hf_gethtbyname2(name, AF_INET6, info); 123 hp = NULL; 124 if (hp == NULL) 125 hp = _hf_gethtbyname2(name, AF_INET, info); 129 hp = _hf_gethtbyname2(name, af, info); 131 if (hp == NULL) { 144 struct hostent *hp, hent; local 172 info->hp->h_addrtype = af; 173 info->hp 256 struct hostent *hp; local [all...] |
H A D | gethnamaddr.c | 220 const HEADER *hp; local 259 hp = &answer->hdr; 260 ancount = ntohs(hp->ancount); 261 qdcount = ntohs(hp->qdcount); 527 gethostbyname_r(const char *name, struct hostent *hp, char *buf, size_t buflen, argument 540 *result = gethostbyname_internal(name, AF_INET6, res, hp, buf, buflen, errorp, 547 *result = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, errorp, 554 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, argument 563 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, 597 android_read_hostent(FILE* proxy, struct hostent* hp, cha argument 703 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument 821 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *hbuf, size_t hbuflen, int *errorp, const struct android_net_context *netcontext) argument 854 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_gethostbyaddrfornetcontext_real(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, size_t buflen, int *he, const struct android_net_context *netcontext) argument 924 android_gethostbyaddrfornetcontext_proxy_internal(const void* addr, socklen_t len, int af, struct hostent *hp, char *hbuf, size_t hbuflen, int *he, const struct android_net_context *netcontext) 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 1352 struct hostent *hp = info->hp; local 1469 struct hostent *hp = NULL; local 1521 struct hostent *hp; local 1613 struct hostent *hp; local [all...] |
H A D | getnameinfo.c | 169 struct hostent *hp; local 306 hp = android_gethostbyaddrfornetcontext_proxy(addr, afd->a_addrlen, afd->a_af, &netcontext); 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 D | getaddrinfo.c | 1318 const HEADER *hp; local 1350 hp = &answer->hdr; 1351 ancount = ntohs(hp->ancount); 1352 qdcount = ntohs(hp->qdcount); 2164 HEADER *hp; local 2182 hp = (HEADER *)(void *)t->answer; 2186 hp->rcode = NOERROR; /* default */ 2225 if (n < 0 || hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { 2226 rcode = hp 2285 HEADER *hp; local [all...] |
/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_remainder.c | 37 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 D | e_remainderf.c | 28 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/tests/ |
H A D | netdb_test.cpp | 186 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 281 hostent *hp; local 293 hostent *hp; local 304 hostent *hp; local 315 hostent *hp; local 327 hostent *hp; local [all...] |
/bionic/libc/dns/resolv/ |
H A D | res_mkquery.c | 126 register HEADER *hp; local 144 hp = (HEADER *)(void *)buf; 145 hp->id = htons(res_randomid()); 146 hp->opcode = op; 147 hp->rd = (statp->options & RES_RECURSE) != 0U; 148 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U; 149 hp->rcode = NOERROR; 172 hp->qdcount = htons(1); 193 hp->arcount = htons(1); 215 hp 237 register HEADER *hp; local [all...] |
H A D | res_query.c | 135 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 D | res_send.c | 761 const HEADER *hp = (const HEADER *)(const void *)buf; local 961 if (hp->id != anhp->id) { 1093 const HEADER *hp = (const HEADER *)(const void *)buf; local 1222 if (hp->id != anhp->id) {
|
H A D | res_debug.c | 922 u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */ local 994 hp = precsize_aton(&cp); 1012 *bcp++ = hp;
|
/bionic/libc/dns/include/ |
H A D | hostent.h | 51 struct hostent *hp; member in struct:getnamaddr
|