Home
last modified time | relevance | path

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

1234

/netbsd/src/usr.sbin/lpr/pac/
Dpac.c86 char *h_name; /* Name of this user */ member
280 hp->h_name); in dumpit()
309 hp->h_name, hp->h_count); in rewrite()
346 hp->h_name = strdup(name); in enter()
347 if (hp->h_name == NULL) in enter()
369 if (strcmp(hp->h_name, name) == 0) in lookup()
406 r = strcmp(h1->h_name, h2->h_name); in qucmp()
/netbsd/src/external/bsd/libbind/dist/irs/
Dgethostent_r.c176 len += strlen(he->h_name) + 1; in copy_hostent()
202 n = strlen(he->h_name) + 1; in copy_hostent()
203 strcpy(cp, he->h_name); in copy_hostent()
204 hptr->h_name = cp; in copy_hostent()
247 if ((n = strlen(he->h_name) + 1) < (eob - cp)) { in copy_hostent()
248 strcpy(cp, he->h_name); in copy_hostent()
249 hptr->h_name = cp; in copy_hostent()
Dgethostent.c145 if (ns_samename(name, net_data->ho_last->h_name) == 1) in gethostbyname2_p()
300 DE_CONST(name, he.h_name); in getipnodebyname()
427 memput(he->h_name, strlen(he->h_name) + 1); in freehostent()
910 he->h_name = memget(strlen((he1 != NULL) ? in copyandmerge()
911 he1->h_name : he2->h_name) + 1); in copyandmerge()
912 if (he->h_name == NULL) in copyandmerge()
914 strcpy(he->h_name, (he1 != NULL) ? he1->h_name : he2->h_name); in copyandmerge()
1029 pvt->host.h_name = pvt->name;
1050 strncpy(hname2, hp->h_name, MAXDNAME);
Dirp_ho.c179 if (ho->h_name != NULL && in ho_byname2()
180 strcmp(name, ho->h_name) == 0 && in ho_byname2()
234 if (ho->h_name != NULL && in ho_byaddr()
381 if (ho->h_name != NULL) in free_host()
382 free(ho->h_name); in free_host()
Dgetnameinfo.c204 p = strchr(hp->h_name, '.');
207 if (strlen(hp->h_name) + 1 > hostlen)
209 strcpy(host, hp->h_name);
Ddns_ho.c722 hname = pvt->host.h_name = NULL; in gethostans()
761 pvt->host.h_name = bp; in gethostans()
765 qname = pvt->host.h_name; in gethostans()
825 pvt->host.h_name = bp; in gethostans()
889 pvt->host.h_name = bp; in gethostans()
934 pvt->host.h_name = bp; in gethostans()
989 if (pvt->host.h_name == NULL) { in gethostans()
994 pvt->host.h_name = bp; in gethostans()
1003 if (pvt->host.h_name == NULL) { in gethostans()
1009 strdup(pvt->host.h_name); in gethostans()
Dlcl_ho.c236 nn = ns_namelen(hp->h_name); in ho_byname2()
237 if (strncasecmp(hp->h_name, name, Max(n, nn)) == 0) in ho_byname2()
408 pvt->host.h_name = cp; in ho_next()
537 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) || in ho_addrinfo()
/netbsd/src/usr.bin/xlint/lint2/
Dhash.c89 if (strcmp(hte->h_name, s) == 0) in hash_search()
98 hte->h_name = xstrdup(s); in hash_search()
138 return strcmp(a->h_name, b->h_name); in hte_by_name()
195 free(__UNCONST(hte->h_name)); in hash_free()
Dchk.c144 msg(0, hte->h_name, mkpos(&fcall->f_pos)); in check_used_not_defined()
147 msg(0, hte->h_name, mkpos(&usym->u_pos)); in check_used_not_defined()
165 msg(1, hte->h_name, mkpos(&sym->s_pos)); in check_defined_not_used()
190 msg(2, hte->h_name, mkpos(&sym->s_pos)); in check_declared_not_used_or_defined()
220 msg(3, hte->h_name, mkpos(&def1->s_pos), mkpos(&sym->s_pos)); in check_multiple_definitions()
273 msg(17, hte->h_name, in chkvtui()
280 msg(4, hte->h_name, in chkvtui()
319 msg(5, hte->h_name, type_name(xt1), mkpos(&def->s_pos), in chkvtdi()
408 msg(7, hte->h_name, total_args(n, ap1), mkpos(pos1p), in chkfaui()
589 msg(6, hte->h_name, n, type_name(arg1), mkpos(pos1p), in chkau()
[all …]
Demit2.c81 outname(tp->t_tag->h_name); in outtype()
84 outname(tp->t_tynam->h_name); in outtype()
143 outname(hte->h_name); in outdef()
173 errx(1, "internal error: dumpname %s", hte->h_name); in dumpname()
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/roken/
Dcopyhostent.c54 res->h_name = NULL; in copyhostent()
59 res->h_name = strdup (h->h_name); in copyhostent()
60 if (res->h_name == NULL) { in copyhostent()
Droken_gethostby.c198 he.h_name = p; in roken_gethostby()
267 strncpy(host, he->h_name, sizeof(host));
270 printf("%s\n", he->h_name);
Dhostent_find_fqdn.c47 const char *ret = he->h_name; in hostent_find_fqdn()
/netbsd/src/lib/libc/net/
Dgethnamaddr.c237 hent->h_name = NULL; in getanswer()
279 hent->h_name = bp; in getanswer()
282 qname = hent->h_name; in getanswer()
336 hent->h_name = bp; in getanswer()
388 hent->h_name = bp; in getanswer()
401 hent->h_name = bp; in getanswer()
415 if (strcasecmp(hent->h_name, bp) != 0) { in getanswer()
417 AskedForGot, hent->h_name, bp); in getanswer()
436 hent->h_name = bp; in getanswer()
479 if (!hent->h_name) { in getanswer()
[all …]
Dsethostent.c180 hent.h_name = NULL; /* XXX: gcc */ in _hf_gethtbyname2()
193 if (strcasecmp(hp->h_name, name) != 0) { in _hf_gethtbyname2()
205 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2()
246 HENT_SCOPY(hp->h_name, hent.h_name, ptr, len); in _hf_gethtbyname2()
/netbsd/src/external/bsd/ipf/dist/lib/
Dhostname.c32 if (hp != NULL && hp->h_name != NULL && in hostname()
33 *hp->h_name != '\0') { in hostname()
34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf)); in hostname()
/netbsd/src/external/bsd/atf/dist/test-programs/
Dcommon.sh38 for h_name in "${@}"; do
39 echo ${srcdir}/${h_name}
/netbsd/src/lib/libcompat/4.3/
Drexec.c86 *ahost = hp->h_name;
87 (void)ruserpass(hp->h_name, &name, &pass);
109 warn("Cannot connect to %s", hp->h_name);
/netbsd/src/usr.bin/config/
Dhash.c67 #define h_name h_name1 macro
219 if (hp->h_hash == h && strcmp(hp->h_name, s) == 0) in intern()
220 return (hp->h_name); in intern()
336 if (hp->h_name == nam1) in ht_lookup2()
380 rval += (*cbfunc)(hp->h_name, hp->h_value, arg); in ht_enumerate()
/netbsd/src/external/cddl/osnet/dist/common/ctf/
Dctf_hash.c120 hep->h_name = name; in ctf_hash_insert()
159 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)]; in ctf_hash_lookup()
160 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name); in ctf_hash_lookup()
/netbsd/src/external/bsd/openldap/dist/libraries/libldap/
Dutil-int.c626 strncpy( name, hp->h_name, namelen ); in ldap_pvt_get_hname()
636 strncpy( name, hp->h_name, namelen ); in ldap_pvt_get_hname()
809 name_len = strlen( src->h_name ) + 1; in copy_hostent()
833 AC_MEMCPY( tbuf, src->h_name, name_len ); in copy_hostent()
834 res->h_name = tbuf; tbuf+=name_len; in copy_hostent()
905 if( rc < 0 || hp == NULL || hp->h_name == NULL ) { in ldap_pvt_get_fqdn()
908 fqdn = LDAP_STRDUP( hp->h_name ); in ldap_pvt_get_fqdn()
/netbsd/src/external/bsd/ipf/dist/ipsend/
Darp.c94 if (!(ether_hostton(hp->h_name, (struct ether_addr *)ether)))
96 if (!(ether_hostton(hp->h_name, ether)))
/netbsd/src/usr.sbin/rpc.bootparamd/
Dbootparamd.c179 (void)strlcpy(askname, he->h_name, sizeof(askname)); in bootparamproc_whoami_1_svc()
253 (void)strlcpy(askname, he->h_name, sizeof(askname)); in bootparamproc_getfile_1_svc()
408 if (strcasecmp(hp->h_name, client) != 0) in lookup_bootparam()
410 canon = hp->h_name; in lookup_bootparam()
/netbsd/src/external/gpl2/xcvs/dist/lib/
Dgetaddrinfo.c175 if (he->h_name) in getaddrinfo()
176 cn = he->h_name; in getaddrinfo()
/netbsd/src/external/apache2/mDNSResponder/nss/
Dnss_mdnsd.c650 ctx->host.h_name = ctx->host.h_aliases[0] = NULL; in _mdns_hostent_init()
675 if ((ctx->host.h_name) && !strncmp(ctx->host.h_name, name, len) in _mdns_hostent_add_host()
676 && (strlen(ctx->host.h_name) == len)) { in _mdns_hostent_add_host()
691 ctx->host.h_name = ctx->next; in _mdns_hostent_add_host()
733 HENT_SCOPY(hp->h_name, chp->h_name, ptr, len); in _mdns_hostent_done()

1234