Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c170 len += strlen(he->h_name) + 1; in copy_hostent()
196 n = strlen(he->h_name) + 1; in copy_hostent()
197 strcpy(cp, he->h_name); in copy_hostent()
198 hptr->h_name = cp; in copy_hostent()
241 if ((n = strlen(he->h_name) + 1) < (eob - cp)) { in copy_hostent()
242 strcpy(cp, he->h_name); in copy_hostent()
243 hptr->h_name = cp; in copy_hostent()
H A Dirp_ho.c173 if (ho->h_name != NULL && in ho_byname2()
174 strcmp(name, ho->h_name) == 0 && in ho_byname2()
228 if (ho->h_name != NULL && in ho_byaddr()
375 if (ho->h_name != NULL) in free_host()
376 free(ho->h_name); in free_host()
H A Dgethostent.c150 if (ns_samename(name, net_data->ho_last->h_name) == 1) in gethostbyname2_p()
311 DE_CONST(name, he.h_name); in getipnodebyname()
443 memput(he->h_name, strlen(he->h_name) + 1);
926 he->h_name = memget(strlen((he1 != NULL) ?
927 he1->h_name : he2->h_name) + 1);
928 if (he->h_name == NULL)
930 strcpy(he->h_name, (he1 != NULL) ? he1->h_name : he2->h_name);
1049 pvt->host.h_name = pvt->name;
1070 strncpy(hname2, hp->h_name, MAXDNAME);
H A Dgetnameinfo.c202 p = strchr(hp->h_name, '.');
205 if (strlen(hp->h_name) + 1 > hostlen)
207 strcpy(host, hp->h_name);
H A Ddns_ho.c716 hname = pvt->host.h_name = NULL; in gethostans()
755 pvt->host.h_name = bp; in gethostans()
759 qname = pvt->host.h_name; in gethostans()
819 pvt->host.h_name = bp; in gethostans()
883 pvt->host.h_name = bp; in gethostans()
928 pvt->host.h_name = bp; in gethostans()
983 if (pvt->host.h_name == NULL) { in gethostans()
988 pvt->host.h_name = bp; in gethostans()
997 if (pvt->host.h_name == NULL) { in gethostans()
1003 strdup(pvt->host.h_name); in gethostans()
H A Dlcl_ho.c230 nn = ns_namelen(hp->h_name); in ho_byname2()
231 if (strncasecmp(hp->h_name, name, Max(n, nn)) == 0) in ho_byname2()
402 pvt->host.h_name = cp; in ho_next()
531 if ((hp->h_name == NULL) || (hp->h_name[0] == 0) || in ho_addrinfo()
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgethostent.c349 char *h_name; local
385 h_name = NULL;
422 if (nhosts && strcasestr(instr, h_name) == 0) {
459 (void) memcpy(abuf, h_name, h_namelen);
549 h_name = malloc(namelen + 1);
550 if (h_name == NULL) {
555 (void) memcpy(h_name, namep, namelen);
556 h_name[namelen] = '\0';
655 hp->h_name = hp->h_aliases[0];
671 if (h_name)
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dhostname.c30 if (hp != NULL && hp->h_name != NULL &&
31 *hp->h_name != '\0') {
32 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
/illumos-gate/usr/src/common/ctf/
H A Dctf_hash.c118 hep->h_name = name; in ctf_hash_insert()
157 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)]; in ctf_hash_lookup()
158 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name); in ctf_hash_lookup()
194 ctsp = &fp->ctf_str[CTF_NAME_STID(hep->h_name)]; in ctf_hash_dump()
195 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name); in ctf_hash_dump()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipaddr.c150 hp ? hp->h_name : inet_ntoa(ipaddr), in iplookup()
196 addname = hp->h_name; in ip6lookup()
381 static char h_name[MAXHOSTNAMELEN]; /* hostname */ in lgetipnodebyname() local
387 hp->h_name = h_name; in lgetipnodebyname()
388 h_name[0] = '\0'; in lgetipnodebyname()
389 strcpy(h_name, name); in lgetipnodebyname()
/illumos-gate/usr/src/lib/libwrap/
H A Dsocket.c169 STRN_CPY(host->name, hp->h_name, sizeof(host->name));
194 } else if (STR_NE(host->name, hp->h_name)
204 host->name, STRING_LENGTH, hp->h_name);
237 STRING_LENGTH, hp->h_name);
/illumos-gate/usr/src/lib/libresolv/
H A Dres_gethost.c115 host.h_name = bp;
165 host.h_name = bp;
191 host.h_name = bp;
326 (void) strcpy(hbuf, hp->h_name);
403 host.h_name = cp; in _gethtent()
448 if (strcasecmp(p->h_name, name) == 0)
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dprint-job.c134 if (is_localhost(he->h_name) != 0) in ipp_print_job()
140 else if (he->h_name != NULL) in ipp_print_job()
145 he->h_name); in ipp_print_job()
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c127 len = strlen(he->h_name) + 1; in ent2result()
128 host->h_name = buffer; in ent2result()
129 if (host->h_name + len >= limit) in ent2result()
131 (void) memcpy(host->h_name, he->h_name, len); in ent2result()
241 if (hp->h_name != NULL && *hp->h_name != '\0') { in ent2str()
242 if ((n = snprintf(s, l, " %s", hp->h_name)) >= l) in ent2str()
H A Dgethostent6.c102 if (h == 0 || h->h_name == 0) { in cloneName()
107 len = strlen(h->h_name); in cloneName()
114 (void) memcpy(name, h->h_name, len+1); in cloneName()
402 v6he.h_name = v6Name;
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c890 if ((int)(inet_addr(he4->h_name)) != -1) { in __mapv4tov6()
903 host->h_name = buff_locp; in __mapv4tov6()
912 buff_locp -= (len = strlen(he4->h_name) + 1); in __mapv4tov6()
913 h_namep = he4->h_name; in __mapv4tov6()
917 host->h_name = buff_locp; in __mapv4tov6()
993 buff_locp -= (len = strlen(he6->h_name) + 1); in __mapv4tov6()
996 bcopy(he6->h_name, buff_locp, len); in __mapv4tov6()
997 host->h_name = buff_locp; in __mapv4tov6()
1133 buff_locp -= (len = strlen(he->h_name) + 1); in __mappedtov4()
1134 h_namep = he->h_name; in __mappedtov4()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dhook.h82 char *h_name; /* name of this hook */ member
93 (x)->h_name = (r); \
/illumos-gate/usr/src/uts/common/io/
H A Dhook.c1751 h->hi_hook.h_name); in hook_event_notify_register()
1828 h->hi_hook.h_name); in hook_event_notify_unregister()
1993 (strcmp(h->h_name, in hook_insert()
1999 (strcmp(h->h_name, in hook_insert()
2250 if (strcmp(hi->hi_hook.h_name, name) == 0) in hook_find_byname()
2297 ASSERT(src->h_name != NULL); in hook_copy()
2306 len = strlen(src->h_name); in hook_copy()
2308 (void) strcpy(dst->h_name, src->h_name); in hook_copy()
2367 hi->hi_hook.h_name, "hook", KSTAT_TYPE_NAMED, in hook_init_kstats()
2422 if (hi->hi_hook.h_name != NULL) { in hook_int_free()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetnameinfo.c153 dot = strchr(hp->h_name, '.'); in getnameinfo()
157 if (strlen(hp->h_name) + 1 > hostlen) { in getnameinfo()
161 (void) strcpy(host, hp->h_name); in getnameinfo()
/illumos-gate/usr/src/cmd/mdb/common/modules/hook/
H A Dhook.c70 if (!h->h_name) { in hooklist()
75 (uintptr_t)h->h_name) == -1) { in hooklist()
76 mdb_warn("couldn't read list role at %p", h->h_name); in hooklist()
/illumos-gate/usr/src/cmd/backup/lib/
H A Dmyrcmd.c109 numhp.h_name = numhostname; in myrcmd()
118 *ahost = hp->h_name; in myrcmd()
205 "%s: %s\n", hp->h_name, strerror(saverr)); in myrcmd()
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c210 strlcpy(name, host->h_name, namelen); in httpAddrLookup()
305 host_ip.h_name = (char *)name; in httpGetHostByName()
341 host_ip.h_name = (char *)name; in httpGetHostByName()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgethostent.c71 char *cname = NULL, *h_name = NULL; in _nss_ldap_hosts2str_int() local
180 h_name = cname; in _nss_ldap_hosts2str_int()
183 } else if (strcasecmp(cname, h_name) != 0) { in _nss_ldap_hosts2str_int()
209 strcasecmp(name, h_name) != 0) { in _nss_ldap_hosts2str_int()
/illumos-gate/usr/src/lib/auditd_plugins/remote/
H A Daudit_remote.c295 hostentry->h_name, hostentry->h_length, in parsehosts()
599 current_host->host->h_name, attempts + 1, retries)); in auditd_plugin()
617 "rsn:%d\n", current_host->host->h_name, err_rsn)); in auditd_plugin()
622 "rsn:%d\n", current_host->host->h_name, err_rsn)); in auditd_plugin()
632 current_host->host->h_name, in auditd_plugin()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c349 if ((inet_pton(AF_INET6, host->h_name, &ipv6addr) > 0) && in setpeer()
355 (void) strlcpy(hostname, host->h_name, in setpeer()
486 if ((inet_pton(AF_INET6, hp->h_name, &ipv6addr) > 0) && in put()
492 (void) strlcpy(hostname, hp->h_name, in put()
610 if ((inet_pton(AF_INET6, hp->h_name, &ipv6addr) > 0) && in get()
616 (void) strlcpy(hostname, hp->h_name, in get()

1234