/illumos-gate/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) [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/dfshares/ |
H A D | dfshares.c | 65 char hostbuf[256]; local 85 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { 89 pr_exports(hostbuf);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/dfmounts/ |
H A D | dfmounts.c | 71 char hostbuf[256]; local 97 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { 101 pr_mounts(hostbuf);
|
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/ |
H A D | straddr.c | 177 char hostbuf[BUFSIZ]; /* points to list of host names */ local 203 nhost = searchhost(netconfigp, hostname, FIELD1, hostbuf); 254 hostname = strtok_r(hostbuf, ",", &nexttok); 408 searchhost(struct netconfig *netconfigp, char *token, int field, char *hostbuf) argument 433 (void) strcpy(hostbuf, LOCALHOST); 490 (void) strcpy(hostbuf, retstr); 498 (void) strcat(hostbuf, ","); 500 (void) strcat(hostbuf, retstr);
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yppoll.c | 342 static char hostbuf[256]; local 376 strcpy(hostbuf, inet_ntoa(sa->sin_addr)); 378 sprintf(hostbuf, "%s", nhs->h_hostservs->h_host); 380 host = hostbuf;
|
/illumos-gate/usr/src/cmd/fs.d/nfs/showmount/ |
H A D | showmount.c | 80 char *host, hostbuf[256]; local 114 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { 118 host = hostbuf;
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_gethost.c | 54 static char hostbuf[BUFSIZ+1]; variable 104 bp = hostbuf; 105 buflen = sizeof (hostbuf); 198 if (bp + n >= &hostbuf[sizeof (hostbuf)]) { 381 if ((p = fgets(hostbuf, BUFSIZ, hostf)) == NULL)
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent_r.c | 229 cp = hdptr->hostbuf; 230 eob = hdptr->hostbuf + sizeof(hdptr->hostbuf);
|
H A D | dns_ho.c | 129 char hostbuf[8*1024]; member in struct:pvt 732 bp = pvt->hostbuf; 733 ep = pvt->hostbuf + sizeof(pvt->hostbuf); 940 if (bp + n > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) { 1051 if (bp + addrlen > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1])
|
H A D | lcl_ho.c | 111 char hostbuf[8*1024]; member in struct:pvt 339 bufp = pvt->hostbuf; 340 bufsiz = sizeof pvt->hostbuf;
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | daemon.c | 3200 ** hostbuf -- a place to return the name of this host. 3201 ** size -- the size of hostbuf. 3211 myhostname(hostbuf, size) 3212 char hostbuf[]; 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, ' [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 | 1186 ** hostbuf -- buffer for hostname (expand FallbackSmartHost) (out) 1187 ** hbsz -- size of hostbuf 1197 should_try_fbsh(e, tried_fallbacksmarthost, hostbuf, hbsz, status) 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)); [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, ": ");
|
/illumos-gate/usr/src/lib/libexacct/common/ |
H A D | exacct_ops.c | 966 char hostbuf[SYSINFO_BUFSIZE]; local 974 bzero(hostbuf, SYSINFO_BUFSIZE); 976 (void) sysinfo(SI_HOSTNAME, hostbuf, SYSINFO_BUFSIZE); 985 hostbuf, strlen(hostbuf)) == -1) {
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | client.c | 69 char hostbuf[BUFSIZ]; local 74 if ((hp = gethostbyname_r(host, &hrec, hostbuf, 75 sizeof (hostbuf), &herrno)) == NULL) {
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | localaddr.c | 1068 char hostbuf[NI_MAXHOST]; local 1074 err = getnameinfo (sa, len, hostbuf, (socklen_t) sizeof (hostbuf), 1082 printf ("addr %s\n", hostbuf);
|
/illumos-gate/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 | 527 static char hostbuf[MAXHOSTNAMELEN+1]; local 544 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1); 545 hostbuf[MAXHOSTNAMELEN] = '\0'; 546 return hostbuf;
|