Home
last modified time | relevance | path

Searched refs:h_name (Results 1 – 25 of 85) sorted by relevance

1234

/freebsd/lib/libc/tests/nss/
H A Dgethostby_test.c148 if (src->h_name != NULL) { in clone_hostent()
149 dest->h_name = strdup(src->h_name); in clone_hostent()
150 ATF_REQUIRE(dest->h_name != NULL); in clone_hostent()
195 free(ht->h_name); in free_hostent()
222 if (ht1->h_name == NULL || ht2->h_name == NULL) in compare_hostent()
227 strcmp(ht1->h_name, ht2->h_name) != 0) in compare_hostent()
378 rv = check_addrinfo_for_name(ai, he->h_name); in is_hostent_equal()
408 ht->h_name, ht->h_addrtype, ht->h_length); in sdump_hostent()
517 he->h_name = strdup(line); in hostent_read_hostlist_func()
518 ATF_REQUIRE(he->h_name != NULL); in hostent_read_hostlist_func()
[all …]
/freebsd/usr.sbin/lpr/pac/
H A Dpac.c76 char *h_name; /* Name of this user */ member
266 printf("%-24s %7.2f %4d $%6.2f\n", hp->h_name, in dumpit()
295 hp->h_name, hp->h_count); in rewrite()
330 hp->h_name = strdup(name); in enter()
351 if (strcmp(hp->h_name, name) == 0) in lookup()
403 r = strcmp(h1->h_name, h2->h_name); in qucmp()
/freebsd/crypto/heimdal/lib/roken/
H A Dcopyhostent.c52 res->h_name = NULL; in copyhostent()
57 res->h_name = strdup (h->h_name); in copyhostent()
58 if (res->h_name == NULL) { in copyhostent()
H A Droken_gethostby.c195 he.h_name = p; in roken_gethostby()
264 strncpy(host, he->h_name, sizeof(host));
267 printf("%s\n", he->h_name);
/freebsd/usr.sbin/bootparamd/bootparamd/
H A Dbootparamd.c66 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()
125 strncpy(askname, he->h_name, sizeof(askname)); in bootparamproc_getfile_1_svc()
208 if (he && !strcmp(he->h_name, l_askname)) match = 1; in getthefile()
315 if (he && !strcmp(l_askname, he->h_name)) { in checkhost()
332 if (he && !strcmp(l_askname, he->h_name)) { in checkhost()
334 snprintf(l_hostname, len, "%s", he->h_name); in checkhost()
/freebsd/sbin/ipf/libipf/
H A Dhostname.c31 if (hp != NULL && hp->h_name != NULL && in hostname()
32 *hp->h_name != '\0') { in hostname()
33 strncpy(hostbuf, hp->h_name, sizeof(hostbuf)); in hostname()
/freebsd/lib/libc/net/
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()
349 if (strcasecmp(he->h_name, bp) != 0) { in gethostanswer()
351 AskedForGot, he->h_name, bp); in gethostanswer()
362 he->h_name = bp; in gethostanswer()
411 if (!he->h_name) { in gethostanswer()
[all …]
H A Dgethostnamadr.c111 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()
139 hptr->h_name = cp; in __copy_hostent()
285 if (ht->h_name != NULL) in host_marshal_func()
286 desired_size += strlen(ht->h_name) + 1; in host_marshal_func()
322 if (new_ht.h_name != NULL) { in host_marshal_func()
323 size = strlen(new_ht.h_name); in host_marshal_func()
324 memcpy(p, new_ht.h_name, size); in host_marshal_func()
325 new_ht.h_name = p; in host_marshal_func()
[all …]
H A Dname6.c298 if (hp2 && strcmp(hp->h_name, hp2->h_name) == 0) { in getipnodebyname()
414 if (hp->h_name != NULL) in _hpcopy()
415 size += strlen(hp->h_name) + 1; in _hpcopy()
442 if (hp->h_name != NULL) { in _hpcopy()
443 nhp->h_name = cp; in _hpcopy()
444 strcpy(cp, hp->h_name); in _hpcopy()
447 nhp->h_name = NULL; in _hpcopy()
485 hp->h_name = (char *)name; in _hpaddr()
516 hp->h_name = (hp1->h_name != NULL ? hp1->h_name : hp2->h_name); in _hpmerge()
/freebsd/contrib/atf/test-programs/
H A Dcommon.sh34 for h_name in "${@}"; do
35 echo ${srcdir}/${h_name}
/freebsd/contrib/tcp_wrappers/
H A Dsocket.c336 STRN_CPY(host->name, hp->h_name, sizeof(host->name)); in sock_hostname()
361 } else if (STR_NE(host->name, hp->h_name) in sock_hostname()
371 host->name, STRING_LENGTH, hp->h_name); in sock_hostname()
396 inet_ntoa(sin->sin_addr), STRING_LENGTH, hp->h_name); in sock_hostname()
/freebsd/contrib/unbound/compat/
H A Dfake-rfc2553.c72 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) in getnameinfo()
200 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { in getaddrinfo()
/freebsd/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.c75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) in getnameinfo()
210 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { in getaddrinfo()
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_hash.c117 hep->h_name = name; in ctf_hash_insert()
156 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)]; in ctf_hash_lookup()
157 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name); in ctf_hash_lookup()
/freebsd/contrib/ldns/compat/
H A Dfake-rfc2553.c74 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) in getnameinfo()
204 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { in getaddrinfo()
/freebsd/sys/kern/
H A Dkern_khelp.c86 h->h_name, h->h_hooks[i].hook_type, in khelp_register_helper()
245 if (strncmp(h->h_name, hname, HELPER_NAME_MAXLEN) == 0) { in khelp_get_id()
303 __func__, h->h_name, in khelp_new_hhook_registered()
334 strlcpy(kmd->helper->h_name, kmd->name, HELPER_NAME_MAXLEN); in khelp_modevent()
/freebsd/usr.bin/bluetooth/bthost/
H A Dbthost.c97 printf("%s", reverse? he->h_name : in hostmode()
103 reverse? he->h_name : in hostmode()
/freebsd/usr.sbin/bluetooth/l2ping/
H A Dl2ping.c153 if (he == NULL || he->h_name == NULL || he->h_name[0] == '\0' || numeric) in main()
156 rname = strdup(he->h_name); in main()
/freebsd/sbin/ipf/ipsend/
H A Darp.c83 if (!(ether_hostton(hp->h_name, (struct ether_addr *)ether)))
85 if (!(ether_hostton(hp->h_name, ether)))
/freebsd/usr.bin/talk/
H A Dio.c77 hp2 = gethostbyname(hp->h_name); in talk()
83 his_machine_name = strdup(hp->h_name); in talk()
/freebsd/usr.sbin/bluetooth/bthidcontrol/
H A Dhid.c111 (he != NULL && he->h_name != NULL)? in hid_known()
112 he->h_name : ""); in hid_known()
/freebsd/usr.sbin/bootparamd/callbootd/
H A Dcallbootd.c41 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr)); in eachres_whoami()
53 printf("%s answered:\n", he ? he->h_name : inet_ntoa(raddr->sin_addr)); in eachres_getfile()
/freebsd/lib/libcompat/4.3/
H A Drexec.c303 *ahost = hp->h_name; in rexec()
305 ruserpass(hp->h_name, &name, &pass, &acct); in rexec()
323 perror(hp->h_name); in rexec()
/freebsd/libexec/talkd/
H A Dprocess.c155 rp->answer = announce(mp, hp->h_name); in do_announce()
165 rp->answer = announce(mp, hp->h_name); in do_announce()
/freebsd/lib/libutil/
H A Drealhostname.c58 strlcpy(trimmed, hp->h_name, sizeof(trimmed)); in realhostname()
63 strlcpy(lookup, hp->h_name, sizeof(lookup)); in realhostname()

1234