/system/core/libcutils/ |
socket_network_client.c | 41 struct hostent *hp; local 46 hp = gethostbyname(host); 47 if(hp == 0) return -1; 50 addr.sin_family = hp->h_addrtype; 52 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); 54 s = socket(hp->h_addrtype, type, 0);
|
/bionic/libm/src/ |
e_remainderf.c | 29 int32_t hx,hp; local 34 GET_FLOAT_WORD(hp,p); 36 hp &= 0x7fffffff; 40 if(hp==0) return (x*p)/(x*p); /* p = 0 */ 42 ((hp>0x7f800000))) /* p is NaN */ 46 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */ 47 if ((hx-hp)==0) return zero*x; 50 if (hp<0x01000000) {
|
e_remainder.c | 36 int32_t hx,hp; local 41 EXTRACT_WORDS(hp,lp,p); 43 hp &= 0x7fffffff; 47 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ 49 ((hp>=0x7ff00000)&& /* p is NaN */ 50 (((hp-0x7ff00000)|lp)!=0))) 54 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ 55 if (((hx-hp)|(lx-lp))==0) return zero*x; 58 if (hp<0x00200000) {
|
/external/fdlibm/ |
e_remainder.c | 39 int hx,hp; local 45 hp = __HI(p); /* high word of p */ 48 hp &= 0x7fffffff; 52 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ 54 ((hp>=0x7ff00000)&& /* p is NaN */ 55 (((hp-0x7ff00000)|lp)!=0))) 59 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ 60 if (((hx-hp)|(lx-lp))==0) return zero*x; 63 if (hp<0x00200000) {
|
/external/ppp/pppd/plugins/radius/ |
ip_util.c | 31 struct hostent *hp; local 37 else if ((hp = gethostbyname (host)) == (struct hostent *) NULL) 42 return ntohl((*(UINT4 *) hp->h_addr)); 105 struct hostent *hp; local 108 if ((hp = gethostbyaddr ((char *) &n_ipaddr, sizeof (struct in_addr), 113 return ((hp==NULL)?"unknown":hp->h_name);
|
config.c | 414 struct hostent *hp; local 425 if ((hp = gethostbyname (hostname)) == (struct hostent *) NULL) 429 for (paddr = hp->h_addr_list; *paddr; paddr++)
|
/bionic/libc/netbsd/resolv/ |
res_mkquery.c | 127 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...] |
res_query.c | 134 HEADER *hp = (HEADER *)(void *)answer; local 141 hp->rcode = NOERROR; /* default */ 183 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { 187 p_rcode(hp->rcode), 188 ntohs(hp->ancount), 189 ntohs(hp->nscount), 190 ntohs(hp->arcount)); 192 switch (hp->rcode) { 228 HEADER *hp = (HEADER *)(void *)answer local [all...] |
/external/valgrind/main/drd/tests/ |
custom_alloc.c | 28 static void* hp = 0; // current heap pointer local 33 if (hp + size2 > hp_lim) { 34 hp = get_superblock(); 35 hp_lim = hp + SUPERBLOCK_SIZE - 1; 38 p = hp + RZ; 39 hp += size2;
|
/external/valgrind/main/massif/tests/ |
custom_alloc.c | 28 static void* hp = 0; // current heap pointer local 33 if (hp + size2 > hp_lim) { 34 hp = get_superblock(); 35 hp_lim = hp + SUPERBLOCK_SIZE - 1; 38 p = hp + RZ; 39 hp += size2;
|
/external/valgrind/main/memcheck/tests/ |
custom_alloc.c | 34 static void* hp = 0; // current heap pointer local 39 if (hp + size2 > hp_lim) { 40 hp = get_superblock(); 41 hp_lim = hp + SUPERBLOCK_SIZE - 1; 44 p = hp + RZ; 45 hp += size2;
|
/external/dropbear/ |
fake-rfc2553.c | 50 struct hostent *hp; local 67 hp = gethostbyaddr((char *)&sin->sin_addr, 69 if (hp == NULL) 72 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) 153 struct hostent *hp; local 201 hp = gethostbyname(hostname); 202 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) [all...] |
/external/openssh/openbsd-compat/ |
fake-rfc2553.c | 51 struct hostent *hp; local 70 hp = gethostbyaddr((char *)&sin->sin_addr, 72 if (hp == NULL) 75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) 158 struct hostent *hp; local 209 hp = gethostbyname(hostname); 210 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) [all...] |
/external/tcpdump/ |
print-hsrp.c | 103 struct hsrp *hp = (struct hsrp *) bp; local 105 TCHECK(hp->hsrp_version); 106 printf("HSRPv%d", hp->hsrp_version); 107 if (hp->hsrp_version != 0) 109 TCHECK(hp->hsrp_op_code); 111 printf("%s ", tok2strary(op_code_str, "unknown (%d)", hp->hsrp_op_code)); 113 TCHECK(hp->hsrp_state); 114 printf("state=%s ", tok2str(states, "Unknown (%d)", hp->hsrp_state)); 115 TCHECK(hp->hsrp_group); 116 printf("group=%d ", hp->hsrp_group) [all...] |
/external/ipsec-tools/src/racoon/ |
isakmp_frag.c | 169 int *hp; local 171 hp = (int *)(gen + 1); 173 return ntohl(hp[MD5_DIGEST_LENGTH / sizeof(*hp)]);
|
getcertsbyname.c | 210 HEADER *hp; local 252 hp = (HEADER *)answer; 253 qdcount = ntohs(hp->qdcount); 254 ancount = ntohs(hp->ancount); 264 cp = (unsigned char *)(hp + 1);
|
/external/webkit/Tools/android/flex-2.5.4a/MISC/Macintosh/ |
alloca.c | 156 register header *hp; /* traverses linked list */ local 158 for (hp = last_alloca_header; hp != NULL;) 159 if ((STACK_DIR > 0 && hp->h.deep > depth) 160 || (STACK_DIR < 0 && hp->h.deep < depth)) 162 register header *np = hp->h.next; 164 free ((pointer) hp); /* collect garbage */ 166 hp = np; /* -> next header */ 171 last_alloca_header = hp; /* -> last valid storage */
|
/external/nist-sip/java/gov/nist/core/ |
HostNameParser.java | 266 HostPort hp = new HostPort(); local 267 hp.setHost(host); 279 hp.setPort(Integer.parseInt(port)); 312 return hp; 334 HostPort hp = hnp.hostPort(true); local 335 System.out.println("["+hp.encode()+"]");
|
/external/tcpdump/missing/ |
getnameinfo.c | 111 struct hostent *hp; local 244 hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error); 246 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af); 254 if (hp) { 256 p = strchr(hp->h_name, '.'); 259 if (strlen(hp->h_name) + 1 > hostlen) { 261 freehostent(hp); 265 strcpy(host, hp->h_name); 267 freehostent(hp);
|
/system/netd/ |
DnsProxyListener.cpp | 235 struct hostent* hp; local 238 hp = gethostbyaddr((char*)mAddress, mAddressLen, mAddressFamily); 241 ALOGD("GetHostByAddrHandler::run gethostbyaddr errno: %s hp->h_name = %s, name_len = %d\n", 242 hp ? "success" : strerror(errno), 243 (hp && hp->h_name) ? hp->h_name: "null", 244 (hp && hp->h_name) ? strlen(hp->h_name)+ 1 : 0) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
URLParser.java | 318 HostPort hp = hnp.hostPort( false ); local 319 retval.append(hp.toString()); 644 HostPort hp = hnp.hostPort( false ); local 645 retval.setHostPort(hp);
|
/bionic/libc/netbsd/net/ |
getnameinfo.c | 256 struct hostent *hp; local 399 hp = &android_proxy_hostent; 400 hp->h_name = android_proxy_buf; 402 hp = NULL; 404 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af); 407 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af); 410 if (hp) { 418 p = strchr(hp->h_name, '.'); 423 if (strlen(hp->h_name) + 1 > (size_t)hostlen) { 426 strlcpy(host, hp->h_name, hostlen) [all...] |
/external/expat/xmlwf/ |
xmlwin32url.cxx | 147 IWinInetHttpInfo *hp; local 149 (void **)&hp); 155 hr = hp->QueryInfo(HTTP_QUERY_CONTENT_TYPE, contentType, 173 hp->Release();
|
/external/libpcap/ |
nametoaddr.c | 107 struct hostent *hp; local 109 if ((hp = gethostbyname(name)) != NULL) { 111 hlist[0] = (bpf_u_int32 *)hp->h_addr; 112 NTOHL(hp->h_addr); 115 for (p = (bpf_u_int32 **)hp->h_addr_list; *p; ++p) 117 return (bpf_u_int32 **)hp->h_addr_list;
|
/external/quake/quake/src/WinQuake/ |
net_mp.cpp | 348 int ha1, ha2, ha3, ha4, hp;
local 351 sscanf(string, "%d.%d.%d.%d:%d", &ha1, &ha2, &ha3, &ha4, &hp);
356 ((struct sockaddr_in *)addr)->sin_port = htons(hp);
|