| /freebsd-12.1/libexec/mknetid/ |
| H A D | mknetid.c | 113 char *ptr, *pidptr, *gidptr, *hptr; in main() local 250 if (!(hptr = strpbrk(ptr, "#\n"))) in main() 252 *hptr = '\0'; in main() 253 if (!(hptr = strpbrk(ptr, " \t"))) in main() 255 *hptr++ = '\0'; in main() 256 ptr = hptr; in main() 259 if (!(hptr = strpbrk(ptr, " \t"))) in main() 261 *hptr++ = '\0'; in main()
|
| /freebsd-12.1/lib/libc/net/ |
| H A D | gethostbyht.c | 178 gethostent_r(struct hostent *hptr, char *buffer, size_t buflen, in gethostent_r() argument 198 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in gethostent_r() 203 *result = hptr; in gethostent_r() 230 struct hostent *hptr, he; in _ht_gethostbyname() local 238 hptr = va_arg(ap, struct hostent *); in _ht_gethostbyname() 276 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyname() 282 *((struct hostent **)rval) = hptr; in _ht_gethostbyname() 295 struct hostent *hptr, he; in _ht_gethostbyaddr() local 303 hptr = va_arg(ap, struct hostent *); in _ht_gethostbyaddr() 333 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _ht_gethostbyaddr() [all …]
|
| H A D | gethostbynis.c | 213 struct hostent *hptr, he; in _nis_gethostbyname() local 219 hptr = va_arg(ap, struct hostent *); in _nis_gethostbyname() 238 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _nis_gethostbyname() 244 *((struct hostent **)rval) = hptr; in _nis_gethostbyname() 262 struct hostent *hptr, he; in _nis_gethostbyaddr() local 269 hptr = va_arg(ap, struct hostent *); in _nis_gethostbyaddr() 288 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _nis_gethostbyaddr() 294 *((struct hostent **)rval) = hptr; in _nis_gethostbyaddr()
|
| H A D | gethostnamadr.c | 97 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, in __copy_hostent() argument 123 hptr->h_addrtype = he->h_addrtype; in __copy_hostent() 124 n = hptr->h_length = he->h_length; in __copy_hostent() 130 hptr->h_addr_list = ptr; in __copy_hostent() 133 hptr->h_addr_list[i] = cp; in __copy_hostent() 136 hptr->h_addr_list[i] = NULL; in __copy_hostent() 142 hptr->h_name = cp; in __copy_hostent() 146 hptr->h_aliases = ptr; in __copy_hostent() 150 hptr->h_aliases[i] = cp; in __copy_hostent() 153 hptr->h_aliases[i] = NULL; in __copy_hostent()
|
| H A D | gethostbydns.c | 473 struct hostent *hptr, he; in _dns_gethostbyname() local 481 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyname() 544 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyname() 551 *((struct hostent **)rval) = hptr; in _dns_gethostbyname() 565 struct hostent *hptr, he; in _dns_gethostbyaddr() local 583 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyaddr() 703 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in _dns_gethostbyaddr() 710 *((struct hostent **)rval) = hptr; in _dns_gethostbyaddr()
|
| /freebsd-12.1/crypto/heimdal/lib/asn1/ |
| H A D | hash.c | 73 Hashentry *hptr; in _search() local 77 for (hptr = htab->tab[(*htab->hash) (ptr) % htab->sz]; in _search() 78 hptr; in _search() 79 hptr = hptr->next) in _search() 80 if ((*htab->cmp) (ptr, hptr->ptr) == 0) in _search() 82 return hptr; in _search()
|
| /freebsd-12.1/sbin/hastd/ |
| H A D | hast_proto.c | 86 void *dptr, *hptr; in hast_proto_send() local 118 hptr = ebuf_data(eb, &hsize); in hast_proto_send() 119 if (proto_send(conn, hptr, hsize) == -1) in hast_proto_send() 137 void *hptr; in hast_proto_recv_hdr() local 157 hptr = ebuf_data(eb, NULL); in hast_proto_recv_hdr() 158 PJDLOG_ASSERT(hptr != NULL); in hast_proto_recv_hdr() 159 if (proto_recv(conn, hptr, hdr.size) == -1) in hast_proto_recv_hdr()
|
| /freebsd-12.1/sys/netinet/libalias/ |
| H A D | alias_pptp.c | 441 PptpMsgHead hptr; in AliasVerifyPptp() local 455 hptr = (PptpMsgHead) tcp_next(tc); in AliasVerifyPptp() 458 *ptype = ntohs(hptr->type); in AliasVerifyPptp() 461 if ((ntohs(hptr->msgType) != PPTP_CTRL_MSG_TYPE) || in AliasVerifyPptp() 462 (ntohl(hptr->magic) != PPTP_MAGIC)) in AliasVerifyPptp() 471 return (PptpCallId) (hptr + 1); in AliasVerifyPptp()
|
| /freebsd-12.1/release/picobsd/tinyware/msh/ |
| H A D | sh4.c | 654 char *lptr, *hptr; local 665 hptr = lptr = base+n; 681 if (j > hptr) { 682 if ((c = (*func)(hptr, j)) == 0) { 683 glob2(hptr += v2, j); 688 glob3(i, hptr += v2, j); 703 if (lptr-base >= lim-hptr) { 704 glob1(hptr+v2, lim); 708 base = hptr+v2; 715 j = hptr -= v2;
|
| /freebsd-12.1/usr.sbin/ypserv/ |
| H A D | yp_dnslookup.c | 172 HEADER *hptr; in yp_send_dns_query() local 186 hptr = (HEADER *)&buf; in yp_send_dns_query() 187 id = ntohs(hptr->id); in yp_send_dns_query() 355 HEADER *hptr; in yp_run_dnsq() local 379 hptr = (HEADER *)&buf; in yp_run_dnsq() 381 (q = yp_find_dnsqent(ntohs(hptr->id), BY_DNS_ID)) == NULL) { in yp_run_dnsq()
|
| /freebsd-12.1/sys/netgraph/ |
| H A D | ng_bridge.c | 956 struct ng_bridge_hent **hptr = &SLIST_FIRST(&priv->tab[bucket]); in ng_bridge_remove_hosts() local 958 while (*hptr != NULL) { in ng_bridge_remove_hosts() 959 struct ng_bridge_hent *const hent = *hptr; in ng_bridge_remove_hosts() 962 *hptr = SLIST_NEXT(hent, next); in ng_bridge_remove_hosts() 966 hptr = &SLIST_NEXT(hent, next); in ng_bridge_remove_hosts() 987 struct ng_bridge_hent **hptr = &SLIST_FIRST(&priv->tab[bucket]); in ng_bridge_timeout() local 989 while (*hptr != NULL) { in ng_bridge_timeout() 990 struct ng_bridge_hent *const hent = *hptr; in ng_bridge_timeout() 1000 *hptr = SLIST_NEXT(hent, next); in ng_bridge_timeout() 1006 hptr = &SLIST_NEXT(hent, next); in ng_bridge_timeout()
|
| /freebsd-12.1/contrib/apr/network_io/unix/ |
| H A D | sockaddr.c | 718 struct hostent hs, *hptr; 724 hptr = &hs; 730 &hs, tmp, GETHOSTBYNAME_BUFLEN - 1, &hptr, &hosterror); 733 hptr = gethostbyaddr_r((char *)&sockaddr->sa.sin.sin_addr, 737 if (!hptr) { 743 struct hostent *hptr; 744 hptr = gethostbyaddr((char *)&sockaddr->sa.sin.sin_addr, 748 if (hptr) { 749 *hostname = sockaddr->hostname = apr_pstrdup(sockaddr->pool, hptr->h_name);
|
| /freebsd-12.1/contrib/ipfilter/tools/ |
| H A D | ippool.c | 772 iphtable_t *hptr; local 819 hptr = tables[role]; 820 while (hptr != NULL) { 821 hptr = printhash(hptr, kmemcpywrap, 826 hptr = tables[role]; 827 while (hptr != NULL) { 828 hptr = printhash(hptr, kmemcpywrap,
|
| /freebsd-12.1/usr.bin/rpcgen/ |
| H A D | rpc_cout.c | 710 char *ptr, *hptr; in upcase() local 714 hptr = ptr; in upcase() 719 return (hptr); in upcase()
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | ip.c | 503 u_short *hptr, tmp; in ip_LogDNS() local 512 hptr = (u_short *)&header; in ip_LogDNS() 517 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */ in ip_LogDNS()
|