Searched refs:hostbuf (Results 1 - 21 of 21) sorted by relevance

/opensolaris-onvv-gate/usr/src/cmd/ipf/lib/common/
H A Dhostname.c18 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...]
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/
H A Dinet.c80 static char hostbuf[MAXHOSTNAMELEN]; local
88 strncpy(hostbuf, result->ai_canonname, sizeof(hostbuf));
89 hostbuf[sizeof(hostbuf) - 1] = '\0';
91 return hostbuf;
105 char hostbuf[NI_MAXHOST]; local
114 if (getnameinfo((struct sockaddr *)ss, SOCK_LEN(*ss), hostbuf,
115 sizeof(hostbuf), NULL, 0, NI_NAMEREQD) == 0) {
116 strncpy(hostname, hostbuf, hostle
[all...]
/opensolaris-onvv-gate/usr/src/cmd/fs.d/nfs/dfshares/
H A Ddfshares.c65 char hostbuf[256]; local
85 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) {
89 pr_exports(hostbuf);
/opensolaris-onvv-gate/usr/src/cmd/fs.d/nfs/dfmounts/
H A Ddfmounts.c71 char hostbuf[256]; local
97 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) {
101 pr_mounts(hostbuf);
/opensolaris-onvv-gate/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c176 char hostbuf[BUFSIZ]; /* points to list of host names */ local
202 nhost = searchhost(netconfigp, hostname, FIELD1, hostbuf);
253 hostname = strtok_r(hostbuf, ",", &nexttok);
403 searchhost(struct netconfig *netconfigp, char *token, int field, char *hostbuf) argument
435 (void) strcpy(hostbuf, myname);
492 (void) strcpy(hostbuf, retstr);
500 (void) strcat(hostbuf, ",");
502 (void) strcat(hostbuf, retstr);
/opensolaris-onvv-gate/usr/src/cmd/ssh/sshd/
H A Dauth-rhosts.c53 char hostbuf[1024], userbuf[1024], dummy[1024], *host, *user, *cp; local
73 hostbuf, userbuf, dummy)) {
92 host = hostbuf;
/opensolaris-onvv-gate/usr/src/cmd/fs.d/nfs/showmount/
H A Dshowmount.c80 char *host, hostbuf[256]; local
114 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) {
118 host = hostbuf;
/opensolaris-onvv-gate/usr/src/cmd/ypcmd/
H A Dyppoll.c342 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;
/opensolaris-onvv-gate/usr/src/lib/libresolv/
H A Dres_gethost.c51 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)
/opensolaris-onvv-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c229 cp = hdptr->hostbuf;
230 eob = hdptr->hostbuf + sizeof(hdptr->hostbuf);
H A Ddns_ho.c129 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 Dlcl_ho.c111 char hostbuf[8*1024]; member in struct:pvt
339 bufp = pvt->hostbuf;
340 bufsiz = sizeof pvt->hostbuf;
/opensolaris-onvv-gate/usr/src/cmd/sendmail/src/
H A Ddaemon.c3200 ** 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 Dsavemail.c1700 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 Ddeliver.c1186 ** 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 Dmain.c3486 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, ": ");
/opensolaris-onvv-gate/usr/src/lib/libexacct/common/
H A Dexacct_ops.c966 char hostbuf[SYSINFO_BUFSIZE]; local
974 bzero(hostbuf, SYSINFO_BUFSIZE);
976 (void) sysinfo(SI_HOSTNAME, hostbuf, SYSINFO_BUFSIZE);
985 hostbuf, strlen(hostbuf)) == -1) {
/opensolaris-onvv-gate/usr/src/lib/libkmf/libkmf/common/
H A Dclient.c69 char hostbuf[BUFSIZ]; local
74 if ((hp = gethostbyname_r(host, &hrec, hostbuf,
75 sizeof (hostbuf), &herrno)) == NULL) {
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c1068 char hostbuf[NI_MAXHOST]; local
1074 err = getnameinfo (sa, len, hostbuf, (socklen_t) sizeof (hostbuf),
1082 printf ("addr %s\n", hostbuf);
/opensolaris-onvv-gate/usr/src/cmd/ipf/tools/
H A Dipfstat.c1755 static char hostbuf[MAXHOSTNAMELEN+1]; local
1762 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1);
1763 hostbuf[MAXHOSTNAMELEN] = '\0';
1764 return hostbuf;
H A Dipmon.c524 static char hostbuf[MAXHOSTNAMELEN+1]; local
541 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1);
542 hostbuf[MAXHOSTNAMELEN] = '\0';
543 return hostbuf;

Completed in 207 milliseconds