Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/bmake/
H A Dhash.c116 HashEntry *he; in HashTable_Find() local
124 for (he = t->buckets[h & t->bucketsMask]; he != NULL; he = he->next) { in HashTable_Find()
125 if (he->hash == h && in HashTable_Find()
126 strncmp(he->key, key.start, keyLen) == 0 && in HashTable_Find()
127 he->key[keyLen] == '\0') in HashTable_Find()
131 return he; in HashTable_Find()
160 HashEntry *he = buckets[i]; in HashTable_Done() local
161 while (he != NULL) { in HashTable_Done()
162 HashEntry *next = he->next; in HashTable_Done()
163 free(he); in HashTable_Done()
[all …]
H A Dhash.h110 HashEntry_Get(HashEntry *he) in HashEntry_Get() argument
112 return he->value; in HashEntry_Get()
116 HashEntry_Set(HashEntry *he, void *datum) in HashEntry_Set() argument
118 he->value = datum; in HashEntry_Set()
/freebsd/crypto/heimdal/lib/roken/
H A Droken_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 …]
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()
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 …]
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.c87 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, in gethostent_p() argument
130 he->h_addr_list = hed->h_addr_ptrs; in gethostent_p()
131 he->h_length = len; in gethostent_p()
132 he->h_addrtype = af; in gethostent_p()
137 he->h_name = bp; in gethostent_p()
138 q = he->h_aliases = hed->host_aliases; in gethostent_p()
176 struct hostent he; in gethostent_r() local
190 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r()
192 if (__copy_hostent(&he, hptr, buffer, buflen) != 0) { in gethostent_r()
224 struct hostent *hptr, he; in _ht_gethostbyname() local
[all …]
H A Dgethostbydns.c136 struct hostent *he, struct hostent_data *hed, res_state statp) in gethostanswer() argument
151 he->h_name = NULL; in gethostanswer()
195 he->h_name = bp; in gethostanswer()
198 qname = he->h_name; in gethostanswer()
202 he->h_aliases = hed->host_aliases; in gethostanswer()
205 he->h_addr_list = hed->h_addr_ptrs; in gethostanswer()
261 he->h_name = bp; in gethostanswer()
319 he->h_name = bp; in gethostanswer()
334 he->h_name = bp; in gethostanswer()
342 _map_v4v6_hostent(he, &bp, ep); in gethostanswer()
[all …]
H A Dgethostbynis.c51 _gethostbynis(const char *name, char *map, int af, struct hostent *he, in _gethostbynis() argument
99 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()
164 _gethostbynisname_r(const char *name, int af, struct hostent *he, in _gethostbynisname_r() argument
177 return (_gethostbynis(name, map, af, he, hed)); in _gethostbynisname_r()
[all …]
H A Dgethostnamadr.c94 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, in __copy_hostent() argument
105 for (i = 0; he->h_addr_list[i]; i++, nptr++) { in __copy_hostent()
106 len += he->h_length; in __copy_hostent()
108 for (i = 0; he->h_aliases[i]; i++, nptr++) { in __copy_hostent()
109 len += strlen(he->h_aliases[i]) + 1; in __copy_hostent()
111 len += strlen(he->h_name) + 1; in __copy_hostent()
120 hptr->h_addrtype = he->h_addrtype; in __copy_hostent()
121 n = hptr->h_length = he->h_length; in __copy_hostent()
128 for (i = 0; he->h_addr_list[i]; i++ , ptr++) { in __copy_hostent()
129 memcpy(cp, he->h_addr_list[i], n); in __copy_hostent()
[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()
127 he->data3 = HE_PREP(DATA3_BSS_COLOR, BSS_COLOR, rxv[9]) | in mt76_connac3_mac_decode_he_radiotap()
129 he->data4 = HE_PREP(DATA4_SU_MU_SPTL_REUSE, SR_MASK, rxv[13]); in mt76_connac3_mac_decode_he_radiotap()
130 he->data5 = HE_PREP(DATA5_PE_DISAMBIG, PE_DISAMBIG, rxv[5]) | in mt76_connac3_mac_decode_he_radiotap()
134 he->data5 |= HE_BITS(DATA5_TXBF); 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()
878 he->data3 = HE_PREP(DATA3_BSS_COLOR, BSS_COLOR, rxv[14]) | in mt76_connac2_mac_decode_he_radiotap()
880 he->data4 = HE_PREP(DATA4_SU_MU_SPTL_REUSE, SR_MASK, rxv[11]); in mt76_connac2_mac_decode_he_radiotap()
881 he->data5 = HE_PREP(DATA5_PE_DISAMBIG, PE_DISAMBIG, rxv[2]) | in mt76_connac2_mac_decode_he_radiotap()
885 he->data5 |= HE_BITS(DATA5_TXBF); in mt76_connac2_mac_decode_he_radiotap()
[all …]
/freebsd/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.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 …]
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
119 if (history(hist, &he, H_SAVE_FP, f) < 1 || in histsave()
132 HistEvent he; in histload() local
137 if (history(hist, &he, H_LOAD, histfile) != -1 || errno == ENOENT) in histload()
230 HistEvent he; in sethistsize() local
237 history(hist, &he, H_SETSIZE, histsize); in sethistsize()
238 history(hist, &he, H_SETUNIQUE, 1); in sethistsize()
253 HistEvent he; in histcmd() local
400 history(hist, &he, H_FIRST); in histcmd()
401 retval = history(hist, &he, H_NEXT_EVENT, first); in histcmd()
[all …]
/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c95 struct hostent *he; in IMPLEMENT_TEST_FILE_SNAPSHOT() local
100 he = getipnodebyname(name, af, ipnode_flags, &error); in IMPLEMENT_TEST_FILE_SNAPSHOT()
101 if (he == NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT()
104 he = gethostbyname2(name, af); in IMPLEMENT_TEST_FILE_SNAPSHOT()
106 return (he); in IMPLEMENT_TEST_FILE_SNAPSHOT()
112 struct hostent *he; in __gethostbyaddr() local
117 he = getipnodebyaddr(addr, len, af, &error); in __gethostbyaddr()
118 if (he == NULL) in __gethostbyaddr()
121 he = gethostbyaddr(addr, len, af); in __gethostbyaddr()
123 return (he); in __gethostbyaddr()
[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/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 Dbib5 And God called the light Day, and the darkness he called Night. And the evening and the morning wer…
10 And God called the dry land Earth; and the gathering together of the waters called he Seas: and God…
16 … the greater light to rule the day, and the lesser light to rule the night: he made the stars also.
27 So God created man in his own image, in the image of God created he him; male and female created he
31 And God saw every thing that he had made, and, behold, it was very good. And the evening and the mo…
33 …he seventh day God ended his work which he had made; and he rested on the seventh day from all his…
34 And God blessed the seventh day, and sanctified it: because that in it he had rested from all his w…
39 And the LORD God planted a garden eastward in Eden; and there he put the man whom he had formed.
50 …e field, and every fowl of the air; and brought them unto Adam to see what he would call them: and…
52 And the LORD God caused a deep sleep to fall upon Adam, and he slept: and he took one of his ribs, …
[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_close_console()
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()
90 HANDLE he; __kmp_redirect_output() local
/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