Home
last modified time | relevance | path

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

/src/sbin/ipf/libipf/
H A Dhostname.c15 static char hostbuf[MAXHOSTNAMELEN+1]; in hostname() local
33 strncpy(hostbuf, hp->h_name, sizeof(hostbuf)); in hostname()
34 hostbuf[sizeof(hostbuf) - 1] = '\0'; in hostname()
35 return (hostbuf); in hostname()
41 strncpy(hostbuf, np->n_name, sizeof(hostbuf)); in hostname()
42 hostbuf[sizeof(hostbuf) - 1] = '\0'; in hostname()
43 return (hostbuf); in hostname()
52 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1); in hostname()
53 hostbuf[MAXHOSTNAMELEN] = '\0'; in hostname()
54 return (hostbuf); in hostname()
/src/sys/dev/liquidio/base/
H A Dlio_mem_ops.c113 uint8_t *hostbuf, uint32_t len) in lio_pci_fastwrite() argument
117 lio_write_bar1_mem8(oct, offset++, *(hostbuf++)); in lio_pci_fastwrite()
124 lio_write_bar1_mem64(oct, offset, *((uint64_t *)hostbuf)); in lio_pci_fastwrite()
126 hostbuf += 8; in lio_pci_fastwrite()
133 lio_write_bar1_mem8(oct, offset++, *(hostbuf++)); in lio_pci_fastwrite()
146 uint8_t *hostbuf, uint32_t len) in lio_pci_fastread() argument
150 *(hostbuf++) = lio_read_bar1_mem8(oct, offset++); in lio_pci_fastread()
157 *((uint64_t *)hostbuf) = lio_read_bar1_mem64(oct, offset); in lio_pci_fastread()
159 hostbuf += 8; in lio_pci_fastread()
166 *(hostbuf++) = lio_read_bar1_mem8(oct, offset++); in lio_pci_fastread()
[all …]
/src/sys/rpc/
H A Dauthunix_prot.c60 char hostbuf[MAXHOSTNAMELEN]; in xdr_authunix_parms() local
67 getcredhostname(NULL, hostbuf, sizeof(hostbuf)); in xdr_authunix_parms()
68 namelen = strlen(hostbuf); in xdr_authunix_parms()
81 if (!xdr_opaque(xdrs, hostbuf, namelen)) in xdr_authunix_parms()
/src/crypto/krb5/src/lib/krb5/os/
H A Dt_locate_kdc.c58 char hostbuf[NI_MAXHOST], srvbuf[NI_MAXSERV]; in print_addrs() local
68 hostbuf, sizeof(hostbuf), srvbuf, sizeof(srvbuf), in print_addrs()
74 printf("%2d: address %s\t%s\tport %s\n", (int)i, hostbuf, in print_addrs()
H A Dlocaladdr.c1073 char hostbuf[NI_MAXHOST]; in print_addr() local
1079 err = getnameinfo (sa, len, hostbuf, (socklen_t) sizeof (hostbuf), in print_addr()
1087 printf ("addr %s\n", hostbuf); in print_addr()
/src/usr.sbin/lpr/lpd/
H A Dlpd.c661 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; in chkhost() local
669 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost()
673 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), in chkhost()
686 hostbuf, errsav); in chkhost()
689 hostbuf); in chkhost()
694 strlcpy(frombuf, hostbuf, sizeof(frombuf)); in chkhost()
699 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost()
708 from_ip = strdup(hostbuf); in chkhost()
/src/lib/libc/net/
H A Dgethostbyht.c93 char hostbuf[BUFSIZ + 1]; in gethostent_p() local
100 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p()
135 bp = hed->hostbuf; in gethostent_p()
136 ep = hed->hostbuf + sizeof hed->hostbuf; in gethostent_p()
H A Dgethostbynis.c126 bp = hed->hostbuf; in _gethostbynis()
127 ep = hed->hostbuf + sizeof hed->hostbuf; in _gethostbynis()
H A Dnetdb_private.h78 char hostbuf[_HOSTBUFSIZE]; member
H A Dgethostbydns.c173 bp = hed->hostbuf; in gethostanswer()
174 ep = hed->hostbuf + sizeof hed->hostbuf; in gethostanswer()
H A Dgethostnamadr.c449 strncpy(hed->hostbuf, name, MAXDNAME); in fakeaddr()
450 hed->hostbuf[MAXDNAME] = '\0'; in fakeaddr()
469 he.h_name = hed->hostbuf; in fakeaddr()
H A Dgetaddrinfo.c1997 char hostbuf[8*1024]; in getanswer() local
2019 bp = hostbuf; in getanswer()
2020 ep = hostbuf + sizeof hostbuf; in getanswer()
2411 char hostbuf[8*1024]; in _gethtent() local
2416 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf))) in _gethtent()
/src/sys/fs/cd9660/
H A Dcd9660_rrip.c112 char hostbuf[MAXHOSTNAMELEN]; in cd9660_rrip_slink() local
165 getcredhostname(curthread->td_ucred, hostbuf, in cd9660_rrip_slink()
166 sizeof(hostbuf)); in cd9660_rrip_slink()
167 inbuf = hostbuf; in cd9660_rrip_slink()
218 char hostbuf[MAXHOSTNAMELEN]; in cd9660_rrip_altname() local
237 getcredhostname(curthread->td_ucred, hostbuf, sizeof(hostbuf)); in cd9660_rrip_altname()
238 inbuf = hostbuf; in cd9660_rrip_altname()
/src/crypto/openssh/
H A Dauth-rhosts.c87 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; in check_rhosts_file() local
107 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, in check_rhosts_file()
127 host = hostbuf; in check_rhosts_file()
/src/contrib/sendmail/src/
H A Ddaemon.c3431 myhostname(hostbuf, size) in myhostname() argument
3432 char hostbuf[]; in myhostname()
3437 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3438 (void) sm_strlcpy(hostbuf, "localhost", size);
3439 hp = sm_gethostbyname(hostbuf, InetMode);
3449 hp = sm_gethostbyname(hostbuf, AF_INET);
3454 if (strchr(hp->h_name, '.') != NULL || strchr(hostbuf, '.') == NULL)
3455 (void) cleanstrcpy(hostbuf, hp->h_name, size);
3458 if (strchr(hostbuf, '.') == NULL)
3465 strlen(domainname) + strlen(hostbuf) + 1 < size)
[all …]
H A Dsavemail.c1849 char hostbuf[BUFSIZ]; local
1883 if (i >= sizeof(hostbuf))
1885 (void) sm_strlcpy(hostbuf, at + 1, sizeof(hostbuf));
1886 hostbuf[i - 1] = '\0';
1890 if (getmxrr(hostbuf, mxhosts, NULL, TRYFALLBACK, &rcode, NULL,
1901 strlen(comma + 2) < sizeof(hostbuf))
1902 (void) sm_strlcpy(hostbuf, comma + 2, sizeof(hostbuf));
H A Ddeliver.c1328 should_try_fbsh(e, tried_fallbacksmarthost, hostbuf, hbsz, status) in should_try_fbsh() argument
1331 char *hostbuf;
1345 expand(FallbackSmartHost, hostbuf, hbsz, e);
1346 if (!wordinclass(hostbuf, 'w'))
1350 hostbuf);
2567 static char hostbuf[MAXNAME_I + 1]; local
2609 (void) sm_strlcpy(hostbuf, mxhosts[hostnum],
2610 sizeof(hostbuf));
2620 CurHostName = hostbuf;
2621 mci = mci_get(hostbuf, m);
[all …]
H A Dmain.c3627 static char hostbuf[48]; local
3632 if (hostbuf[0] == '\0')
3636 hp = myhostname(hostbuf, sizeof(hostbuf));
3646 (void) sm_strlcpyn(buf, sizeof(buf), 2, hostbuf, ": ");
/src/contrib/ntp/util/
H A Dntp-keygen.c171 char hostbuf[MAXHOSTNAME + 1]; variable
174 char certnamebuf[2 * sizeof(hostbuf)];
363 gethostname(hostbuf, sizeof(hostbuf) - 1); in main()
364 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; in main()
365 hostname = hostbuf; in main()
366 groupname = hostbuf; in main()
367 passwd1 = hostbuf; in main()
451 if (hostname != hostbuf) in main()
460 hostname = hostbuf; in main()
470 if (groupname == hostbuf) { in main()
/src/sbin/ipf/ipfstat/
H A Dipfstat.c1934 static char hostbuf[MAXHOSTNAMELEN+1]; in getip() local
1944 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1); in getip()
1945 hostbuf[MAXHOSTNAMELEN] = '\0'; in getip()
1946 return (hostbuf); in getip()
/src/contrib/telnet/telnet/
H A Dcommands.c2351 static char hostbuf[BUFSIZ]; in tn() local
2354 strncpy(hostbuf, hostp, BUFSIZ - 1); in tn()
2355 hostbuf[BUFSIZ - 1] = '\0'; in tn()
2357 hostp = hostbuf; in tn()
/src/contrib/tcpdump/
H A Daddrtoname.c147 static char hostbuf[NI_MAXHOST]; in win32_gethostbyaddr() local
151 host.h_name = hostbuf; in win32_gethostbyaddr()
/src/usr.bin/rpcinfo/
H A Drpcinfo.c595 char hostbuf[NI_MAXHOST]; local
599 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) {
602 hostname = hostbuf;