Home
last modified time | relevance | path

Searched refs:he (Results 1 – 25 of 208) sorted by relevance

123456789

/freebsd/contrib/bmake/
H A Dhash.c125 for (he = t->buckets[h & t->bucketsMask]; he != NULL; he = he->next) { in HashTable_Find()
136 return he; in HashTable_Find()
169 free(he); in HashTable_Done()
170 he = next; in HashTable_Done()
194 return he != NULL ? he->value : NULL; in HashTable_FindValue()
205 return he != NULL ? he->value : NULL; in HashTable_FindValueBySubstringHash()
229 he->next = newBuckets[he->hash & newMask]; in HashTable_Enlarge()
230 newBuckets[he->hash & newMask] = he; in HashTable_Enlarge()
259 return he; in HashTable_CreateEntry()
276 return he; in HashTable_CreateEntry()
[all …]
H A Dhash.h111 HashEntry_Get(HashEntry *he) in HashEntry_Get() argument
113 return he->value; in HashEntry_Get()
117 HashEntry_Set(HashEntry *he, void *datum) in HashEntry_Set() argument
119 he->value = datum; in HashEntry_Set()
/freebsd/crypto/heimdal/lib/roken/
H A Droken_gethostby.c51 if(he) { in make_address()
195 he.h_name = p; in roken_gethostby()
196 he.h_aliases = NULL; in roken_gethostby()
198 he.h_length = 4; in roken_gethostby()
212 return &he; in roken_gethostby()
219 struct hostent *he; in roken_gethostbyname() local
221 if(he) in roken_gethostbyname()
222 return he; in roken_gethostbyname()
233 if(he) in roken_gethostbyaddr()
234 return he; in roken_gethostbyaddr()
[all …]
H A Dgetaddrinfo.c228 struct hostent *he, int *flags) in add_hostent() argument
238 tmp_canon = hostent_find_fqdn (he); in add_hostent()
242 he2 = getipnodebyaddr (he->h_addr_list[0], he->h_length, in add_hostent()
243 he->h_addrtype, &error); in add_hostent()
332 struct hostent *he; in get_nodes() local
336 if (he != NULL) { in get_nodes()
338 &current, const_v6, he, &flags); in get_nodes()
339 freehostent (he); in get_nodes()
344 struct hostent *he; in get_nodes() local
348 if (he != NULL) { in get_nodes()
[all …]
H A Dhostent_find_fqdn.c43 hostent_find_fqdn (const struct hostent *he) in hostent_find_fqdn() argument
45 const char *ret = he->h_name; in hostent_find_fqdn()
49 for (h = (const char **)he->h_aliases; *h != NULL; ++h) { in hostent_find_fqdn()
/freebsd/lib/libc/net/
H A Dgethostbyht.c131 he->h_length = len; in gethostent_p()
132 he->h_addrtype = af; in gethostent_p()
137 he->h_name = bp; in gethostent_p()
176 struct hostent he; in gethostent_r() local
224 struct hostent *hptr, he; in _ht_gethostbyname() local
249 if (he.h_addrtype != af) in _ht_gethostbyname()
253 _map_v4v6_address(he.h_addr, he.h_addr); in _ht_gethostbyname()
254 he.h_length = IN6ADDRSZ; in _ht_gethostbyname()
289 struct hostent *hptr, he; in _ht_gethostbyaddr() local
314 if (he.h_addrtype == af && !bcmp(he.h_addr, addr, len)) { in _ht_gethostbyaddr()
[all …]
H A Dgethostbynis.c99 he->h_addr_list = hed->h_addr_ptrs; in _gethostbynis()
100 he->h_addr = (char *)hed->host_addr; in _gethostbynis()
121 he->h_addr_list[1] = NULL; in _gethostbynis()
122 he->h_length = size; in _gethostbynis()
123 he->h_addrtype = af; in _gethostbynis()
128 he->h_name = bp; in _gethostbynis()
129 q = he->h_aliases = hed->host_aliases; in _gethostbynis()
177 return (_gethostbynis(name, map, af, he, hed)); in _gethostbynisname_r()
182 struct hostent *he, struct hostent_data *hed) in _gethostbynisaddr_r() argument
210 struct hostent *hptr, he; in _nis_gethostbyname() local
[all …]
H A Dgethostbydns.c151 he->h_name = NULL; in gethostanswer()
195 he->h_name = bp; in gethostanswer()
198 qname = he->h_name; in gethostanswer()
261 he->h_name = bp; in gethostanswer()
319 he->h_name = bp; in gethostanswer()
334 he->h_name = bp; in gethostanswer()
362 he->h_name = bp; in gethostanswer()
411 if (!he->h_name) { in gethostanswer()
416 he->h_name = bp; in gethostanswer()
433 struct hostent *he; in __dns_getanswer() local
[all …]
H A Dgethostnamadr.c106 len += he->h_length; in __copy_hostent()
111 len += strlen(he->h_name) + 1; in __copy_hostent()
137 n = strlen(he->h_name) + 1; in __copy_hostent()
138 strcpy(cp, he->h_name); in __copy_hostent()
146 strcpy(cp, he->h_aliases[i]); in __copy_hostent()
435 struct hostent he; in fakeaddr() local
456 he.h_addrtype = af; in fakeaddr()
459 he.h_length = NS_INADDRSZ; in fakeaddr()
462 he.h_length = NS_IN6ADDRSZ; in fakeaddr()
469 he.h_name = hed->hostbuf; in fakeaddr()
[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); \
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76_connac3_mac.c14 struct ieee80211_radiotap_he *he, in mt76_connac3_mac_decode_he_radiotap_ru() argument
50 he->data1 |= HE_BITS(DATA1_BW_RU_ALLOC_KNOWN); in mt76_connac3_mac_decode_he_radiotap_ru()
51 he->data2 |= HE_BITS(DATA2_RU_OFFSET_KNOWN) | in mt76_connac3_mac_decode_he_radiotap_ru()
120 struct ieee80211_radiotap_he *he; in mt76_connac3_mac_decode_he_radiotap() local
124 he = skb_push(skb, sizeof(known)); in mt76_connac3_mac_decode_he_radiotap()
125 memcpy(he, &known, sizeof(known)); in mt76_connac3_mac_decode_he_radiotap()
134 he->data5 |= HE_BITS(DATA5_TXBF); in mt76_connac3_mac_decode_he_radiotap()
140 he->data1 |= HE_BITS(DATA1_FORMAT_SU) | in mt76_connac3_mac_decode_he_radiotap()
149 he->data1 |= HE_BITS(DATA1_FORMAT_EXT_SU) | in mt76_connac3_mac_decode_he_radiotap()
156 he->data1 |= HE_BITS(DATA1_FORMAT_MU) | in mt76_connac3_mac_decode_he_radiotap()
[all …]
H A Dmt76_connac_mac.c754 struct ieee80211_radiotap_he *he, in mt76_connac2_mac_decode_he_radiotap_ru() argument
795 he->data1 |= HE_BITS(DATA1_BW_RU_ALLOC_KNOWN); in mt76_connac2_mac_decode_he_radiotap_ru()
796 he->data2 |= HE_BITS(DATA2_RU_OFFSET_KNOWN) | in mt76_connac2_mac_decode_he_radiotap_ru()
871 struct ieee80211_radiotap_he *he; in mt76_connac2_mac_decode_he_radiotap() local
875 he = skb_push(skb, sizeof(known)); in mt76_connac2_mac_decode_he_radiotap()
876 memcpy(he, &known, sizeof(known)); in mt76_connac2_mac_decode_he_radiotap()
885 he->data5 |= HE_BITS(DATA5_TXBF); in mt76_connac2_mac_decode_he_radiotap()
891 he->data1 |= HE_BITS(DATA1_FORMAT_SU) | in mt76_connac2_mac_decode_he_radiotap()
900 he->data1 |= HE_BITS(DATA1_FORMAT_EXT_SU) | in mt76_connac2_mac_decode_he_radiotap()
907 he->data1 |= HE_BITS(DATA1_FORMAT_MU) | in mt76_connac2_mac_decode_he_radiotap()
[all …]
/freebsd/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c33 static struct hostent *he; variable
64 if ( ! he ) goto failed; in bootparamproc_whoami_1_svc()
121 he = NULL; in bootparamproc_getfile_1_svc()
123 if (! he ) goto failed; in bootparamproc_getfile_1_svc()
136 if ( !he ) goto failed; in bootparamproc_getfile_1_svc()
207 he = gethostbyname(hostname); in getthefile()
208 if (he && !strcmp(he->h_name, l_askname)) match = 1; in getthefile()
313 he = NULL; in checkhost()
315 if (he && !strcmp(l_askname, he->h_name)) { in checkhost()
330 he = NULL; in checkhost()
[all …]
H A Dmain.c46 struct hostent *he; in main() local
60 he = gethostbyname(optarg); in main()
61 if (he) { in main()
62 bcopy(he->h_addr, (char *)&route_addr, sizeof(route_addr)); in main()
/freebsd/bin/sh/
H A Dhistedit.c99 HistEvent he; in histsave() local
132 HistEvent he; in histload() local
230 HistEvent he; in sethistsize() local
253 HistEvent he; in histcmd() local
406 out1str(he.str); in histcmd()
409 fc_replace(he.str, pat, repl) : he.str; in histcmd()
422 oldhistnum = he.num; in histcmd()
429 history(hist, &he, in histcmd()
439 if (he.num == last) in histcmd()
496 HistEvent he; in str_to_event() local
[all …]
/freebsd/usr.bin/bluetooth/bthost/
H A Dbthost.c77 struct hostent *he = NULL; in hostmode() local
84 he = bt_gethostbyaddr((char const *) &ba, sizeof(ba), in hostmode()
88 he = bt_gethostbyname(arg); in hostmode()
91 if (he == NULL) { in hostmode()
97 printf("%s", reverse? he->h_name : in hostmode()
98 bt_ntoa((bdaddr_t *)(he->h_addr), bastr)); in hostmode()
103 reverse? he->h_name : in hostmode()
104 bt_ntoa((bdaddr_t *)(he->h_addr), bastr)); in hostmode()
/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c95 struct hostent *he; in IMPLEMENT_TEST_FILE_SNAPSHOT() local
101 if (he == NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT()
106 return (he); in IMPLEMENT_TEST_FILE_SNAPSHOT()
112 struct hostent *he; in __gethostbyaddr() local
118 if (he == NULL) in __gethostbyaddr()
123 return (he); in __gethostbyaddr()
132 freehostent(he); in __freehostent()
386 he->h_addrtype); in is_hostent_equal()
731 he->h_addrtype); in hostent_test_gethostbyaddr()
817 he->h_addrtype); in hostent_test_getnameinfo_eq()
[all …]
/freebsd/contrib/dma/
H A Ddns.c66 add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t *ps) in add_host() argument
103 *he = reallocf(*he, newsz * sizeof(**he)); in add_host()
104 if (*he == NULL) in add_host()
108 p = &(*he)[*ps]; in add_host()
132 dns_get_mx_list(const char *host, int port, struct mx_hostentry **he, int no_mx) in dns_get_mx_list() argument
272 *he = hosts; in dns_get_mx_list()
280 struct mx_hostentry *he, *p; in main() local
283 err = dns_get_mx_list(argv[1], 53, &he, 0); in main()
287 for (p = he; *p->host != 0; p++) { in main()
/freebsd/usr.sbin/bluetooth/l2ping/
H A Dl2ping.c66 struct hostent *he; in main() local
98 if ((he = bt_gethostbyname(optarg)) == NULL) in main()
101 memcpy(&dst, he->h_addr, sizeof(dst)); in main()
127 if ((he = bt_gethostbyname(optarg)) == NULL) in main()
130 memcpy(&src, he->h_addr, sizeof(src)); in main()
152 he = bt_gethostbyaddr((const char *)&dst, sizeof(dst), AF_BLUETOOTH); in main()
153 if (he == NULL || he->h_name == NULL || he->h_name[0] == '\0' || numeric) in main()
156 rname = strdup(he->h_name); in main()
/freebsd/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c38 struct hostent *he; in eachres_whoami() local
40 he = gethostbyaddr((char *)&raddr->sin_addr.s_addr,4,AF_INET); in eachres_whoami()
41 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr)); in eachres_whoami()
50 struct hostent *he; in eachres_getfile() local
52 he = gethostbyaddr((char *)&raddr->sin_addr.s_addr,4,AF_INET); in eachres_getfile()
53 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr)); in eachres_getfile()
/freebsd/contrib/one-true-awk/testdir/
H A Dbib3468 And he that killeth a beast, he shall restore it: and he that killeth a man, he shall be put to dea…
4436 … man, that he should lie; neither the son of man, that he should repent: hath he said, and shall h…
6651 At her feet he bowed, he fell, he lay down: at her feet he bowed, he fell: where he bowed, there he
21894he gave him, all people, nations, and languages, trembled and feared before him: whom he would he
25397 But a certain Samaritan, as he journeyed, came where he was: and when he saw him, he had compassion…
25712 And when he heard this, he was very sorrowful: for he was very rich.
26264 And this he said to prove him: for he himself knew what he would do.
26530 When he had heard therefore that he was sick, he abode two days still in the same place where he wa…
28079 For in that he died, he died unto sin once: but in that he liveth, he liveth unto God.
28147 Moreover whom he did predestinate, them he also called: and whom he called, them he also justified:…
[all …]
/freebsd/usr.sbin/bluetooth/btpand/
H A Dbtpand.c85 struct hostent *he; in main() local
87 if ((he = bt_gethostbyname(optarg)) == NULL) in main()
92 (bdaddr_t *)he->h_addr); in main()
103 struct hostent *he; in main() local
105 if ((he = bt_gethostbyname(optarg)) == NULL) in main()
110 (bdaddr_t *)he->h_addr); in main()
/freebsd/usr.sbin/bluetooth/bthidcontrol/
H A Dhid.c92 struct hostent *he = NULL; in hid_known() local
105 he = bt_gethostbyaddr((char *) &hd->bdaddr, in hid_known()
111 (he != NULL && he->h_name != NULL)? in hid_known()
112 he->h_name : ""); in hid_known()
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_io.cpp71 HANDLE he; in __kmp_redirect_output() local
93 he = GetStdHandle(STD_ERROR_HANDLE); in __kmp_redirect_output()
94 if (he == INVALID_HANDLE_VALUE || he == NULL) { in __kmp_redirect_output()
103 __kmp_stderr = he; // temporary code, need new global in __kmp_redirect_output()
/freebsd/lib/libc/rpc/
H A Dauth_time.c144 struct hostent *he; in get_server() local
153 he = gethostbyname(host); in get_server()
154 if (he == NULL) in get_server()
157 he = &dummy; in get_server()
167 for (i = 0, ep = eps; (he->h_addr_list[i] != NULL) && (num_ep < maxep); in get_server()
171 a = (struct in_addr *)he->h_addr_list[i]; in get_server()
182 for (i = 0; (he->h_addr_list[i] != NULL) && (num_ep < maxep); in get_server()
186 a = (struct in_addr *)he->h_addr_list[i]; in get_server()

123456789