/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | common.c | 44 char hname[MAXHOSTNAMELEN+1]; in getnet() local 63 if (i > (int)sizeof (hname)-1) /* name too long */ in getnet() 65 (void) memmove(hname, name, i); in getnet() 66 hname[i] = '\0'; in getnet() 68 name = hname; in getnet()
|
/illumos-gate/usr/src/lib/nsswitch/mdns/common/ |
H A D | mdns_common.c | 255 char hname[MAXDNAME]; in _nss_mdns_querybyname() local 273 (void) snprintf(hname, sizeof (hname), "%s.%s", in _nss_mdns_querybyname() 276 (void) strlcpy(hname, name, sizeof (hname)); in _nss_mdns_querybyname() 281 rc = _nss_mdns_queryrecord(hname, rrclass, rrtype, in _nss_mdns_querybyname() 695 char *hname; in _nss_mdns_gethost_withttl() local 718 hname = (char *)arg.key.ipnode.name; in _nss_mdns_gethost_withttl() 722 hname = (char *)arg.key.name; in _nss_mdns_gethost_withttl() 734 " af:%d hname:%s", af, hname); in _nss_mdns_gethost_withttl() 736 if (_nss_mdns_querybyname(be, hname, af, &qdata) == NSS_SUCCESS) { in _nss_mdns_gethost_withttl()
|
H A D | gethostent.c | 44 char *hname; local 49 hname = (char *)qdata.argp->key.name; 52 return (_nss_mdns_querybyname(be, hname, AF_INET, &qdata));
|
H A D | gethostent6.c | 45 char *hname = (char *)argp->key.ipnode.name; local 52 return (_nss_mdns_querybyname(be, hname, af, &qdata));
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | gethostname.c | 45 gethostname(char *hname, int hlen) argument 56 (void) strncpy(hname, u.nodename, hlen);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/klmmod/ |
H A D | klmmod.c | 319 char hname[NLM_MAXNAMELEN]; in nlm_host_dcmd() local 339 if (mdb_readstr(hname, sizeof (hname), in nlm_host_dcmd() 341 strlcpy(hname, "?", sizeof (hname)); in nlm_host_dcmd() 346 nlm_host_print(addr, &nh, hname, haddr, flags); in nlm_host_dcmd() 358 mdb_printf(" Name: %s\n", hname); in nlm_host_dcmd() 374 char *hname, char *haddr, uint_t flags) in nlm_host_print() argument 385 addr, hname_width, hname, in nlm_host_print()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_common.kshlib | 101 typeset hname=$(hostname) 103 hname=$hname:$(zonename) 106 grep "$cmd \[user $uid ($user) on $hname\]" $NEW_HISTORY >/dev/null \
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | gethostent6.c | 117 char hname[3 * MAXHOSTNAMELEN]; in getbyname() local 123 (void) strcpy(hname, hostname); in getbyname() 124 if (chophostdomain(hname, host, domain) == -1) { in getbyname()
|
H A D | gethostent.c | 298 char hname[3 * MAXHOSTNAMELEN]; in getbyname() local 304 (void) strcpy(hname, hostname); in getbyname() 306 if (chophostdomain(hname, host, domain) == -1) { in getbyname()
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 507 char *cp, *hname; in i_ipadm_ip4_dbline2nvl() local 515 hname = value; /* local hostname */ in i_ipadm_ip4_dbline2nvl() 516 cp = strchr(hname, ','); in i_ipadm_ip4_dbline2nvl() 519 (void) strlcpy(ipaddr.ipadm_static_aname, hname, in i_ipadm_ip4_dbline2nvl() 540 char *cp, *hname; in i_ipadm_ip6_dbline2nvl() local 548 hname = value; /* local hostname */ in i_ipadm_ip6_dbline2nvl() 549 cp = strchr(hname, ','); in i_ipadm_ip6_dbline2nvl() 552 (void) strlcpy(ipaddr.ipadm_static_aname, hname, in i_ipadm_ip6_dbline2nvl()
|
/illumos-gate/usr/src/cmd/ptools/psig/ |
H A D | psig.c | 296 char hname[MAX_SYMNAMLEN]; in look() local 319 Plookup_by_addr(Pr, haddr, hname, in look() 320 sizeof (hname), &hsym) == 0) in look() 321 (void) printf("\t%-8s", hname); in look()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modhash.c | 427 char *hname, /* descriptive name for hash */ in mod_hash_create_extended() argument 437 ASSERT(hname && keycmp && hash_alg && vdtor && kdtor); in mod_hash_create_extended() 442 mod_hash->mh_name = kmem_alloc(strlen(hname) + 1, sleep); in mod_hash_create_extended() 447 (void) strcpy(mod_hash->mh_name, hname); in mod_hash_create_extended()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_ho.c | 688 const char *hname; in gethostans() local 716 hname = pvt->host.h_name = NULL; in gethostans() 756 hname = bp; in gethostans() 820 hname = bp; in gethostans() 884 hname = bp; in gethostans() 897 if (ns_samename(hname, bp) != 1) { in gethostans() 929 hname = bp; in gethostans()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcpv6.c | 545 char *hname; in show_address() local 551 hname = addrtoname(AF_INET6, &addr); in show_address() 552 if (strcmp(hname, addrstr) == 0) { in show_address() 557 "%s = %s (%s)", addrname, addrstr, hname); in show_address()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | ftp.c | 1654 char hname[INET6_ADDRSTRLEN]; in initconn() local 1665 hname, sizeof (hname)) != NULL) { in initconn() 1667 hname, htons(data_addr.sin6_port)); in initconn()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | commands.c | 2449 char hname[MAXHOSTNAMELEN + 1]; in parse_input() local 2494 hname[i++] = *cp++; in parse_input() 2498 hname[i] = '\0'; in parse_input() 2507 hostname_list[gw_count] = strdup(hname); in parse_input()
|
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfs_clnt.h | 600 char hname[16]; /* first 16 bytes of hostname */ member
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon.c | 529 static char hname[MAXHOSTNAMELEN + MAX_INETA + 3]; local 543 sprintf(hname, "%.*s[%s]", MAXHOSTNAMELEN, hp->h_name, 545 return hname;
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | deliver.c | 4509 char hname[MAXNAME]; local 4518 expand("\201k", hname, sizeof(hname), e); 4519 at = hname;
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_vnops.c | 5066 (void) strncpy(nfs_owner.hname, uts_nodename(), in nfs_shrlock() 5067 sizeof (nfs_owner.hname)); in nfs_shrlock()
|
H A D | nfs3_vnops.c | 6734 (void) strncpy(nfs_owner.hname, uts_nodename(), in nfs3_shrlock() 6735 sizeof (nfs_owner.hname)); in nfs3_shrlock()
|