Searched refs:he (Results 1 - 25 of 140) sorted by relevance

123456

/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dhostent_find_fqdn.c39 * Try to find a fqdn (with `.') in he if possible, else return h_name
43 hostent_find_fqdn (const struct hostent *he) argument
45 const char *ret = he->h_name;
49 for (h = (const char **)he->h_aliases; *h != NULL; ++h) {
H A Droken_gethostby.c50 struct hostent *he = gethostbyname(address); local
51 if(he) {
52 unsigned char *p = (unsigned char*)he->h_addr;
190 static struct hostent he; local
195 he.h_name = p;
196 he.h_aliases = NULL;
197 he.h_addrtype = AF_INET;
198 he.h_length = 4;
211 he.h_addr_list = addr_list;
212 return &he;
219 struct hostent *he; local
231 struct hostent *he; local
[all...]
H A Dgetaddrinfo.c226 struct hostent *he, int *flags)
236 tmp_canon = hostent_find_fqdn (he);
240 he2 = getipnodebyaddr (he->h_addr_list[0], he->h_length,
241 he->h_addrtype, &error);
257 for (h = he->h_addr_list; *h != NULL; ++h) {
330 struct hostent *he; local
332 he = getipnodebyname (nodename, PF_INET6, 0, &error);
334 if (he != NULL) {
336 &current, const_v6, he,
223 add_hostent(int port, int protocol, int socktype, struct addrinfo ***current, int (*func)(struct addrinfo *, void *data, int port), struct hostent *he, int *flags) argument
342 struct hostent *he; local
[all...]
H A Dgetnameinfo.c52 struct hostent *he = gethostbyaddr (addr, local
55 if (he != NULL) {
56 strlcpy (host, hostent_find_fqdn(he), hostlen);
/freebsd-10.0-release/usr.bin/bluetooth/bthost/
H A Dbthost.c75 struct hostent *he = NULL; local
82 he = bt_gethostbyaddr((char const *) &ba, sizeof(ba),
86 he = bt_gethostbyname(arg);
89 if (he == NULL) {
95 printf("%s", reverse? he->h_name :
96 bt_ntoa((bdaddr_t *)(he->h_addr), bastr));
101 reverse? he->h_name :
102 bt_ntoa((bdaddr_t *)(he->h_addr), bastr));
/freebsd-10.0-release/lib/libc/net/
H A Dgethostbyht.c91 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, argument
134 he->h_addr_list = hed->h_addr_ptrs;
135 he->h_length = len;
136 he->h_addrtype = af;
141 he->h_name = bp;
142 q = he->h_aliases = hed->host_aliases;
180 struct hostent he; local
194 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0)
196 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) {
228 struct hostent *hptr, he; local
293 struct hostent *hptr, he; local
[all...]
H A Dgethostbynis.c52 _gethostbynis(const char *name, char *map, int af, struct hostent *he, argument
99 he->h_addr_list = hed->h_addr_ptrs;
100 he->h_addr = (char *)hed->host_addr;
121 he->h_addr_list[1] = NULL;
122 he->h_length = size;
123 he->h_addrtype = af;
128 he->h_name = bp;
129 q = he->h_aliases = hed->host_aliases;
164 _gethostbynisname_r(const char *name, int af, struct hostent *he, argument
177 return (_gethostbynis(name, map, af, he, he
181 _gethostbynisaddr_r(const void *addr, socklen_t len, int af, struct hostent *he, struct hostent_data *hed) argument
206 struct hostent *he; local
233 struct hostent *he; local
265 struct hostent *hptr, he; local
314 struct hostent *hptr, he; local
[all...]
H A Dnetdb_private.h51 struct name *he; \
58 if ((he = thr_getspecific(name##_key)) != NULL) \
59 return (he); \
60 if ((he = calloc(1, sizeof(*he))) == NULL) \
62 if (thr_setspecific(name##_key, he) == 0) \
63 return (he); \
64 free(he); \
H A Dgethostbydns.c145 struct hostent *he, struct hostent_data *hed, res_state statp)
160 he->h_name = NULL;
204 he->h_name = bp;
207 qname = he->h_name;
211 he->h_aliases = hed->host_aliases;
214 he->h_addr_list = hed->h_addr_ptrs;
270 he->h_name = bp;
325 he->h_name = bp;
340 he->h_name = bp;
348 _map_v4v6_hostent(he,
144 gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *he, struct hostent_data *hed, res_state statp) argument
439 struct hostent *he; local
475 struct hostent *hptr, he; local
567 struct hostent *hptr, he; local
[all...]
H A Dgethostnamadr.c102 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, argument
113 for (i = 0; he->h_addr_list[i]; i++, nptr++) {
114 len += he->h_length;
116 for (i = 0; he->h_aliases[i]; i++, nptr++) {
117 len += strlen(he->h_aliases[i]) + 1;
119 len += strlen(he->h_name) + 1;
128 hptr->h_addrtype = he->h_addrtype;
129 n = hptr->h_length = he->h_length;
136 for (i = 0; he->h_addr_list[i]; i++ , ptr++) {
137 memcpy(cp, he
443 struct hostent he; local
492 gethostbyname_r(const char *name, struct hostent *he, char *buffer, size_t buflen, struct hostent **result, int *h_errnop) argument
516 gethostbyname2_r(const char *name, int af, struct hostent *he, char *buffer, size_t buflen, struct hostent **result, int *h_errnop) argument
[all...]
/freebsd-10.0-release/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c36 struct hostent *he; variable in typeref:struct:hostent
68 he = gethostbyaddr((char *)&haddr,sizeof(haddr),AF_INET);
69 if ( ! he ) goto failed;
71 if (debug) warnx("this is host %s", he->h_name);
72 if (dolog) syslog(LOG_NOTICE,"This is host %s\n", he->h_name);
74 strncpy(askname, he->h_name, sizeof(askname));
128 he = NULL;
129 he = gethostbyname(getfile->client_name);
130 if (! he ) goto failed;
132 strncpy(askname, he
[all...]
H A Dmain.c48 struct hostent *he; local
62 he = gethostbyname(optarg);
63 if (he) {
64 bcopy(he->h_addr, (char *)&route_addr, sizeof(route_addr));
/freebsd-10.0-release/bin/sh/
H A Dhistedit.c166 HistEvent he; local
172 history(hist, &he, H_SETSIZE, histsize);
173 history(hist, &he, H_SETUNIQUE, 1);
189 HistEvent he; local
332 history(hist, &he, H_FIRST);
333 retval = history(hist, &he, H_NEXT_EVENT, first);
334 for (;retval != -1; retval = history(hist, &he, direction)) {
337 out1fmt("%5d ", he.num);
338 out1str(he.str);
341 fc_replace(he
428 HistEvent he; local
[all...]
/freebsd-10.0-release/usr.bin/bc/
H A Dextern.h41 extern HistEvent he;
/freebsd-10.0-release/contrib/atf/atf-c++/detail/
H A Dparser.cpp240 read(impl::parser< header::tokenizer >& p, impl::header_entry& he) argument
246 he = impl::header_entry();
274 he = impl::header_entry(hdr_name, hdr_value, attrs);
281 write(std::ostream& os, const impl::header_entry& he) argument
283 std::string line = he.name() + ": " + he.value();
284 impl::attrs_map as = he.attrs();
325 header_entry he; local
326 if (!header::read(p, he).good() || he
372 const header_entry& he = (*iter).second; local
[all...]
/freebsd-10.0-release/tools/regression/geom_uzip/etalon/
H A Detalon.txt21 Long time the manxome foe he sought --
22 So rested he by the Tumtum tree,
25 And, as in uffish thought he stood,
/freebsd-10.0-release/contrib/apr/tables/
H A Dapr_hash.c267 apr_hash_entry_t **hep, *he; local
276 for (hep = &ht->array[hash & ht->max], he = *hep;
277 he; hep = &he->next, he = *hep) {
278 if (he->hash == hash
279 && he->klen == klen
280 && memcmp(he->key, key, klen) == 0)
283 if (he || !val)
287 if ((he
343 apr_hash_entry_t *he; local
[all...]
/freebsd-10.0-release/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c45 struct hostent *he; local
47 he = gethostbyaddr((char *)&raddr->sin_addr.s_addr,4,AF_INET);
48 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr));
59 struct hostent *he; local
61 he = gethostbyaddr((char *)&raddr->sin_addr.s_addr,4,AF_INET);
62 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr));
/freebsd-10.0-release/tools/regression/lib/libc/nss/
H A Dtest-gethostby.c104 struct hostent *he; local
108 he = gethostbyname2(name, af);
111 he = getipnodebyname(name, af, ipnode_flags, &error);
112 if (he == NULL);
116 return (he);
122 struct hostent *he; local
126 he = gethostbyaddr(addr, len, af);
129 he = getipnodebyaddr(addr, len, af, &error);
130 if (he == NULL)
134 return (he);
138 __freehostent(struct hostent *he) argument
390 is_hostent_equal(struct hostent *he, struct addrinfo *ai) argument
511 hostent_read_hostlist_func(struct hostent *he, char *line) argument
732 hostent_test_gethostbyaddr(struct hostent *he, void *mdata) argument
772 hostent_test_getaddrinfo_eq(struct hostent *he, void *mdata) argument
815 hostent_test_getnameinfo_eq(struct hostent *he, void *mdata) argument
[all...]
/freebsd-10.0-release/usr.sbin/bluetooth/l2ping/
H A Dl2ping.c64 struct hostent *he; local
96 if ((he = bt_gethostbyname(optarg)) == NULL)
99 memcpy(&dst, he->h_addr, sizeof(dst));
125 if ((he = bt_gethostbyname(optarg)) == NULL)
128 memcpy(&src, he->h_addr, sizeof(src));
150 he = bt_gethostbyaddr((const char *)&dst, sizeof(dst), AF_BLUETOOTH);
151 if (he == NULL || he->h_name == NULL || he->h_name[0] == '\0' || numeric)
154 rname = strdup(he
[all...]
/freebsd-10.0-release/usr.sbin/bluetooth/btpand/
H A Dbtpand.c87 struct hostent *he; local
89 if ((he = bt_gethostbyname(optarg)) == NULL)
94 (bdaddr_t *)he->h_addr);
105 struct hostent *he; local
107 if ((he = bt_gethostbyname(optarg)) == NULL)
112 (bdaddr_t *)he->h_addr);
/freebsd-10.0-release/usr.sbin/bluetooth/bthidcontrol/
H A Dhid.c90 struct hostent *he = NULL; local
103 he = bt_gethostbyaddr((char *) &hd->bdaddr,
109 (he != NULL && he->h_name != NULL)?
110 he->h_name : "");
H A Dbthidcontrol.c71 struct hostent *he = NULL; local
73 if ((he = bt_gethostbyname(optarg)) == NULL)
76 memcpy(&bdaddr, he->h_addr, sizeof(bdaddr));
/freebsd-10.0-release/contrib/amd/fixmount/
H A Dfixmount.c106 struct hostent *he; local
115 } else if (!(he = gethostbyname(name1))) {
119 memcpy(&addr1, he->h_addr, sizeof(addr1));
199 struct hostent *he; local
205 if ((he = gethostbyname(host))) {
206 memcpy(&hostaddr, he->h_addr, sizeof(hostaddr));
339 struct hostent *he; local
352 if (!(he = gethostbyname(thishost))) {
357 memcpy(&thisaddr, he->h_addr, sizeof(thisaddr));
358 if (!(he
[all...]
/freebsd-10.0-release/crypto/heimdal/appl/login/
H A Dutmp_login.c101 struct hostent *he; local
102 if ((he = gethostbyname(hostname)))
103 memcpy(&utmp->ut_addr, he->h_addr_list[0],

Completed in 592 milliseconds

123456