/freebsd/sbin/ipf/libipf/ |
H A D | hostname.c | 15 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()
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_mem_ops.c | 113 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 …]
|
/freebsd/sys/rpc/ |
H A D | authunix_prot.c | 65 char hostbuf[MAXHOSTNAMELEN]; in xdr_authunix_parms() local 71 getcredhostname(NULL, hostbuf, sizeof(hostbuf)); in xdr_authunix_parms() 72 namelen = strlen(hostbuf); in xdr_authunix_parms() 88 if (!xdr_opaque(xdrs, hostbuf, namelen)) in xdr_authunix_parms()
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 653 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; in chkhost() local 661 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost() 665 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), in chkhost() 678 hostbuf, errsav); in chkhost() 681 hostbuf); in chkhost() 686 strlcpy(frombuf, hostbuf, sizeof(frombuf)); in chkhost() 691 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost() 700 from_ip = strdup(hostbuf); in chkhost()
|
/freebsd/lib/libc/net/ |
H A D | gethostbyht.c | 93 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 D | gethostbynis.c | 126 bp = hed->hostbuf; in _gethostbynis() 127 ep = hed->hostbuf + sizeof hed->hostbuf; in _gethostbynis()
|
H A D | netdb_private.h | 78 char hostbuf[_HOSTBUFSIZE]; member
|
H A D | gethostbydns.c | 171 bp = hed->hostbuf; in gethostanswer() 172 ep = hed->hostbuf + sizeof hed->hostbuf; in gethostanswer()
|
H A D | gethostnamadr.c | 449 strncpy(hed->hostbuf, name, MAXDNAME); in fakeaddr() 450 hed->hostbuf[MAXDNAME] = '\0'; in fakeaddr() 469 he.h_name = hed->hostbuf; in fakeaddr()
|
H A D | getaddrinfo.c | 1997 char hostbuf[8*1024]; in getanswer() local 2019 bp = hostbuf; in getanswer() 2020 ep = hostbuf + sizeof hostbuf; in getanswer() 2406 char hostbuf[8*1024]; in _gethtent() local 2411 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf))) in _gethtent()
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_rrip.c | 112 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()
|
/freebsd/crypto/openssh/ |
H A D | auth-rhosts.c | 87 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()
|
/freebsd/contrib/sendmail/src/ |
H A D | daemon.c | 3431 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 D | savemail.c | 1849 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 D | deliver.c | 1328 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 D | main.c | 3627 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, ": ");
|
/freebsd/contrib/ntp/util/ |
H A D | ntp-keygen.c | 171 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() [all...] |
/freebsd/libexec/ftpd/ |
H A D | ftpd.c | 1962 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; in dataconn() local 1966 hostbuf, sizeof(hostbuf) - 1, in dataconn() 1969 *hostbuf = *portbuf = 0; in dataconn() 1970 hostbuf[sizeof(hostbuf) - 1] = 0; in dataconn() 1973 hostbuf, portbuf, strerror(errno)); in dataconn()
|
/freebsd/sbin/ipf/ipfstat/ |
H A D | ipfstat.c | 1934 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()
|
/freebsd/contrib/telnet/telnet/ |
H A D | commands.c | 2351 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()
|
/freebsd/contrib/tcpdump/ |
H A D | addrtoname.c | 147 static char hostbuf[NI_MAXHOST]; in win32_gethostbyaddr() local 151 host.h_name = hostbuf; in win32_gethostbyaddr()
|
/freebsd/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 593 char hostbuf[NI_MAXHOST]; local 597 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) { 600 hostname = hostbuf;
|