/titanic_44/usr/src/cmd/ipf/lib/common/ |
H A D | hostname.c | 18 static char hostbuf[MAXHOSTNAMELEN+1]; local 34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf)); 35 hostbuf[sizeof(hostbuf) - 1] = '\0'; 36 return hostbuf; 42 strncpy(hostbuf, np->n_name, sizeof(hostbuf)); 43 hostbuf[sizeof(hostbuf) - 1] = '\0'; 44 return hostbuf; 53 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1); 54 hostbuf[MAXHOSTNAMELEN] = '\0'; 55 return hostbuf;
|
/titanic_44/usr/src/lib/nametoaddr/straddr/common/ |
H A D | straddr.c | 177 char hostbuf[BUFSIZ]; /* points to list of host names */ in _netdir_getbyaddr() local 203 nhost = searchhost(netconfigp, hostname, FIELD1, hostbuf); in _netdir_getbyaddr() 254 hostname = strtok_r(hostbuf, ",", &nexttok); in _netdir_getbyaddr() 408 searchhost(struct netconfig *netconfigp, char *token, int field, char *hostbuf) in searchhost() argument 433 (void) strcpy(hostbuf, LOCALHOST); in searchhost() 490 (void) strcpy(hostbuf, retstr); in searchhost() 498 (void) strcat(hostbuf, ","); in searchhost() 500 (void) strcat(hostbuf, retstr); in searchhost()
|
/titanic_44/usr/src/cmd/fs.d/nfs/dfshares/ |
H A D | dfshares.c | 65 char hostbuf[256]; in main() local 85 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main() 89 pr_exports(hostbuf); in main()
|
/titanic_44/usr/src/cmd/fs.d/nfs/dfmounts/ |
H A D | dfmounts.c | 71 char hostbuf[256]; in main() local 97 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main() 101 pr_mounts(hostbuf); in main()
|
/titanic_44/usr/src/cmd/fs.d/nfs/showmount/ |
H A D | showmount.c | 80 char *host, hostbuf[256]; in main() local 114 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main() 118 host = hostbuf; in main()
|
/titanic_44/usr/src/lib/libresolv/ |
H A D | res_gethost.c | 51 static char hostbuf[BUFSIZ+1]; variable 101 bp = hostbuf; 102 buflen = sizeof (hostbuf); 195 if (bp + n >= &hostbuf[sizeof (hostbuf)]) { 379 if ((p = fgets(hostbuf, BUFSIZ, hostf)) == NULL) in _gethtent()
|
/titanic_44/usr/src/cmd/ypcmd/ |
H A D | yppoll.c | 342 static char hostbuf[256]; in getypserv() local 376 strcpy(hostbuf, inet_ntoa(sa->sin_addr)); in getypserv() 378 sprintf(hostbuf, "%s", nhs->h_hostservs->h_host); in getypserv() 380 host = hostbuf; in getypserv()
|
/titanic_44/usr/src/cmd/ssh/sshd/ |
H A D | auth-rhosts.c | 53 char hostbuf[1024], userbuf[1024], dummy[1024], *host, *user, *cp; in check_rhosts_file() local 73 hostbuf, userbuf, dummy)) { in check_rhosts_file() 92 host = hostbuf; in check_rhosts_file()
|
/titanic_44/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent_r.c | 229 cp = hdptr->hostbuf; in copy_hostent() 230 eob = hdptr->hostbuf + sizeof(hdptr->hostbuf); in copy_hostent()
|
H A D | dns_ho.c | 129 char hostbuf[8*1024]; member 732 bp = pvt->hostbuf; in gethostans() 733 ep = pvt->hostbuf + sizeof(pvt->hostbuf); in gethostans() 940 if (bp + n > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) { in gethostans() 1051 if (bp + addrlen > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) in add_hostent()
|
H A D | lcl_ho.c | 111 char hostbuf[8*1024]; member 339 bufp = pvt->hostbuf; in ho_next() 340 bufsiz = sizeof pvt->hostbuf; in ho_next()
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | daemon.c | 3211 myhostname(hostbuf, size) in myhostname() argument 3212 char hostbuf[]; in myhostname() 3217 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0') 3218 (void) sm_strlcpy(hostbuf, "localhost", size); 3219 hp = sm_gethostbyname(hostbuf, InetMode); 3229 hp = sm_gethostbyname(hostbuf, AF_INET); 3234 if (strchr(hp->h_name, '.') != NULL || strchr(hostbuf, '.') == NULL) 3235 (void) cleanstrcpy(hostbuf, hp->h_name, size); 3238 if (strchr(hostbuf, '.') == NULL) 3245 strlen(domainname) + strlen(hostbuf) + 1 < size) [all …]
|
H A D | savemail.c | 1700 char hostbuf[BUFSIZ]; local 1734 if (i >= sizeof(hostbuf)) 1736 (void) sm_strlcpy(hostbuf, at + 1, sizeof(hostbuf)); 1737 hostbuf[i - 1] = '\0'; 1741 if (getmxrr(hostbuf, mxhosts, NULL, false, 1752 strlen(comma + 2) < sizeof(hostbuf)) 1753 (void) sm_strlcpy(hostbuf, comma + 2, sizeof(hostbuf));
|
H A D | deliver.c | 1197 should_try_fbsh(e, tried_fallbacksmarthost, hostbuf, hbsz, status) in should_try_fbsh() argument 1200 char *hostbuf; 1214 expand(FallbackSmartHost, hostbuf, hbsz, e); 1215 if (!wordinclass(hostbuf, 'w')) 1219 hostbuf); 2019 static char hostbuf[MAXNAME + 1]; local 2066 (void) sm_strlcpy(hostbuf, mxhosts[hostnum], 2067 sizeof(hostbuf)); 2074 CurHostName = hostbuf; 2075 mci = mci_get(hostbuf, m); [all …]
|
H A D | main.c | 3486 static char hostbuf[48]; local 3488 if (hostbuf[0] == '\0') 3492 hp = myhostname(hostbuf, sizeof(hostbuf)); 3502 (void) sm_strlcpyn(buf, sizeof(buf), 2, hostbuf, ": ");
|
/titanic_44/usr/src/lib/libexacct/common/ |
H A D | exacct_ops.c | 966 char hostbuf[SYSINFO_BUFSIZE]; in write_header() local 974 bzero(hostbuf, SYSINFO_BUFSIZE); in write_header() 976 (void) sysinfo(SI_HOSTNAME, hostbuf, SYSINFO_BUFSIZE); in write_header() 985 hostbuf, strlen(hostbuf)) == -1) { in write_header()
|
/titanic_44/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 69 char hostbuf[BUFSIZ]; in init_socket() local 74 if ((hp = gethostbyname_r(host, &hrec, hostbuf, in init_socket() 75 sizeof (hostbuf), &herrno)) == NULL) { in init_socket()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | localaddr.c | 1068 char hostbuf[NI_MAXHOST]; in print_addr() local 1074 err = getnameinfo (sa, len, hostbuf, (socklen_t) sizeof (hostbuf), in print_addr() 1082 printf ("addr %s\n", hostbuf); in print_addr()
|
/titanic_44/usr/src/cmd/ipf/tools/ |
H A D | ipfstat.c | 1787 static char hostbuf[MAXHOSTNAMELEN+1]; local 1794 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1); 1795 hostbuf[MAXHOSTNAMELEN] = '\0'; 1796 return hostbuf;
|
H A D | ipmon.c | 531 static char hostbuf[MAXHOSTNAMELEN+1]; local 548 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1); 549 hostbuf[MAXHOSTNAMELEN] = '\0'; 550 return hostbuf;
|