bin/hostname/hostname.c
105
struct hostent *hst;
crypto/libressl/apps/openssl/s_socket.c
230
struct hostent *h1, *h2;
crypto/libressl/crypto/bio/b_sock.c
103
struct hostent *
crypto/libressl/include/openssl/bio.h
632
struct hostent *BIO_gethostbyname(const char *name);
crypto/openssh/session.c
2616
struct hostent *he;
games/hunt/hunt/list.c
140
struct hostent *hp;
games/hunt/hunt/list.c
216
struct hostent *he;
include/netdb.h
252
struct hostent *gethostbyaddr(const void *, socklen_t, int);
include/netdb.h
253
struct hostent *gethostbyname(const char *);
include/netdb.h
255
struct hostent *gethostent(void);
include/netdb.h
281
void freehostent(struct hostent *);
include/netdb.h
282
int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *,
include/netdb.h
283
char *, size_t, struct hostent **, int *);
include/netdb.h
284
int gethostbyname_r(const char *, struct hostent *, char *, size_t,
include/netdb.h
285
struct hostent **, int *);
include/netdb.h
286
struct hostent *gethostbyname2(const char *, int);
include/netdb.h
287
int gethostbyname2_r(const char *, int, struct hostent *, char *,
include/netdb.h
288
size_t, struct hostent **, int *);
include/netdb.h
289
int gethostent_r(struct hostent *, char *, size_t,
include/netdb.h
290
struct hostent **, int *);
include/netdb.h
291
struct hostent *getipnodebyaddr(const void *, size_t, int, int *);
include/netdb.h
292
struct hostent *getipnodebyname(const char *, int, int, int *);
lib/libbluetooth/bluetooth.c
45
static struct hostent host;
lib/libbluetooth/bluetooth.c
60
struct hostent *
lib/libbluetooth/bluetooth.c
63
struct hostent *p;
lib/libbluetooth/bluetooth.c
80
struct hostent *
lib/libbluetooth/bluetooth.c
83
struct hostent *p;
lib/libbluetooth/bluetooth.c
99
struct hostent *
lib/libbluetooth/bluetooth.h
53
struct hostent * bt_gethostbyname (char const *);
lib/libbluetooth/bluetooth.h
54
struct hostent * bt_gethostbyaddr (void const *, socklen_t, int);
lib/libbluetooth/bluetooth.h
55
struct hostent * bt_gethostent (void);
lib/libc/net/gethostbydns.c
139
struct hostent *he, struct hostent_data *hed, res_state statp)
lib/libc/net/gethostbydns.c
430
struct hostent *
lib/libc/net/gethostbydns.c
433
struct hostent *he;
lib/libc/net/gethostbydns.c
470
struct hostent *hptr, he;
lib/libc/net/gethostbydns.c
478
hptr = va_arg(ap, struct hostent *);
lib/libc/net/gethostbydns.c
484
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbydns.c
537
*((struct hostent **)rval) = hptr;
lib/libc/net/gethostbydns.c
552
struct hostent *hptr, he;
lib/libc/net/gethostbydns.c
560
struct hostent *rhe;
lib/libc/net/gethostbydns.c
570
hptr = va_arg(ap, struct hostent *);
lib/libc/net/gethostbydns.c
577
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbydns.c
687
*((struct hostent **)rval) = hptr;
lib/libc/net/gethostbyht.c
172
gethostent_r(struct hostent *hptr, char *buffer, size_t buflen,
lib/libc/net/gethostbyht.c
173
struct hostent **result, int *h_errnop)
lib/libc/net/gethostbyht.c
176
struct hostent he;
lib/libc/net/gethostbyht.c
198
struct hostent *
lib/libc/net/gethostbyht.c
202
struct hostent *rval;
lib/libc/net/gethostbyht.c
222
struct hostent *hptr, he;
lib/libc/net/gethostbyht.c
230
hptr = va_arg(ap, struct hostent *);
lib/libc/net/gethostbyht.c
236
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbyht.c
272
*((struct hostent **)rval) = hptr;
lib/libc/net/gethostbyht.c
286
struct hostent *hptr, he;
lib/libc/net/gethostbyht.c
294
hptr = va_arg(ap, struct hostent *);
lib/libc/net/gethostbyht.c
300
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbyht.c
328
*((struct hostent **)rval) = hptr;
lib/libc/net/gethostbyht.c
87
gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped,
lib/libc/net/gethostbynis.c
163
_gethostbynisname_r(const char *name, int af, struct hostent *he,
lib/libc/net/gethostbynis.c
181
struct hostent *he, struct hostent_data *hed)
lib/libc/net/gethostbynis.c
201
struct hostent *
lib/libc/net/gethostbynis.c
205
struct hostent *he;
lib/libc/net/gethostbynis.c
228
struct hostent *
lib/libc/net/gethostbynis.c
232
struct hostent *he;
lib/libc/net/gethostbynis.c
265
struct hostent *hptr, he;
lib/libc/net/gethostbynis.c
271
hptr = va_arg(ap, struct hostent *);
lib/libc/net/gethostbynis.c
277
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbynis.c
294
*((struct hostent **)rval) = hptr;
lib/libc/net/gethostbynis.c
297
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbynis.c
313
struct hostent *hptr, he;
lib/libc/net/gethostbynis.c
320
hptr = va_arg(ap, struct hostent *);
lib/libc/net/gethostbynis.c
326
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbynis.c
343
*((struct hostent **)rval) = hptr;
lib/libc/net/gethostbynis.c
346
*((struct hostent **)rval) = NULL;
lib/libc/net/gethostbynis.c
51
_gethostbynis(const char *name, char *map, int af, struct hostent *he,
lib/libc/net/gethostnamadr.c
262
struct hostent *ht;
lib/libc/net/gethostnamadr.c
264
struct hostent new_ht;
lib/libc/net/gethostnamadr.c
282
ht = va_arg(ap, struct hostent *);
lib/libc/net/gethostnamadr.c
284
desired_size = _ALIGNBYTES + sizeof(struct hostent) + sizeof(char *);
lib/libc/net/gethostnamadr.c
314
memcpy(&new_ht, ht, sizeof(struct hostent));
lib/libc/net/gethostnamadr.c
318
p = buffer + sizeof(struct hostent) + sizeof(char *);
lib/libc/net/gethostnamadr.c
319
memcpy(buffer + sizeof(struct hostent), &p, sizeof(char *));
lib/libc/net/gethostnamadr.c
356
memcpy(buffer, &new_ht, sizeof(struct hostent));
lib/libc/net/gethostnamadr.c
368
struct hostent *ht;
lib/libc/net/gethostnamadr.c
390
ht = va_arg(ap, struct hostent *);
lib/libc/net/gethostnamadr.c
395
buffer_size - sizeof(struct hostent) - sizeof(char *)) {
lib/libc/net/gethostnamadr.c
400
memcpy(ht, buffer, sizeof(struct hostent));
lib/libc/net/gethostnamadr.c
401
memcpy(&p, buffer + sizeof(struct hostent), sizeof(char *));
lib/libc/net/gethostnamadr.c
404
memcpy(orig_buf, buffer + sizeof(struct hostent) + sizeof(char *) +
lib/libc/net/gethostnamadr.c
406
buffer_size - sizeof(struct hostent) - sizeof(char *) -
lib/libc/net/gethostnamadr.c
425
*((struct hostent **)retval) = ht;
lib/libc/net/gethostnamadr.c
431
fakeaddr(const char *name, int af, struct hostent *hp, char *buf,
lib/libc/net/gethostnamadr.c
435
struct hostent he;
lib/libc/net/gethostnamadr.c
480
gethostbyname_r(const char *name, struct hostent *he, char *buffer,
lib/libc/net/gethostnamadr.c
481
size_t buflen, struct hostent **result, int *h_errnop)
lib/libc/net/gethostnamadr.c
50
static int gethostbyname_internal(const char *, int, struct hostent *, char *,
lib/libc/net/gethostnamadr.c
504
gethostbyname2_r(const char *name, int af, struct hostent *he, char *buffer,
lib/libc/net/gethostnamadr.c
505
size_t buflen, struct hostent **result, int *h_errnop)
lib/libc/net/gethostnamadr.c
51
size_t, struct hostent **, int *, res_state);
lib/libc/net/gethostnamadr.c
519
gethostbyname_internal(const char *name, int af, struct hostent *hp, char *buf,
lib/libc/net/gethostnamadr.c
520
size_t buflen, struct hostent **result, int *h_errnop,
lib/libc/net/gethostnamadr.c
576
gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp,
lib/libc/net/gethostnamadr.c
577
char *buf, size_t buflen, struct hostent **result,
lib/libc/net/gethostnamadr.c
65
NETDB_THREAD_ALLOC(hostent)
lib/libc/net/gethostnamadr.c
651
struct hostent *
lib/libc/net/gethostnamadr.c
655
struct hostent *rval;
lib/libc/net/gethostnamadr.c
666
struct hostent *
lib/libc/net/gethostnamadr.c
670
struct hostent *rval;
lib/libc/net/gethostnamadr.c
681
struct hostent *
lib/libc/net/gethostnamadr.c
685
struct hostent *rval;
lib/libc/net/gethostnamadr.c
94
__copy_hostent(struct hostent *he, struct hostent *hptr, char *buf,
lib/libc/net/getnameinfo.c
121
struct hostent *hp;
lib/libc/net/map_v4v6.c
94
_map_v4v6_hostent(struct hostent *hp, char **bpp, char *ep) {
lib/libc/net/name6.c
190
static struct hostent *_hpcopy(struct hostent *, int *);
lib/libc/net/name6.c
191
static struct hostent *_hpaddr(int, const char *, void *, int *);
lib/libc/net/name6.c
193
static struct hostent *_hpmerge(struct hostent *, struct hostent *, int *);
lib/libc/net/name6.c
194
static struct hostent *_hpmapv6(struct hostent *, int *);
lib/libc/net/name6.c
196
static struct hostent *_hpsort(struct hostent *, res_state);
lib/libc/net/name6.c
198
static struct hostent *_hpreorder(struct hostent *);
lib/libc/net/name6.c
213
struct hostent *
lib/libc/net/name6.c
216
struct hostent *hp;
lib/libc/net/name6.c
287
struct hostent *hp2 = gethostbyname2(name, AF_INET);
lib/libc/net/name6.c
295
struct hostent *hpb = hp;
lib/libc/net/name6.c
310
struct hostent *
lib/libc/net/name6.c
313
struct hostent *hp;
lib/libc/net/name6.c
382
freehostent(struct hostent *ptr)
lib/libc/net/name6.c
394
static struct hostent *
lib/libc/net/name6.c
395
_hpcopy(struct hostent *hp, int *errp)
lib/libc/net/name6.c
397
struct hostent *nhp;
lib/libc/net/name6.c
408
size = sizeof(struct hostent);
lib/libc/net/name6.c
432
if ((nhp = (struct hostent *)malloc(size)) == NULL) {
lib/libc/net/name6.c
473
static struct hostent *
lib/libc/net/name6.c
476
struct hostent *hp, hpbuf;
lib/libc/net/name6.c
494
static struct hostent *
lib/libc/net/name6.c
495
_hpmerge(struct hostent *hp1, struct hostent *hp2, int *errp)
lib/libc/net/name6.c
500
struct hostent *hp, hpbuf;
lib/libc/net/name6.c
561
static struct hostent *
lib/libc/net/name6.c
562
_hpmapv6(struct hostent *hp, int *errp)
lib/libc/net/name6.c
564
struct hostent hp6;
lib/libc/net/name6.c
571
memset(&hp6, 0, sizeof(struct hostent));
lib/libc/net/name6.c
581
static struct hostent *
lib/libc/net/name6.c
582
_hpsort(struct hostent *hp, res_state statp)
lib/libc/net/name6.c
633
static struct hostent *
lib/libc/net/name6.c
634
_hpreorder(struct hostent *hp)
lib/libc/net/netdb_private.h
104
struct hostent host;
lib/libc/net/netdb_private.h
119
struct hostent *__hostent_init(void);
lib/libc/net/netdb_private.h
125
int __copy_hostent(struct hostent *, struct hostent *, char *, size_t);
lib/libc/net/netdb_private.h
136
struct hostent *_gethostbynisaddr(const void *, socklen_t, int);
lib/libc/net/netdb_private.h
137
struct hostent *_gethostbynisname(const char *, int);
lib/libc/net/netdb_private.h
139
void _map_v4v6_hostent(struct hostent *, char **, char *);
lib/libc/net/netdb_private.h
145
struct hostent *__dns_getanswer(const char *, int, const char *, int);
lib/libc/rpc/auth_time.c
149
struct hostent *he;
lib/libc/rpc/auth_time.c
150
struct hostent dummy;
lib/libc/rpc/getrpcport.c
56
struct hostent *hp;
lib/libcompat/4.3/rexec.c
440
struct hostent *hp;
lib/libdmsg/subs.c
93
struct hostent *hen;
lib/libipfw3/basic/ipfw3_basic.c
143
struct hostent *he;
lib/libutil/realhostname.c
51
struct hostent *hp;
libexec/bootpd/bootpd.c
185
struct hostent *hep;
libexec/bootpd/bootpgw/bootpgw.c
158
struct hostent *hep;
libexec/bootpd/lookup.c
73
struct hostent *hp;
libexec/bootpd/tools/bootptest/bootptest.c
135
struct hostent *hep;
libexec/bootpd/trygetif.c
37
struct hostent *hep;
libexec/ftpd/ftpd.c
690
struct hostent *hp;
libexec/talkd/process.c
138
struct hostent *hp;
sbin/ifconfig/af_inet.c
128
struct hostent *hp;
sbin/ip6fw/ip6fw.c
214
struct hostent *he;
sbin/ip6fw/ip6fw.c
539
struct hostent *he;
sbin/ipfw/ipfw2.c
1817
struct hostent *he;
sbin/ipfw/ipfw2.c
653
struct hostent *he = NULL;
sbin/ipfw3/ipfw3table.c
84
struct hostent *he;
sbin/natd/natd.c
1581
struct hostent *hp;
sbin/nos-tun/nos-tun.c
91
struct hostent *hp;
sbin/ping/ping.c
1525
struct hostent *hp;
sbin/ping/ping.c
210
struct hostent *hp;
sbin/rconfig/client.c
83
struct hostent *hp;
sbin/rconfig/server.c
66
struct hostent *hp;
sbin/route/route.c
118
static int getaddr(int, const char *, struct hostent **);
sbin/route/route.c
338
struct hostent *hp;
sbin/route/route.c
624
struct hostent *hp = NULL;
sbin/route/route.c
987
getaddr(int which, const char *str, struct hostent **hpp)
sbin/route/route.c
990
struct hostent *hp;
sbin/routed/parms.c
983
struct hostent *hp;
sbin/routed/rtquery/rtquery.c
148
struct hostent *hp = gethostbyname(optarg);
sbin/routed/rtquery/rtquery.c
477
struct hostent *hp;
sbin/routed/rtquery/rtquery.c
578
struct hostent *hp;
share/examples/find_interface/find_interface.c
61
struct hostent *hp;
test/stress/stress2/testcases/tcp/tcp.c
101
struct hostent *hostent;
test/stress/stress2/testcases/tcp/tcp.c
113
hostent = gethostbyname ("localhost");
test/stress/stress2/testcases/tcp/tcp.c
114
memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
test/stress/stress2/testcases/udp/udp.c
61
struct hostent *host;
test/stress/webstress/webstress.c
233
struct hostent *hen;
tools/tools/net80211/wlanwatch/wlanwatch.c
137
struct hostent *hp;
usr.bin/btpin/btpin.c
65
struct hostent *he = NULL;
usr.bin/getent/getent.c
270
hostsprint(const struct hostent *he)
usr.bin/getent/getent.c
283
struct hostent *he;
usr.bin/netstat/inet.c
961
struct hostent *hp;
usr.bin/netstat/inet6.c
1067
struct hostent *hp;
usr.bin/netstat/route.c
839
struct hostent *hp;
usr.bin/newkey/newkey.c
100
struct hostent *h;
usr.bin/quota/quota.c
647
struct hostent *hp;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
143
struct hostent *he = NULL;
usr.bin/rup/rup.c
173
struct hostent *hp;
usr.bin/rup/rup.c
92
struct hostent *hp;
usr.bin/rusers/rusers.c
175
struct hostent *hp;
usr.bin/rusers/rusers.c
94
struct hostent *hp;
usr.bin/sdpquery/sdpquery.c
77
struct hostent *he = NULL;
usr.bin/systat/netcmds.c
124
struct hostent *hp;
usr.bin/systat/netcmds.c
296
struct hostent *hp;
usr.bin/systat/netstat.c
422
struct hostent *hp;
usr.bin/talk/get_addrs.c
42
struct hostent *hp;
usr.bin/talk/io.c
55
struct hostent *hp, *hp2;
usr.bin/w/w.c
128
struct hostent *hp;
usr.bin/ypwhich/ypwhich.c
142
struct hostent *hent;
usr.bin/ypwhich/ypwhich.c
91
struct hostent *hent = NULL;
usr.sbin/arp/arp.c
272
struct hostent *hp;
usr.sbin/arp/arp.c
371
struct hostent *hp;
usr.sbin/arp/arp.c
400
struct hostent *hp;
usr.sbin/arp/arp.c
528
struct hostent *hp;
usr.sbin/bootparamd/bootparamd/bootparamd.c
36
struct hostent *he;
usr.sbin/bootparamd/bootparamd/main.c
45
struct hostent *he;
usr.sbin/bootparamd/callbootd/callbootd.c
42
struct hostent *he;
usr.sbin/bootparamd/callbootd/callbootd.c
54
struct hostent *he;
usr.sbin/btconfig/btconfig.c
988
struct hostent *hp;
usr.sbin/gifconfig/gifconfig.c
763
struct hostent *hp;
usr.sbin/ppp/defs.c
156
struct hostent *hp;
usr.sbin/ppp/ipcp.c
437
struct hostent *hp;
usr.sbin/ppp/libradius/radlib.c
416
struct hostent *hent;
usr.sbin/ppp/nat_cmd.c
308
struct hostent *hp;
usr.sbin/ppp/radius.c
725
struct hostent *hp;
usr.sbin/ppp/radius.c
894
struct hostent *hp;
usr.sbin/pppctl/pppctl.c
200
struct hostent *h;
usr.sbin/rarpd/rarpd.c
595
struct hostent *hp;
usr.sbin/sliplogin/sliplogin.c
109
struct hostent *he;
usr.sbin/traceroute/traceroute.c
1151
struct hostent *hp;
usr.sbin/traceroute/traceroute.c
324
struct hostent *hp;
usr.sbin/traceroute6/traceroute6.c
341
struct hostent *hp;
usr.sbin/ypbind/ypbind.c
965
struct hostent *h;
usr.sbin/ypserv/yp_dnslookup.c
104
extern struct hostent *__dns_getanswer(char *, int, char *, int);
usr.sbin/ypserv/yp_dnslookup.c
353
struct hostent *hent;
usr.sbin/ypserv/yp_dnslookup.c
67
parse(struct hostent *hp)
usr.sbin/ypset/ypset.c
117
struct hostent *hent;
usr.sbin/ypset/ypset.c
63
struct hostent *hp;