| /src/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 *); 261 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, 262 char *, size_t, struct hostent **, int *); 263 int gethostbyname_r(const char *, struct hostent *, char *, size_t, 264 struct hostent **, int *); 265 struct hostent *gethostbyname2(const char *, int); [all …]
|
| /src/lib/libc/tests/nss/ |
| H A D | gethostby_test.c | 59 DECLARE_TEST_DATA(hostent) 60 DECLARE_TEST_FILE_SNAPSHOT(hostent) 61 DECLARE_1PASS_TEST(hostent) 62 DECLARE_2PASS_TEST(hostent) 66 static struct hostent *__gethostbyname2(const char *, int); 67 static struct hostent *__gethostbyaddr(const void *, socklen_t, int); 68 static void __freehostent(struct hostent *); 70 static void clone_hostent(struct hostent *, struct hostent const *); 71 static int compare_hostent(struct hostent *, struct hostent *, void *); 72 static void dump_hostent(struct hostent *); [all …]
|
| /src/lib/libc/net/ |
| H A D | gethostnamadr.c | 50 static int gethostbyname_internal(const char *, int, struct hostent *, char *, 51 size_t, struct hostent **, int *, res_state); 65 NETDB_THREAD_ALLOC(hostent) 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() 282 ht = va_arg(ap, struct hostent *); in host_marshal_func() 284 desired_size = _ALIGNBYTES + sizeof(struct hostent) + sizeof(char *); in host_marshal_func() 314 memcpy(&new_ht, ht, sizeof(struct hostent)); in host_marshal_func() 318 p = buffer + sizeof(struct hostent) + sizeof(char *); in host_marshal_func() [all …]
|
| H A D | name6.c | 190 static struct hostent *_hpcopy(struct hostent *, int *); 191 static struct hostent *_hpaddr(int, const char *, void *, 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() 291 struct hostent *hp2 = gethostbyname2(name, AF_INET); in getipnodebyname() 299 struct hostent *hpb = hp; in getipnodebyname() [all …]
|
| H A D | gethostbynis.c | 51 _gethostbynis(const char *name, char *map, int af, struct hostent *he, in _gethostbynis() 164 _gethostbynisname_r(const char *name, int af, struct hostent *he, in _gethostbynisname_r() 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() [all …]
|
| H A D | gethostbyht.c | 87 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, in gethostent_p() 172 gethostent_r(struct hostent *hptr, char *buffer, size_t buflen, in gethostent_r() 173 struct hostent **result, int *h_errnop) in gethostent_r() 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() [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 | 138 struct hostent *he, struct hostent_data *hed, res_state statp) in gethostanswer() 436 struct hostent * 439 struct hostent *he; in __dns_getanswer() 475 struct hostent *hptr, he; in _dns_gethostbyname() 483 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyname() 489 *((struct hostent **)rval) = NULL; in _dns_gethostbyname() 553 *((struct hostent **)rval) = hptr; in _dns_gethostbyname() 567 struct hostent *hptr, he; in _dns_gethostbyaddr() 575 struct hostent *rhe; in _dns_gethostbyaddr() 585 hptr = va_arg(ap, struct hostent *); in _dns_gethostbyaddr() [all …]
|
| /src/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();
|
| /src/lib/libcasper/services/cap_dns/ |
| H A D | cap_dns.h | 49 struct hostent; 54 struct hostent *cap_gethostbyname(cap_channel_t *chan, const char *name); 55 struct hostent *cap_gethostbyname2(cap_channel_t *chan, const char *name, 57 struct hostent *cap_gethostbyaddr(cap_channel_t *chan, const void *addr, 74 static inline struct hostent * 81 static inline struct hostent * 88 static inline struct hostent *
|
| H A D | cap_dns.c | 48 static struct hostent hent; 51 hostent_free(struct hostent *hp) in hostent_free() 71 static struct hostent * 72 hostent_unpack(const nvlist_t *nvl, struct hostent *hp) in hostent_unpack() 122 struct hostent * 129 struct hostent * 132 struct hostent *hp; in cap_gethostbyname2() 155 struct hostent * 159 struct hostent *hp; in cap_gethostbyaddr() 433 hostent_pack(const struct hostent *hp, nvlist_t *nvl) in hostent_pack() [all …]
|
| /src/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()
|
| /src/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;
|
| /src/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()
|
| /src/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()
|
| /src/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 | 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 | sendfile3.sh | 141 struct hostent *hostent; 156 hostent = gethostbyname ("localhost"); 157 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 | tcp4.sh | 116 struct hostent *hostent; 131 hostent = gethostbyname ("localhost"); 133 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
|
| /src/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 *
|
| /src/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()
|
| /src/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,
|