Home
last modified time | relevance | path

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

12345

/titanic_44/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c174 len += strlen(he->h_name) + 1; in copy_hostent()
200 n = strlen(he->h_name) + 1; in copy_hostent()
201 strcpy(cp, he->h_name); in copy_hostent()
202 hptr->h_name = cp; in copy_hostent()
245 if ((n = strlen(he->h_name) + 1) < (eob - cp)) { in copy_hostent()
246 strcpy(cp, he->h_name); in copy_hostent()
247 hptr->h_name = cp; in copy_hostent()
H A Dirp_ho.c177 if (ho->h_name != NULL && in ho_byname2()
178 strcmp(name, ho->h_name) == 0 && in ho_byname2()
232 if (ho->h_name != NULL && in ho_byaddr()
379 if (ho->h_name != NULL) in free_host()
380 free(ho->h_name); in free_host()
H A Dgethostent.c154 if (ns_samename(name, net_data->ho_last->h_name) == 1) in gethostbyname2_p()
315 DE_CONST(name, he.h_name); in getipnodebyname()
447 memput(he->h_name, strlen(he->h_name) + 1);
930 he->h_name = memget(strlen((he1 != NULL) ?
931 he1->h_name : he2->h_name) + 1);
932 if (he->h_name == NULL)
934 strcpy(he->h_name, (he1 != NULL) ? he1->h_name : he2->h_name);
1053 pvt->host.h_name = pvt->name;
1074 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);
/titanic_44/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';
603 strncasecmp(h_name, namep, namelen) == 0) {
655 hp->h_name = hp->h_aliases[0];
[all …]
/titanic_44/usr/src/cmd/ipf/lib/common/
H A Dhostname.c32 if (hp != NULL && hp->h_name != NULL &&
33 *hp->h_name != '\0') {
34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipaddr.c129 hp ? hp->h_name : inet_ntoa(ipaddr), in iplookup()
171 addname = hp->h_name; in ip6lookup()
357 static char h_name[MAXHOSTNAMELEN]; /* hostname */ in lgetipnodebyname() local
363 hp->h_name = h_name; in lgetipnodebyname()
364 h_name[0] = '\0'; in lgetipnodebyname()
365 strcpy(h_name, name); in lgetipnodebyname()
/titanic_44/usr/src/lib/libwrap/
H A Dsocket.c171 STRN_CPY(host->name, hp->h_name, sizeof(host->name));
196 } else if (STR_NE(host->name, hp->h_name)
206 host->name, STRING_LENGTH, hp->h_name);
239 STRING_LENGTH, hp->h_name);
/titanic_44/usr/src/lib/libbc/libc/net/
H A Drexec.c63 *ahost = hp->h_name; in rexec()
64 _ruserpass(hp->h_name, &name, &pass); in rexec()
81 perror(hp->h_name); in rexec()
/titanic_44/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()
/titanic_44/usr/src/lib/libresolv/
H A Dres_gethost.c112 host.h_name = bp;
162 host.h_name = bp;
188 host.h_name = bp;
324 (void) strcpy(hbuf, hp->h_name);
401 host.h_name = cp; in _gethtent()
446 if (strcasecmp(p->h_name, name) == 0)
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dfake-getnameinfo.c48 if (strlen(hp->h_name) >= hostlen) in getnameinfo()
51 strcpy(host, hp->h_name); in getnameinfo()
H A Dfake-getaddrinfo.c102 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) { in getaddrinfo()
/titanic_44/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c129 len = strlen(he->h_name) + 1;
130 host->h_name = buffer;
131 if (host->h_name + len >= limit)
133 (void) memcpy(host->h_name, he->h_name, len);
249 if (hp->h_name != NULL && *hp->h_name != '\0') { in ent2str()
250 if ((n = snprintf(s, l, " %s", hp->h_name)) >= l) in ent2str()
/titanic_44/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c860 if ((int)(inet_addr(he4->h_name)) != -1) { in __mapv4tov6()
873 host->h_name = buff_locp; in __mapv4tov6()
882 buff_locp -= (len = strlen(he4->h_name) + 1); in __mapv4tov6()
883 h_namep = he4->h_name; in __mapv4tov6()
887 host->h_name = buff_locp; in __mapv4tov6()
963 buff_locp -= (len = strlen(he6->h_name) + 1); in __mapv4tov6()
966 bcopy(he6->h_name, buff_locp, len); in __mapv4tov6()
967 host->h_name = buff_locp; in __mapv4tov6()
1103 buff_locp -= (len = strlen(he->h_name) + 1); in __mappedtov4()
1104 h_namep = he->h_name; in __mappedtov4()
[all …]
/titanic_44/usr/src/uts/common/sys/
H A Dhook.h82 char *h_name; /* name of this hook */ member
93 (x)->h_name = (r); \
/titanic_44/usr/src/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()
/titanic_44/usr/src/lib/libsocket/inet/
H A Dgetnameinfo.c155 dot = strchr(hp->h_name, '.'); in getnameinfo()
159 if (strlen(hp->h_name) + 1 > hostlen) { in getnameinfo()
163 (void) strcpy(host, hp->h_name); in getnameinfo()
/titanic_44/usr/src/uts/common/io/
H A Dhook.c1735 h->hi_hook.h_name); in hook_event_notify_register()
1812 h->hi_hook.h_name); in hook_event_notify_unregister()
1936 hook_event_notify_run(hei, hfi, event, h->h_name, HN_REGISTER); in hook_register()
1977 (strcmp(h->h_name, in hook_insert()
1983 (strcmp(h->h_name, in hook_insert()
2208 hook_event_notify_run(hei, hfi, event, h->h_name, HN_UNREGISTER); in hook_unregister()
2234 if (strcmp(hi->hi_hook.h_name, name) == 0) in hook_find_byname()
2258 return (hook_find_byname(&hei->hei_head, h->h_name)); in hook_find()
2281 ASSERT(src->h_name != NULL); in hook_copy()
2290 len = strlen(src->h_name); in hook_copy()
[all …]
/titanic_44/usr/src/cmd/backup/lib/
H A Dmyrcmd.c111 numhp.h_name = numhostname; in myrcmd()
120 *ahost = hp->h_name; in myrcmd()
207 "%s: %s\n", hp->h_name, strerror(saverr)); in myrcmd()
/titanic_44/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()
/titanic_44/usr/src/lib/print/libhttp-core/common/
H A Dhttp-addr.c212 strlcpy(name, host->h_name, namelen); in httpAddrLookup()
307 host_ip.h_name = (char *)name; in httpGetHostByName()
343 host_ip.h_name = (char *)name; in httpGetHostByName()
/titanic_44/usr/src/lib/nsswitch/ldap/common/
H A Dgethostent.c73 char *cname = NULL, *h_name = NULL; in _nss_ldap_hosts2str_int() local
182 h_name = cname; in _nss_ldap_hosts2str_int()
185 } else if (strcasecmp(cname, h_name) != 0) { in _nss_ldap_hosts2str_int()
211 strcasecmp(name, h_name) != 0) { in _nss_ldap_hosts2str_int()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c271 if ((inet_pton(AF_INET6, host->h_name, &ipv6addr) > 0) && in setpeer()
277 (void) strlcpy(hostname, host->h_name, in setpeer()
417 if ((inet_pton(AF_INET6, hp->h_name, &ipv6addr) > 0) && in put()
423 (void) strlcpy(hostname, hp->h_name, in put()
537 if ((inet_pton(AF_INET6, hp->h_name, &ipv6addr) > 0) && in get()
543 (void) strlcpy(hostname, hp->h_name, in get()
/titanic_44/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()

12345