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/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
281 hostent *hp; local
293 hostent *hp; local
304 hostent *hp; local
315 hostent *hp; local
327 hostent *hp; local
[all...]
/bionic/libc/dns/net/
H A Dsethostent.c104 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 Dgetnameinfo.c169 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 Dgethnamaddr.c220 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 Dgetaddrinfo.c1318 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/libc/dns/resolv/
H A Dres_mkquery.c126 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 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.c761 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) {

Completed in 210 milliseconds