/freebsd/include/ |
H A D | netdb.h | 104 struct hostent { struct 233 struct hostent *gethostbyaddr(const void *, socklen_t, int); 234 struct hostent *gethostbyname(const char *); 236 struct hostent *gethostent(void); 260 void freehostent(struct hostent *); 262 char *, size_t, struct hostent **, int *); 264 struct hostent **, int *); 265 struct hostent *gethostbyname2(const char *, int); 267 size_t, struct hostent **, int *); 268 int gethostent_r(struct hostent *, char *, size_t, [all …]
|
/freebsd/lib/libc/tests/nss/ |
H A D | gethostby_test.c | 59 DECLARE_TEST_DATA(hostent) 61 DECLARE_1PASS_TEST(hostent) 62 DECLARE_2PASS_TEST(hostent) 70 static void clone_hostent(struct hostent *, struct hostent const *); 71 static int compare_hostent(struct hostent *, struct hostent *, void *); 92 static struct hostent * in IMPLEMENT_TEST_FILE_SNAPSHOT() 95 struct hostent *he; in IMPLEMENT_TEST_FILE_SNAPSHOT() 109 static struct hostent * 112 struct hostent *he; in __gethostbyaddr() 136 clone_hostent(struct hostent *dest, struct hostent const *src) in clone_hostent() [all …]
|
/freebsd/lib/libc/net/ |
H A D | gethostnamadr.c | 94 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, in __copy_hostent() 262 struct hostent *ht; in host_marshal_func() 264 struct hostent new_ht; in host_marshal_func() 368 struct hostent *ht; in host_unmarshal_func() 435 struct hostent he; in fakeaddr() 661 struct hostent * 665 struct hostent *rval; in gethostbyname() 676 struct hostent * 680 struct hostent *rval; in gethostbyname2() 691 struct hostent * [all …]
|
H A D | name6.c | 190 static struct hostent *_hpcopy(struct hostent *, int *); 193 static struct hostent *_hpmerge(struct hostent *, struct hostent *, int *); 194 static struct hostent *_hpmapv6(struct hostent *, int *); 196 static struct hostent *_hpsort(struct hostent *, res_state); 199 static struct hostent *_hpreorder(struct hostent *); 215 struct hostent * 218 struct hostent *hp; in getipnodebyname() 314 struct hostent * 317 struct hostent *hp; in getipnodebyaddr() 500 _hpmerge(struct hostent *hp1, struct hostent *hp2, int *errp) in _hpmerge() [all …]
|
H A D | gethostbynis.c | 182 struct hostent *he, struct hostent_data *hed) in _gethostbynisaddr_r() 210 struct hostent *hptr, he; in _nis_gethostbyname() 216 hptr = va_arg(ap, struct hostent *); in _nis_gethostbyname() 222 *((struct hostent **)rval) = NULL; in _nis_gethostbyname() 241 *((struct hostent **)rval) = hptr; in _nis_gethostbyname() 244 *((struct hostent **)rval) = NULL; in _nis_gethostbyname() 259 struct hostent *hptr, he; in _nis_gethostbyaddr() 266 hptr = va_arg(ap, struct hostent *); in _nis_gethostbyaddr() 272 *((struct hostent **)rval) = NULL; in _nis_gethostbyaddr() 291 *((struct hostent **)rval) = hptr; in _nis_gethostbyaddr() [all …]
|
H A D | gethostbyht.c | 176 struct hostent he; in gethostent_r() 201 struct hostent * 205 struct hostent *rval; in gethostent() 224 struct hostent *hptr, he; in _ht_gethostbyname() 232 hptr = va_arg(ap, struct hostent *); in _ht_gethostbyname() 238 *((struct hostent **)rval) = NULL; in _ht_gethostbyname() 276 *((struct hostent **)rval) = hptr; in _ht_gethostbyname() 289 struct hostent *hptr, he; in _ht_gethostbyaddr() 297 hptr = va_arg(ap, struct hostent *); in _ht_gethostbyaddr() 303 *((struct hostent **)rval) = NULL; in _ht_gethostbyaddr() [all …]
|
H A D | netdb_private.h | 104 struct hostent host; 119 struct hostent *__hostent_init(void); 125 int __copy_hostent(struct hostent *, struct hostent *, char *, size_t); 137 void _map_v4v6_hostent(struct hostent *, char **, char *); 143 struct hostent *__dns_getanswer(const char *, int, const char *, int);
|
H A D | gethostbydns.c | 430 struct hostent * 433 struct hostent *he; in __dns_getanswer() 469 struct hostent *hptr, he; in _dns_gethostbyname() 477 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyname() 483 *((struct hostent **)rval) = NULL; in _dns_gethostbyname() 547 *((struct hostent **)rval) = hptr; in _dns_gethostbyname() 561 struct hostent *hptr, he; in _dns_gethostbyaddr() 569 struct hostent *rhe; in _dns_gethostbyaddr() 579 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyaddr() 586 *((struct hostent **)rval) = NULL; in _dns_gethostbyaddr() [all …]
|
/freebsd/contrib/sendmail/libmilter/ |
H A D | sm_gethost.c | 33 static struct hostent *sm_getipnodebyname __P((const char *, int, int, int *)); 45 static struct hostent * 52 struct hostent *h; 95 struct hostent *h; in freehostent() 108 struct hostent * 113 struct hostent *h = NULL; 116 static struct hostent hp; 118 extern struct hostent *_switch_gethostbyname_r(); 122 extern struct hostent *__switch_gethostbyname();
|
/freebsd/lib/libcasper/services/cap_dns/ |
H A D | cap_dns.h | 50 struct hostent; 55 struct hostent *cap_gethostbyname(cap_channel_t *chan, const char *name); 56 struct hostent *cap_gethostbyname2(cap_channel_t *chan, const char *name, 58 struct hostent *cap_gethostbyaddr(cap_channel_t *chan, const void *addr, 75 static inline struct hostent * 82 static inline struct hostent * 89 static inline struct hostent *
|
H A D | cap_dns.c | 49 static struct hostent hent; 52 hostent_free(struct hostent *hp) in hostent_free() 72 static struct hostent * 73 hostent_unpack(const nvlist_t *nvl, struct hostent *hp) in hostent_unpack() 123 struct hostent * 130 struct hostent * 133 struct hostent *hp; in cap_gethostbyname2() 156 struct hostent * 160 struct hostent *hp; in cap_gethostbyaddr() 472 struct hostent *hp; in dns_gethostbyname() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | roken_gethostby.c | 50 struct hostent *he = gethostbyname(address); in make_address() 135 static struct hostent* 190 static struct hostent he; in roken_gethostby() 216 ROKEN_LIB_FUNCTION struct hostent* ROKEN_LIB_CALL 219 struct hostent *he; in roken_gethostbyname() 226 ROKEN_LIB_FUNCTION struct hostent* ROKEN_LIB_CALL 231 struct hostent *he; in roken_gethostbyaddr() 258 struct hostent *he;
|
H A D | copyhostent.c | 42 ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL 43 copyhostent (const struct hostent *h) in copyhostent() 45 struct hostent *res; in copyhostent()
|
/freebsd/contrib/tcp_wrappers/ |
H A D | scaffold.c | 46 static struct hostent *dup_hostent(struct hostent *hp) in dup_hostent() 49 struct hostent host; in dup_hostent() 116 struct hostent *find_inet_addr(char *host) in find_inet_addr() 119 struct hostent *hp; in find_inet_addr() 120 static struct hostent h; in find_inet_addr() 169 struct hostent *hp;
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | get_addrs.c | 51 struct hostent *hostent; in gethostname_fallback() local 58 hostent = roken_gethostbyname (hostname); in gethostname_fallback() 59 if (hostent == NULL) { in gethostname_fallback() 71 res->val[0].addr_type = hostent->h_addrtype; in gethostname_fallback() 75 hostent->h_addr, in gethostname_fallback() 76 hostent->h_length); in gethostname_fallback()
|
/freebsd/contrib/ntp/libntp/ |
H A D | machines.c | 38 struct hostent *gethostbyname(char *name) in gethostbyname() 40 struct hostent *host1; in gethostbyname() 42 host1 = (struct hostent *) emalloc (sizeof(struct hostent)); in gethostbyname() 52 struct hostent *gethostbyaddr(char *name, int size, int addr_type) in gethostbyaddr() 54 struct hostent *host1; in gethostbyaddr() 56 host1 = (struct hostent *) emalloc (sizeof(struct hostent)); in gethostbyaddr()
|
/freebsd/tools/test/stress2/misc/ |
H A D | sendfile2.sh | 79 struct hostent *hostent; 96 hostent = gethostbyname ("localhost"); 97 memcpy (&addr.sin_addr.s_addr, hostent->h_addr,
|
H A D | setsockopt.sh | 81 struct hostent *hostent; 106 hostent = gethostbyname ("localhost"); 110 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
|
H A D | sendfile.sh | 134 struct hostent *hostent; 159 hostent = gethostbyname ("localhost"); 160 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
|
H A D | sendfile3.sh | 141 struct hostent *hostent; 156 hostent = gethostbyname ("localhost"); 157 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
|
H A D | jumbo.sh | 154 struct hostent *hostent; 170 if ((hostent = gethostbyname (host)) == NULL) 173 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
|
H A D | tcp4.sh | 116 struct hostent *hostent; 131 hostent = gethostbyname ("localhost"); 133 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
|
/freebsd/lib/libbluetooth/ |
H A D | bluetooth.c | 46 static struct hostent host; 61 struct hostent * 64 struct hostent *p; in bt_gethostbyname() 81 struct hostent * 84 struct hostent *p; in bt_gethostbyaddr() 100 struct hostent *
|
/freebsd/tools/test/stress2/testcases/tcp/ |
H A D | tcp.c | 102 struct hostent *hostent; in writer() local 116 hostent = gethostbyname ("localhost"); in writer() 118 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr, in writer()
|
/freebsd/lib/libcasper/services/cap_net/ |
H A D | cap_net.h | 41 struct hostent; 89 struct hostent *cap_gethostbyname(cap_channel_t *chan, const char *name); 90 struct hostent *cap_gethostbyname2(cap_channel_t *chan, const char *name, 92 struct hostent *cap_gethostbyaddr(cap_channel_t *chan, const void *addr,
|