Searched refs:hp (Results 1 - 25 of 112) sorted by relevance

12345

/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-hsrp.c103 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
[all...]
/haiku-fatelf/src/system/libroot/posix/glibc/arch/generic/
H A De_remainderf.c37 int32_t hx,hp; local
42 GET_FLOAT_WORD(hp,p);
44 hp &= 0x7fffffff;
48 if(hp==0) return (x*p)/(x*p); /* p = 0 */
50 ((hp>0x7f800000))) /* p is NaN */
54 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */
55 if ((hx-hp)==0) return zero*x;
58 if (hp<0x01000000) {
H A Ds_remquol.c32 int32_t ex,ep,hx,hp; local
37 GET_LDOUBLE_WORDS (ep, hp, lp, p);
44 if ((ep | hp | lp) == 0)
48 && ((hp | lp) != 0)))
54 if (((ex - ep) | (hx - hp) | (lx - lp)) == 0)
H A Dsincos32.h57 hp = {1,{1.0, 1.0, variable
/haiku-fatelf/src/tests/kits/net/sock/
H A Dsourceroute.c48 struct hostent *hp; local
65 } else if ( (hp = gethostbyname(argptr)) != NULL) {
66 bcopy(hp->h_addr, optr, sizeof(u_long));/* hostname */
69 inet_ntoa(*((struct in_addr *) hp->h_addr)));
H A Dcliopen.c19 struct hostent *hp; local
43 else if ( (hp = gethostbyname(host)) != NULL)
44 bcopy(hp->h_addr, &servaddr.sin_addr, hp->h_length);
/haiku-fatelf/src/libs/util/
H A Drealhostname.c53 struct hostent *hp; local
56 hp = gethostbyaddr((const char *)ip, sizeof(*ip), AF_INET);
58 if (hp != NULL) {
59 strlcpy(trimmed, hp->h_name, sizeof(trimmed));
64 strncpy(lookup, hp->h_name, sizeof(lookup) - 1);
66 hp = gethostbyname(lookup);
67 if (hp == NULL)
69 else for (; ; hp->h_addr_list++) {
70 if (*hp->h_addr_list == NULL) {
74 if (!memcmp(*hp
[all...]
/haiku-fatelf/src/kits/network/libbind/resolv/
H A Dres_mkquery.c107 register HEADER *hp; local
125 hp = (HEADER *) buf;
127 hp->id = htons(statp->id);
128 hp->opcode = op;
129 hp->rd = (statp->options & RES_RECURSE) != 0U;
130 hp->rcode = NOERROR;
153 hp->qdcount = htons(1);
174 hp->arcount = htons(1);
196 hp->ancount = htons(1);
215 register HEADER *hp; local
[all...]
H A Dres_query.c118 HEADER *hp = (HEADER *) answer; local
126 hp->rcode = NOERROR; /*%< default */
174 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
178 p_rcode(hp->rcode),
179 ntohs(hp->ancount),
180 ntohs(hp->nscount),
181 ntohs(hp->arcount));
183 switch (hp->rcode) {
219 HEADER *hp local
[all...]
/haiku-fatelf/src/bin/network/atftpd/
H A Dtftp_def.c154 struct hostent *hp; local
164 hp = gethostbyname_r(addr, host, tmpbuf, tmpbuflen, &herr);
169 if (hp == NULL)
175 if (hp != host)
/haiku-fatelf/src/kits/network/libbind/irs/
H A Dlcl_ho.c203 struct hostent *hp; local
209 hp = ho_byname2(this, name, AF_INET6);
210 if (hp)
211 return (hp);
219 struct hostent *hp; local
228 while ((hp = ho_next(this)) != NULL) {
231 if (hp->h_addrtype != af)
233 nn = ns_namelen(hp->h_name);
234 if (strncasecmp(hp->h_name, name, Max(n, nn)) == 0)
236 for (hap = hp
255 struct hostent *hp; local
524 struct hostent *hp; local
[all...]
H A Ddns_ho.c163 static void map_v4v6_hostent(struct hostent *hp, char **bp,
227 struct hostent *hp; local
233 hp = ho_byname2(this, name, AF_INET6);
234 if (hp)
235 return (hp);
244 struct hostent *hp = NULL; local
283 hp = NULL;
316 if ((hp = gethostans(this, p->answer, n, name, p->qtype,
327 return(hp);
336 struct hostent *hp local
703 const HEADER *hp; local
1085 map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep) argument
1132 char *hp; local
[all...]
/haiku-fatelf/src/bin/network/tcpdump/libpcap/Win32/Src/
H A Dgetaddrinfo.c518 struct hostent *hp; local
555 hp = getipnodebyname(hostname, pai->ai_family, AI_ADDRCONFIG, &h_error);
558 hp = gethostbyname2(hostname, pai->ai_family);
562 hp = gethostbyname(hostname);
571 if (hp == NULL) {
586 } else if ((hp->h_name == NULL) || (hp->h_name[0] == 0)
587 || (hp->h_addr_list[0] == NULL)) {
589 freehostent(hp);
591 hp
917 struct hostent *hp = NULL; local
[all...]
/haiku-fatelf/src/bin/network/tcpdump/missing/
H A Dgetaddrinfo.c514 struct hostent *hp; local
551 hp = getipnodebyname(hostname, pai->ai_family, AI_ADDRCONFIG, &h_error);
554 hp = gethostbyname2(hostname, pai->ai_family);
558 hp = gethostbyname(hostname);
567 if (hp == NULL) {
582 } else if ((hp->h_name == NULL) || (hp->h_name[0] == 0)
583 || (hp->h_addr_list[0] == NULL)) {
585 freehostent(hp);
587 hp
913 struct hostent *hp = NULL; local
[all...]
H A Dgetnameinfo.c111 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);
/haiku-fatelf/src/kits/network/libbind/nameser/
H A Dns_verify.c60 HEADER *hp = (HEADER *)msg; local
70 if (hp->arcount == 0)
75 n = ns_skiprr(cp, eom, ns_s_qd, ntohs(hp->qdcount));
80 n = ns_skiprr(cp, eom, ns_s_an, ntohs(hp->ancount));
85 n = ns_skiprr(cp, eom, ns_s_ns, ntohs(hp->nscount));
90 n = ns_skiprr(cp, eom, ns_s_ar, ntohs(hp->arcount) - 1);
139 HEADER *hp = (HEADER *)msg; local
227 hp->arcount = htons(ntohs(hp->arcount) - 1);
305 hp
344 HEADER *hp = (HEADER *)msg; local
[all...]
/haiku-fatelf/src/bin/coreutils/lib/
H A Dalloca.c168 register header *hp; /* Traverses linked list. */ local
174 for (hp = last_alloca_header; hp != NULL;)
175 if ((STACK_DIR > 0 && hp->h.deep > depth)
176 || (STACK_DIR < 0 && hp->h.deep < depth))
178 register header *np = hp->h.next;
180 free (hp); /* Collect garbage. */
182 hp = np; /* -> next header. */
187 last_alloca_header = hp; /* -> last valid storage. */
/haiku-fatelf/src/bin/diffutils/lib/
H A Dalloca.c186 register header *hp; /* Traverses linked list. */ local
192 for (hp = last_alloca_header; hp != NULL;)
193 if ((STACK_DIR > 0 && hp->h.deep > depth)
194 || (STACK_DIR < 0 && hp->h.deep < depth))
196 register header *np = hp->h.next;
198 free ((pointer) hp); /* Collect garbage. */
200 hp = np; /* -> next header. */
205 last_alloca_header = hp; /* -> last valid storage. */
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dalloca.c165 register header *hp; /* Traverses linked list. */ local
171 for (hp = last_alloca_header; hp != NULL;)
172 if ((STACK_DIR > 0 && hp->h.deep > depth)
173 || (STACK_DIR < 0 && hp->h.deep < depth))
175 register header *np = hp->h.next;
177 free (hp); /* Collect garbage. */
179 hp = np; /* -> next header. */
184 last_alloca_header = hp; /* -> last valid storage. */
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dalloca.c171 register header *hp; /* Traverses linked list. */ local
173 for (hp = last_alloca_header; hp != NULL;)
174 if ((STACK_DIR > 0 && hp->h.deep > depth)
175 || (STACK_DIR < 0 && hp->h.deep < depth))
177 register header *np = hp->h.next;
179 free ((PTR) hp); /* Collect garbage. */
181 hp = np; /* -> next header. */
186 last_alloca_header = hp; /* -> last valid storage. */
/haiku-fatelf/src/bin/network/wget/lib/
H A Dalloca.c165 register header *hp; /* Traverses linked list. */ local
171 for (hp = last_alloca_header; hp != NULL;)
172 if ((STACK_DIR > 0 && hp->h.deep > depth)
173 || (STACK_DIR < 0 && hp->h.deep < depth))
175 register header *np = hp->h.next;
177 free (hp); /* Collect garbage. */
179 hp = np; /* -> next header. */
184 last_alloca_header = hp; /* -> last valid storage. */
/haiku-fatelf/src/bin/sharutils/lib/
H A Dalloca.c177 register header *hp; /* Traverses linked list. */ local
183 for (hp = last_alloca_header; hp != NULL;)
184 if ((STACK_DIR > 0 && hp->h.deep > depth)
185 || (STACK_DIR < 0 && hp->h.deep < depth))
187 register header *np = hp->h.next;
189 free ((pointer) hp); /* Collect garbage. */
191 hp = np; /* -> next header. */
196 last_alloca_header = hp; /* -> last valid storage. */
/haiku-fatelf/src/libs/edit/
H A Dhist.c92 const char *hp; local
113 hp = HIST_FIRST(el);
115 if (hp == NULL)
119 if ((hp = HIST_NEXT(el)) == NULL) {
123 (void) strlcpy(el->el_line.buffer, hp,
H A Dcommon.c709 const char *hp; local
733 hp = HIST_FIRST(el);
734 if (hp == NULL)
740 hp = HIST_NEXT(el);
742 while (hp != NULL) {
744 (void) fprintf(el->el_errfile, "Comparing with \"%s\"\n", hp);
746 if ((strncmp(hp, el->el_line.buffer, (size_t)
748 hp[el->el_line.lastchar - el->el_line.buffer]) &&
749 c_hmatch(el, hp)) {
754 hp
777 const char *hp; local
[all...]
/haiku-fatelf/src/bin/network/tcpdump/libpcap/
H A Dnametoaddr.c107 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;

Completed in 202 milliseconds

12345