Home
last modified time | relevance | path

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

12345678

/freebsd-13-stable/contrib/bmake/
HDhash.c166 HashEntry *he = buckets[i]; in HashTable_Done() local
167 while (he != NULL) { in HashTable_Done()
168 HashEntry *next = he->next; in HashTable_Done()
169 free(he); in HashTable_Done()
170 he = next; in HashTable_Done()
193 HashEntry *he = HashTable_FindEntry(t, key); in HashTable_FindValue() local
194 return he != NULL ? he->value : NULL; in HashTable_FindValue()
204 HashEntry *he = HashTable_Find(t, key, h); in HashTable_FindValueBySubstringHash() local
205 return he != NULL ? he->value : NULL; in HashTable_FindValueBySubstringHash()
226 HashEntry *he = oldBuckets[i]; in HashTable_Enlarge() local
[all …]
/freebsd-13-stable/crypto/heimdal/lib/roken/
HDroken_gethostby.c50 struct hostent *he = gethostbyname(address); in make_address() local
51 if(he) { in make_address()
52 unsigned char *p = (unsigned char*)he->h_addr; in make_address()
190 static struct hostent he; in roken_gethostby() local
195 he.h_name = p; in roken_gethostby()
196 he.h_aliases = NULL; in roken_gethostby()
197 he.h_addrtype = AF_INET; in roken_gethostby()
198 he.h_length = 4; in roken_gethostby()
211 he.h_addr_list = addr_list; in roken_gethostby()
212 return &he; in roken_gethostby()
[all …]
HDgetaddrinfo.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()
259 for (h = he->h_addr_list; *h != NULL; ++h) { in add_hostent()
332 struct hostent *he; in get_nodes() local
334 he = getipnodebyname (nodename, PF_INET6, 0, &error); in get_nodes()
336 if (he != NULL) { in get_nodes()
338 &current, const_v6, he, &flags); in get_nodes()
339 freehostent (he); in get_nodes()
[all …]
HDhostent_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()
HDgetnameinfo.c52 struct hostent *he = gethostbyaddr (addr, in doit() local
55 if (he != NULL) { in doit()
56 strlcpy (host, hostent_find_fqdn(he), hostlen); in doit()
/freebsd-13-stable/lib/libc/net/
HDgethostbyht.c91 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, in gethostent_p() argument
134 he->h_addr_list = hed->h_addr_ptrs; in gethostent_p()
135 he->h_length = len; in gethostent_p()
136 he->h_addrtype = af; in gethostent_p()
141 he->h_name = bp; in gethostent_p()
142 q = he->h_aliases = hed->host_aliases; in gethostent_p()
180 struct hostent he; in gethostent_r() local
194 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r()
196 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in gethostent_r()
228 struct hostent *hptr, he; in _ht_gethostbyname() local
[all …]
HDgethostbynis.c52 _gethostbynis(const char *name, char *map, int af, struct hostent *he, in _gethostbynis() argument
100 he->h_addr_list = hed->h_addr_ptrs; in _gethostbynis()
101 he->h_addr = (char *)hed->host_addr; in _gethostbynis()
122 he->h_addr_list[1] = NULL; in _gethostbynis()
123 he->h_length = size; in _gethostbynis()
124 he->h_addrtype = af; in _gethostbynis()
129 he->h_name = bp; in _gethostbynis()
130 q = he->h_aliases = hed->host_aliases; in _gethostbynis()
165 _gethostbynisname_r(const char *name, int af, struct hostent *he, in _gethostbynisname_r() argument
178 return (_gethostbynis(name, map, af, he, hed)); in _gethostbynisname_r()
[all …]
HDgethostbydns.c141 struct hostent *he, struct hostent_data *hed, res_state statp) in gethostanswer() argument
156 he->h_name = NULL; in gethostanswer()
200 he->h_name = bp; in gethostanswer()
203 qname = he->h_name; in gethostanswer()
207 he->h_aliases = hed->host_aliases; in gethostanswer()
210 he->h_addr_list = hed->h_addr_ptrs; in gethostanswer()
266 he->h_name = bp; in gethostanswer()
324 he->h_name = bp; in gethostanswer()
339 he->h_name = bp; in gethostanswer()
347 _map_v4v6_hostent(he, &bp, ep); in gethostanswer()
[all …]
HDgethostnamadr.c95 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, in __copy_hostent() argument
106 for (i = 0; he->h_addr_list[i]; i++, nptr++) { in __copy_hostent()
107 len += he->h_length; in __copy_hostent()
109 for (i = 0; he->h_aliases[i]; i++, nptr++) { in __copy_hostent()
110 len += strlen(he->h_aliases[i]) + 1; in __copy_hostent()
112 len += strlen(he->h_name) + 1; in __copy_hostent()
121 hptr->h_addrtype = he->h_addrtype; in __copy_hostent()
122 n = hptr->h_length = he->h_length; in __copy_hostent()
129 for (i = 0; he->h_addr_list[i]; i++ , ptr++) { in __copy_hostent()
130 memcpy(cp, he->h_addr_list[i], n); in __copy_hostent()
[all …]
HDnetdb_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-13-stable/usr.sbin/bootparamd/bootparamd/
HDbootparamd.c33 static struct hostent *he; variable
63 he = gethostbyaddr((char *)&haddr,sizeof(haddr),AF_INET); in bootparamproc_whoami_1_svc()
64 if ( ! he ) goto failed; in bootparamproc_whoami_1_svc()
66 if (debug) warnx("this is host %s", he->h_name); in bootparamproc_whoami_1_svc()
67 if (dolog) syslog(LOG_NOTICE,"This is host %s\n", he->h_name); in bootparamproc_whoami_1_svc()
69 strncpy(askname, he->h_name, sizeof(askname)); in bootparamproc_whoami_1_svc()
121 he = NULL; in bootparamproc_getfile_1_svc()
122 he = gethostbyname(getfile->client_name); in bootparamproc_getfile_1_svc()
123 if (! he ) goto failed; in bootparamproc_getfile_1_svc()
125 strncpy(askname, he->h_name, sizeof(askname)); in bootparamproc_getfile_1_svc()
[all …]
HDmain.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-13-stable/bin/sh/
HDhistedit.c103 HistEvent he; in histsave() local
123 if (history(hist, &he, H_SAVE_FP, f) < 1 || in histsave()
136 HistEvent he; in histload() local
141 if (history(hist, &he, H_LOAD, histfile) != -1 || errno == ENOENT) in histload()
235 HistEvent he; in sethistsize() local
242 history(hist, &he, H_SETSIZE, histsize); in sethistsize()
243 history(hist, &he, H_SETUNIQUE, 1); in sethistsize()
258 HistEvent he; in histcmd() local
405 history(hist, &he, H_FIRST); in histcmd()
406 retval = history(hist, &he, H_NEXT_EVENT, first); in histcmd()
[all …]
/freebsd-13-stable/usr.bin/bluetooth/bthost/
HDbthost.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-13-stable/contrib/apr/tables/
HDapr_hash.c290 apr_hash_entry_t **hep, *he; in find_entry() local
299 for (hep = &ht->array[hash & ht->max], he = *hep; in find_entry()
300 he; hep = &he->next, he = *hep) { in find_entry()
301 if (he->hash == hash in find_entry()
302 && he->klen == klen in find_entry()
303 && memcmp(he->key, key, klen) == 0) in find_entry()
306 if (he || !val) in find_entry()
310 if ((he = ht->free) != NULL) in find_entry()
311 ht->free = he->next; in find_entry()
313 he = apr_palloc(ht->pool, sizeof(*he)); in find_entry()
[all …]
/freebsd-13-stable/lib/libc/tests/nss/
HDgethostby_test.c96 struct hostent *he; in IMPLEMENT_TEST_FILE_SNAPSHOT() local
101 he = getipnodebyname(name, af, ipnode_flags, &error); in IMPLEMENT_TEST_FILE_SNAPSHOT()
102 if (he == NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT()
105 he = gethostbyname2(name, af); in IMPLEMENT_TEST_FILE_SNAPSHOT()
107 return (he); in IMPLEMENT_TEST_FILE_SNAPSHOT()
113 struct hostent *he; in __gethostbyaddr() local
118 he = getipnodebyaddr(addr, len, af, &error); in __gethostbyaddr()
119 if (he == NULL) in __gethostbyaddr()
122 he = gethostbyaddr(addr, len, af); in __gethostbyaddr()
124 return (he); in __gethostbyaddr()
[all …]
/freebsd-13-stable/contrib/dma/
HDdns.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-13-stable/usr.sbin/bluetooth/l2ping/
HDl2ping.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-13-stable/usr.sbin/bootparamd/callbootd/
HDcallbootd.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-13-stable/usr.sbin/bluetooth/btpand/
HDbtpand.c89 struct hostent *he; in main() local
91 if ((he = bt_gethostbyname(optarg)) == NULL) in main()
96 (bdaddr_t *)he->h_addr); in main()
107 struct hostent *he; in main() local
109 if ((he = bt_gethostbyname(optarg)) == NULL) in main()
114 (bdaddr_t *)he->h_addr); in main()
/freebsd-13-stable/usr.sbin/bluetooth/bthidcontrol/
HDhid.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-13-stable/contrib/llvm-project/openmp/runtime/src/
HDkmp_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-13-stable/lib/libc/rpc/
HDauth_time.c147 struct hostent *he; in get_server() local
156 he = gethostbyname(host); in get_server()
157 if (he == NULL) in get_server()
160 he = &dummy; in get_server()
170 for (i = 0, ep = eps; (he->h_addr_list[i] != NULL) && (num_ep < maxep); in get_server()
174 a = (struct in_addr *)he->h_addr_list[i]; in get_server()
185 for (i = 0; (he->h_addr_list[i] != NULL) && (num_ep < maxep); in get_server()
189 a = (struct in_addr *)he->h_addr_list[i]; in get_server()
/freebsd-13-stable/contrib/wpa/src/ap/
HDneighbor_db.c207 int ht, int vht, int he) in hostapd_get_nr_chan_width() argument
213 if (!ht && !vht && !he) in hostapd_get_nr_chan_width()
217 if ((!vht && !he) || oper_chwidth == CONF_OPER_CHWIDTH_USE_HT) in hostapd_get_nr_chan_width()
236 int he = hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax; in hostapd_neighbor_set_own_report() local
237 bool eht = he && hapd->iconf->ieee80211be && !hapd->conf->disable_11be; in hostapd_neighbor_set_own_report()
275 if (he) in hostapd_neighbor_set_own_report()
287 width = hostapd_get_nr_chan_width(hapd, ht, vht, he); in hostapd_neighbor_set_own_report()
/freebsd-13-stable/sys/contrib/dev/iwlwifi/mvm/
HDrxmq.c1285 struct ieee80211_radiotap_he *he, in iwl_mvm_decode_he_phy_ru_alloc() argument
1304 he->data1 |= cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN); in iwl_mvm_decode_he_phy_ru_alloc()
1334 he->data2 |= le16_encode_bits(offs, in iwl_mvm_decode_he_phy_ru_alloc()
1336 he->data2 |= cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_KNOWN | in iwl_mvm_decode_he_phy_ru_alloc()
1339 he->data2 |= in iwl_mvm_decode_he_phy_ru_alloc()
1358 he->data6 |= in iwl_mvm_decode_he_phy_ru_alloc()
1367 struct ieee80211_radiotap_he *he, in iwl_mvm_decode_he_phy_data() argument
1385 he->data1 |= cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA1_SPTL_REUSE_KNOWN | in iwl_mvm_decode_he_phy_data()
1389 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1392 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
[all …]

12345678