Home
last modified time | relevance | path

Searched refs:hptr (Results 1 – 14 of 14) sorted by relevance

/freebsd-13.1/libexec/mknetid/
H A Dmknetid.c113 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-13.1/crypto/heimdal/lib/asn1/
H A Dhash.c73 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-13.1/lib/libc/net/
H A Dgethostbyht.c178 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 Dgethostbynis.c213 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 Dgethostnamadr.c97 __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 Dgethostbydns.c473 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-13.1/sbin/hastd/
H A Dhast_proto.c86 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-13.1/sys/netinet/libalias/
H A Dalias_pptp.c434 PptpMsgHead hptr; in AliasVerifyPptp() local
448 hptr = (PptpMsgHead)tcp_next(tc); in AliasVerifyPptp()
451 *ptype = ntohs(hptr->type); in AliasVerifyPptp()
454 if ((ntohs(hptr->msgType) != PPTP_CTRL_MSG_TYPE) || in AliasVerifyPptp()
455 (ntohl(hptr->magic) != PPTP_MAGIC)) in AliasVerifyPptp()
464 return ((PptpCallId)(hptr + 1)); in AliasVerifyPptp()
/freebsd-13.1/usr.sbin/ypserv/
H A Dyp_dnslookup.c172 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-13.1/sbin/ipf/ippool/
H A Dippool.c754 iphtable_t *hptr; in poollist_dead() local
801 hptr = tables[role]; in poollist_dead()
802 while (hptr != NULL) { in poollist_dead()
803 hptr = printhash(hptr, kmemcpywrap, in poollist_dead()
808 hptr = tables[role]; in poollist_dead()
809 while (hptr != NULL) { in poollist_dead()
810 hptr = printhash(hptr, kmemcpywrap, in poollist_dead()
/freebsd-13.1/sys/netgraph/
H A Dng_bridge.c1191 struct ng_bridge_host **hptr = &SLIST_FIRST(&priv->tab[bucket]); in ng_bridge_remove_hosts() local
1193 while (*hptr != NULL) { in ng_bridge_remove_hosts()
1194 struct ng_bridge_host *const host = *hptr; in ng_bridge_remove_hosts()
1197 *hptr = SLIST_NEXT(host, next); in ng_bridge_remove_hosts()
1201 hptr = &SLIST_NEXT(host, next); in ng_bridge_remove_hosts()
1242 struct ng_bridge_host **hptr = &SLIST_FIRST(&priv->tab[bucket]); in ng_bridge_timeout() local
1244 while (*hptr != NULL) { in ng_bridge_timeout()
1245 struct ng_bridge_host *const host = *hptr; in ng_bridge_timeout()
1249 *hptr = SLIST_NEXT(host, next); in ng_bridge_timeout()
1255 hptr = &SLIST_NEXT(host, next); in ng_bridge_timeout()
/freebsd-13.1/contrib/apr/network_io/unix/
H A Dsockaddr.c817 struct hostent hs, *hptr;
823 hptr = &hs;
829 &hs, tmp, GETHOSTBYNAME_BUFLEN - 1, &hptr, &hosterror);
832 hptr = gethostbyaddr_r((char *)&sockaddr->sa.sin.sin_addr,
836 if (!hptr) {
842 struct hostent *hptr;
843 hptr = gethostbyaddr((char *)&sockaddr->sa.sin.sin_addr,
847 if (hptr) {
848 *hostname = sockaddr->hostname = apr_pstrdup(sockaddr->pool, hptr->h_name);
/freebsd-13.1/usr.bin/rpcgen/
H A Drpc_cout.c710 char *ptr, *hptr; in upcase() local
714 hptr = ptr; in upcase()
719 return (hptr); in upcase()
/freebsd-13.1/usr.sbin/ppp/
H A Dip.c503 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()