Home
last modified time | relevance | path

Searched refs:hostbuf (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/cmd/ipf/lib/
H A Dhostname.c16 static char hostbuf[MAXHOSTNAMELEN+1]; local
32 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
33 hostbuf[sizeof(hostbuf) - 1] = '\0';
34 return hostbuf;
40 strncpy(hostbuf, np->n_name, sizeof(hostbuf));
41 hostbuf[sizeof(hostbuf) - 1] = '\0';
42 return hostbuf;
51 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1);
52 hostbuf[MAXHOSTNAMELEN] = '\0';
53 return hostbuf;
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c177 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()
/illumos-gate/usr/src/cmd/fs.d/nfs/dfshares/
H A Ddfshares.c66 char hostbuf[256]; in main() local
84 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main()
88 pr_exports(hostbuf); in main()
/illumos-gate/usr/src/cmd/fs.d/nfs/dfmounts/
H A Ddfmounts.c70 char hostbuf[256]; in main() local
96 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main()
100 pr_mounts(hostbuf); in main()
/illumos-gate/usr/src/cmd/fs.d/nfs/showmount/
H A Dshowmount.c81 char *host, hostbuf[256]; in main() local
114 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main()
118 host = hostbuf; in main()
/illumos-gate/usr/src/lib/libresolv/
H A Dres_gethost.c54 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) in _gethtent()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dyppoll.c340 static char hostbuf[256]; in getypserv() local
374 strcpy(hostbuf, inet_ntoa(sa->sin_addr)); in getypserv()
376 sprintf(hostbuf, "%s", nhs->h_hostservs->h_host); in getypserv()
378 host = hostbuf; in getypserv()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c225 cp = hdptr->hostbuf; in copy_hostent()
226 eob = hdptr->hostbuf + sizeof(hdptr->hostbuf); in copy_hostent()
H A Ddns_ho.c125 char hostbuf[8*1024]; member
728 bp = pvt->hostbuf; in gethostans()
729 ep = pvt->hostbuf + sizeof(pvt->hostbuf); in gethostans()
936 if (bp + n > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) { in gethostans()
1047 if (bp + addrlen > &pvt->hostbuf[sizeof(pvt->hostbuf) - 1]) in add_hostent()
H A Dlcl_ho.c107 char hostbuf[8*1024]; member
335 bufp = pvt->hostbuf; in ho_next()
336 bufsiz = sizeof pvt->hostbuf; in ho_next()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddaemon.c3211 myhostname(hostbuf, size) in myhostname() argument
3212 char hostbuf[]; in myhostname()
3217 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3238 if (strchr(hostbuf, '.') == NULL)
3255 if (strchr(hostbuf, '.') == NULL)
3264 hostbuf[size - 1] = '\0';
3279 if (strchr(hostbuf, '.') == NULL &&
3284 hostbuf);
3286 hostbuf);
3292 hostbuf);
[all …]
H A Dsavemail.c1702 char hostbuf[BUFSIZ]; local
1736 if (i >= sizeof(hostbuf))
1738 (void) sm_strlcpy(hostbuf, at + 1, sizeof(hostbuf));
1739 hostbuf[i - 1] = '\0';
1743 if (getmxrr(hostbuf, mxhosts, NULL, false,
1754 strlen(comma + 2) < sizeof(hostbuf))
1755 (void) sm_strlcpy(hostbuf, comma + 2, sizeof(hostbuf));
H A Ddeliver.c1200 char *hostbuf;
1219 hostbuf);
2067 sizeof(hostbuf));
2074 CurHostName = hostbuf;
2075 mci = mci_get(hostbuf, m);
2105 hostbuf, sizeof(hostbuf),
2122 hostbuf, "user open");
2135 hostbuf, m->m_name);
2138 hostbuf, ntohs(port),
2190 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, ": ");
/illumos-gate/usr/src/lib/libexacct/common/
H A Dexacct_ops.c964 char hostbuf[SYSINFO_BUFSIZE]; in write_header() local
972 bzero(hostbuf, SYSINFO_BUFSIZE); in write_header()
974 (void) sysinfo(SI_HOSTNAME, hostbuf, SYSINFO_BUFSIZE); in write_header()
983 hostbuf, strlen(hostbuf)) == -1) { in write_header()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dclient.c67 char hostbuf[BUFSIZ]; in init_socket() local
72 if ((hp = gethostbyname_r(host, &hrec, hostbuf, in init_socket()
73 sizeof (hostbuf), &herrno)) == NULL) { in init_socket()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c1068 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()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipmon.c531 static char hostbuf[MAXHOSTNAMELEN+1]; local
548 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1);
549 hostbuf[MAXHOSTNAMELEN] = '\0';
550 return hostbuf;
H A Dipfstat.c1786 static char hostbuf[MAXHOSTNAMELEN+1]; local
1793 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1);
1794 hostbuf[MAXHOSTNAMELEN] = '\0';
1795 return hostbuf;
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c455 char hostbuf[256]; in main() local
567 if (gethostname(hostbuf, sizeof (hostbuf)) < 0) { in main()
571 if (getaddrinfo(hostbuf, NULL, NULL, &host_ai) != 0) { in main()