/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | hostent_find_fqdn.c | 39 * 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 D | roken_gethostby.c | 50 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 D | getaddrinfo.c | 226 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 ¤t, 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 D | getnameinfo.c | 52 struct hostent *he = gethostbyaddr (addr, local 55 if (he != NULL) { 56 strlcpy (host, hostent_find_fqdn(he), hostlen);
|
/freebsd-11-stable/usr.bin/bluetooth/bthost/ |
H A D | bthost.c | 78 struct hostent *he = NULL; local 85 he = bt_gethostbyaddr((char const *) &ba, sizeof(ba), 89 he = bt_gethostbyname(arg); 92 if (he == NULL) { 98 printf("%s", reverse? he->h_name : 99 bt_ntoa((bdaddr_t *)(he->h_addr), bastr)); 104 reverse? he->h_name : 105 bt_ntoa((bdaddr_t *)(he->h_addr), bastr));
|
/freebsd-11-stable/lib/libc/net/ |
H A D | gethostbyht.c | 91 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 D | netdb_private.h | 51 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 D | gethostbynis.c | 52 _gethostbynis(const char *name, char *map, int af, struct hostent *he, argument 100 he->h_addr_list = hed->h_addr_ptrs; 101 he->h_addr = (char *)hed->host_addr; 122 he->h_addr_list[1] = NULL; 123 he->h_length = size; 124 he->h_addrtype = af; 129 he->h_name = bp; 130 q = he->h_aliases = hed->host_aliases; 165 _gethostbynisname_r(const char *name, int af, struct hostent *he, argument 178 return (_gethostbynis(name, map, af, he, he 182 _gethostbynisaddr_r(const void *addr, socklen_t len, int af, struct hostent *he, struct hostent_data *hed) argument 211 struct hostent *hptr, he; local 260 struct hostent *hptr, he; local [all...] |
H A D | gethostbydns.c | 141 struct hostent *he, struct hostent_data *hed, res_state statp) 156 he->h_name = NULL; 200 he->h_name = bp; 203 qname = he->h_name; 207 he->h_aliases = hed->host_aliases; 210 he->h_addr_list = hed->h_addr_ptrs; 266 he->h_name = bp; 321 he->h_name = bp; 336 he->h_name = bp; 344 _map_v4v6_hostent(he, 140 gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *he, struct hostent_data *hed, res_state statp) argument 435 struct hostent *he; local 471 struct hostent *hptr, he; local 563 struct hostent *hptr, he; local [all...] |
H A D | gethostnamadr.c | 95 __copy_hostent(struct hostent *he, struct hostent *hptr, char *buf, argument 106 for (i = 0; he->h_addr_list[i]; i++, nptr++) { 107 len += he->h_length; 109 for (i = 0; he->h_aliases[i]; i++, nptr++) { 110 len += strlen(he->h_aliases[i]) + 1; 112 len += strlen(he->h_name) + 1; 121 hptr->h_addrtype = he->h_addrtype; 122 n = hptr->h_length = he->h_length; 129 for (i = 0; he->h_addr_list[i]; i++ , ptr++) { 130 memcpy(cp, he 436 struct hostent he; local 485 gethostbyname_r(const char *name, struct hostent *he, char *buffer, size_t buflen, struct hostent **result, int *h_errnop) argument 509 gethostbyname2_r(const char *name, int af, struct hostent *he, char *buffer, size_t buflen, struct hostent **result, int *h_errnop) argument [all...] |
/freebsd-11-stable/usr.sbin/bootparamd/bootparamd/ |
H A D | bootparamd.c | 36 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 D | main.c | 45 struct hostent *he; local 59 he = gethostbyname(optarg); 60 if (he) { 61 bcopy(he->h_addr, (char *)&route_addr, sizeof(route_addr));
|
/freebsd-11-stable/bin/sh/ |
H A D | histedit.c | 166 HistEvent he; local 173 history(hist, &he, H_SETSIZE, histsize); 174 history(hist, &he, H_SETUNIQUE, 1); 190 HistEvent he; local 333 history(hist, &he, H_FIRST); 334 retval = history(hist, &he, H_NEXT_EVENT, first); 335 for (;retval != -1; retval = history(hist, &he, direction)) { 338 out1fmt("%5d ", he.num); 339 out1str(he.str); 342 fc_replace(he 429 HistEvent he; local [all...] |
/freebsd-11-stable/usr.sbin/bootparamd/callbootd/ |
H A D | callbootd.c | 45 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-11-stable/usr.bin/bc/ |
H A D | extern.h | 45 extern HistEvent he;
|
/freebsd-11-stable/contrib/dma/ |
H A D | dns.c | 66 add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t *ps) argument 103 *he = reallocf(*he, newsz * sizeof(**he)); 104 if (*he == NULL) 108 p = &(*he)[*ps]; 132 dns_get_mx_list(const char *host, int port, struct mx_hostentry **he, int no_mx) argument 272 *he = hosts; 285 struct mx_hostentry *he, *p; local 288 err = dns_get_mx_list(argv[1], 53, &he, [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/l2ping/ |
H A D | l2ping.c | 67 struct hostent *he; local 99 if ((he = bt_gethostbyname(optarg)) == NULL) 102 memcpy(&dst, he->h_addr, sizeof(dst)); 128 if ((he = bt_gethostbyname(optarg)) == NULL) 131 memcpy(&src, he->h_addr, sizeof(src)); 153 he = bt_gethostbyaddr((const char *)&dst, sizeof(dst), AF_BLUETOOTH); 154 if (he == NULL || he->h_name == NULL || he->h_name[0] == '\0' || numeric) 157 rname = strdup(he [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/btpand/ |
H A D | btpand.c | 90 struct hostent *he; local 92 if ((he = bt_gethostbyname(optarg)) == NULL) 97 (bdaddr_t *)he->h_addr); 108 struct hostent *he; local 110 if ((he = bt_gethostbyname(optarg)) == NULL) 115 (bdaddr_t *)he->h_addr);
|
/freebsd-11-stable/lib/libc/tests/nss/ |
H A D | gethostby_test.c | 98 struct hostent *he; local 103 he = getipnodebyname(name, af, ipnode_flags, &error); 104 if (he == NULL) 107 he = gethostbyname2(name, af); 109 return (he); 115 struct hostent *he; local 120 he = getipnodebyaddr(addr, len, af, &error); 121 if (he == NULL) 124 he = gethostbyaddr(addr, len, af); 126 return (he); 130 __freehostent(struct hostent *he) argument 372 is_hostent_equal(struct hostent *he, struct addrinfo *ai) argument 493 hostent_read_hostlist_func(struct hostent *he, char *line) argument 717 hostent_test_gethostbyaddr(struct hostent *he, void *mdata) argument 761 hostent_test_getaddrinfo_eq(struct hostent *he, void *mdata __unused) argument 802 hostent_test_getnameinfo_eq(struct hostent *he, void *mdata __unused) argument [all...] |
/freebsd-11-stable/contrib/apr/tables/ |
H A D | apr_hash.c | 290 apr_hash_entry_t **hep, *he; local 299 for (hep = &ht->array[hash & ht->max], he = *hep; 300 he; hep = &he->next, he = *hep) { 301 if (he->hash == hash 302 && he->klen == klen 303 && memcmp(he->key, key, klen) == 0) 306 if (he || !val) 310 if ((he 366 apr_hash_entry_t *he; local [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/bthidcontrol/ |
H A D | hid.c | 93 struct hostent *he = NULL; local 106 he = bt_gethostbyaddr((char *) &hd->bdaddr, 112 (he != NULL && he->h_name != NULL)? 113 he->h_name : "");
|
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_io.cpp | 89 HANDLE he; local 110 he = GetStdHandle(STD_ERROR_HANDLE); 111 if (he == INVALID_HANDLE_VALUE || he == NULL) { 119 __kmp_stderr = he; // temporary code, need new global
|
/freebsd-11-stable/crypto/heimdal/appl/login/ |
H A D | utmp_login.c | 101 struct hostent *he; local 102 if ((he = gethostbyname(hostname))) 103 memcpy(&utmp->ut_addr, he->h_addr_list[0],
|
/freebsd-11-stable/contrib/amd/fixmount/ |
H A D | fixmount.c | 102 struct hostent *he; local 111 } else if (!(he = gethostbyname(name1))) { 115 memcpy(&addr1, he->h_addr, sizeof(addr1)); 195 struct hostent *he; local 201 if ((he = gethostbyname(host))) { 202 memcpy(&hostaddr, he->h_addr, sizeof(hostaddr)); 335 struct hostent *he; local 348 if (!(he = gethostbyname(thishost))) { 353 memcpy(&thisaddr, he->h_addr, sizeof(thisaddr)); 354 if (!(he [all...] |
/freebsd-11-stable/lib/libc/rpc/ |
H A D | auth_time.c | 149 struct hostent *he; local 158 he = gethostbyname(host); 159 if (he == NULL) 162 he = &dummy; 172 for (i = 0, ep = eps; (he->h_addr_list[i] != NULL) && (num_ep < maxep); 176 a = (struct in_addr *)he->h_addr_list[i]; 187 for (i = 0; (he->h_addr_list[i] != NULL) && (num_ep < maxep); 191 a = (struct in_addr *)he->h_addr_list[i];
|