Searched refs:hostent (Results 1 - 25 of 187) sorted by relevance

12345678

/freebsd-current/contrib/tcp_wrappers/
H A Dscaffold.h12 extern struct hostent *find_inet_addr(char *host);
H A Dscaffold.c44 /* dup_hostent - create hostent in one memory block */
46 static struct hostent *dup_hostent(struct hostent *hp)
49 struct hostent host;
116 struct hostent *find_inet_addr(char *host)
119 struct hostent *hp;
120 static struct hostent h;
169 struct hostent *hp;
/freebsd-current/include/
H A Dnetdb.h104 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 *gethostbyname
[all...]
/freebsd-current/crypto/heimdal/lib/roken/
H A Dgetipnodebyaddr.c40 * to a malloced struct hostent or NULL.
43 ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL
46 struct hostent *tmp;
H A Dgetipnodebyname.c44 * to a malloced struct hostent or NULL.
47 ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL
50 struct hostent *tmp;
H A Dhostent_find_fqdn.c43 hostent_find_fqdn (const struct hostent *he)
H A Dfreehostent.c39 * free a malloced hostent
43 freehostent (struct hostent *h)
H A Dcopyhostent.c42 ROKEN_LIB_FUNCTION struct hostent * ROKEN_LIB_CALL
43 copyhostent (const struct hostent *h)
45 struct hostent *res;
H A Droken_gethostby.c50 struct hostent *he = gethostbyname(address);
135 static struct hostent*
188 /* make a hostent to return */
190 static struct hostent he;
216 ROKEN_LIB_FUNCTION struct hostent* ROKEN_LIB_CALL
219 struct hostent *he;
226 ROKEN_LIB_FUNCTION struct hostent* ROKEN_LIB_CALL
231 struct hostent *he;
258 struct hostent *he;
/freebsd-current/lib/libcasper/services/cap_dns/
H A Dcap_dns.h50 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 *
/freebsd-current/contrib/sendmail/libmilter/
H A Dsm_gethost.c33 static struct hostent *sm_getipnodebyname __P((const char *, int, int, int *));
45 static struct hostent *
52 struct hostent *h;
95 struct hostent *h;
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-current/lib/libc/net/
H A Dgethostnamadr.c50 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,
262 struct hostent *ht;
264 struct hostent new_ht;
282 ht = va_arg(ap, struct hostent *);
284 desired_size = _ALIGNBYTES + sizeof(struct hostent) + sizeof(char *);
314 memcpy(&new_ht, ht, sizeof(struct hostent));
[all...]
H A Dnetdb_private.h104 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 Dgethostbynis.c51 _gethostbynis(const char *name, char *map, int af, struct hostent *he,
164 _gethostbynisname_r(const char *name, int af, struct hostent *he,
182 struct hostent *he, struct hostent_data *hed)
210 struct hostent *hptr, he;
216 hptr = va_arg(ap, struct hostent *);
222 *((struct hostent **)rval) = NULL;
241 *((struct hostent **)rval) = hptr;
244 *((struct hostent **)rval) = NULL;
259 struct hostent *hptr, he;
266 hptr = va_arg(ap, struct hostent *);
[all...]
H A Dgethostbyht.c87 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped,
172 gethostent_r(struct hostent *hptr, char *buffer, size_t buflen,
173 struct hostent **result, int *h_errnop)
176 struct hostent he;
201 struct hostent *
205 struct hostent *rval;
224 struct hostent *hptr, he;
232 hptr = va_arg(ap, struct hostent *);
238 *((struct hostent **)rval) = NULL;
276 *((struct hostent **)rva
[all...]
H A Dname6.c190 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_stat
[all...]
/freebsd-current/lib/libc/tests/nss/
H A Dgethostby_test.c59 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 *, struc
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dsendfile2.sh79 struct hostent *hostent;
96 hostent = gethostbyname ("localhost");
97 memcpy (&addr.sin_addr.s_addr, hostent->h_addr,
H A Dsetsockopt.sh81 struct hostent *hostent;
106 hostent = gethostbyname ("localhost");
110 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
H A Dsendfile3.sh141 struct hostent *hostent;
156 hostent = gethostbyname ("localhost");
157 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,
/freebsd-current/sbin/ipf/libipf/
H A Dconnecttcp.c19 struct hostent *host;
/freebsd-current/usr.bin/talk/
H A Dget_addrs.c45 struct hostent *hp;
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dget_addrs.c51 struct hostent *hostent; local
58 hostent = roken_gethostbyname (hostname);
59 if (hostent == NULL) {
71 res->val[0].addr_type = hostent->h_addrtype;
75 hostent->h_addr,
76 hostent->h_length);
/freebsd-current/contrib/ntp/include/
H A Dntp_machine.h137 struct hostent { struct
156 struct hostent *gethostbyname (char * netnum);
157 struct hostent *gethostbyaddr (char * netnum, int size, int addr_type);
/freebsd-current/tools/test/stress2/testcases/tcp/
H A Dtcp.c102 struct hostent *hostent; local
116 hostent = gethostbyname ("localhost");
118 memcpy (&inetaddr.sin_addr.s_addr, hostent->h_addr,

Completed in 220 milliseconds

12345678