| /freebsd-14.2/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-14.2/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() 126 hostbuf += 8; in lio_pci_fastwrite() 146 uint8_t *hostbuf, uint32_t len) in lio_pci_fastread() argument 159 hostbuf += 8; in lio_pci_fastread() 173 uint8_t *hostbuf, uint32_t len, uint32_t op) in lio_pci_rw_core_mem() argument 188 lio_pci_fastread(oct, offset, hostbuf, len); in lio_pci_rw_core_mem() 190 lio_pci_fastwrite(oct, offset, hostbuf, len); in lio_pci_rw_core_mem() 214 lio_pci_fastread(oct, offset, hostbuf, in lio_pci_rw_core_mem() 217 lio_pci_fastwrite(oct, offset, hostbuf, in lio_pci_rw_core_mem() [all …]
|
| /freebsd-14.2/sys/rpc/ |
| H A D | authunix_prot.c | 69 char hostbuf[MAXHOSTNAMELEN]; in xdr_authunix_parms() local 75 getcredhostname(NULL, hostbuf, sizeof(hostbuf)); in xdr_authunix_parms() 76 namelen = strlen(hostbuf); in xdr_authunix_parms() 92 if (!xdr_opaque(xdrs, hostbuf, namelen)) in xdr_authunix_parms()
|
| /freebsd-14.2/usr.sbin/lpr/lpd/ |
| H A D | lpd.c | 665 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; in chkhost() local 673 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost() 677 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), in chkhost() 690 hostbuf, errsav); in chkhost() 693 hostbuf); in chkhost() 698 strlcpy(frombuf, hostbuf, sizeof(frombuf)); in chkhost() 703 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost() 712 from_ip = strdup(hostbuf); in chkhost()
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | gethostbyht.c | 96 char hostbuf[BUFSIZ + 1]; in gethostent_p() local 103 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p() 138 bp = hed->hostbuf; in gethostent_p() 139 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 | 175 bp = hed->hostbuf; in gethostanswer() 176 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-14.2/sys/fs/cd9660/ |
| H A D | cd9660_rrip.c | 115 char hostbuf[MAXHOSTNAMELEN]; in cd9660_rrip_slink() local 168 getcredhostname(curthread->td_ucred, hostbuf, in cd9660_rrip_slink() 169 sizeof(hostbuf)); in cd9660_rrip_slink() 170 inbuf = hostbuf; in cd9660_rrip_slink() 221 char hostbuf[MAXHOSTNAMELEN]; in cd9660_rrip_altname() local 240 getcredhostname(curthread->td_ucred, hostbuf, sizeof(hostbuf)); in cd9660_rrip_altname() 241 inbuf = hostbuf; in cd9660_rrip_altname()
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | auth-rhosts.c | 88 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; in check_rhosts_file() local 108 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, in check_rhosts_file() 128 host = hostbuf; in check_rhosts_file()
|
| /freebsd-14.2/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') 3458 if (strchr(hostbuf, '.') == NULL) 3475 if (strchr(hostbuf, '.') == NULL) 3484 hostbuf[size - 1] = '\0'; 3499 if (strchr(hostbuf, '.') == NULL && 3504 hostbuf); 3506 hostbuf); 3512 hostbuf); [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 | 1331 char *hostbuf; 1350 hostbuf); 2610 sizeof(hostbuf)); 2655 , hostbuf 2664 , host, hostbuf 2699 host, hostbuf, 2704 host, hostbuf, 2752 hostbuf, sizeof(hostbuf), 2779 , hostbuf); 2913 hostbuf); [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-14.2/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() 460 hostname = hostbuf; in main() 470 if (groupname == hostbuf) { in main()
|
| /freebsd-14.2/libexec/ftpd/ |
| H A D | ftpd.c | 1977 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; in dataconn() local 1981 hostbuf, sizeof(hostbuf) - 1, in dataconn() 1984 *hostbuf = *portbuf = 0; in dataconn() 1985 hostbuf[sizeof(hostbuf) - 1] = 0; in dataconn() 1988 hostbuf, portbuf, strerror(errno)); in dataconn()
|
| /freebsd-14.2/sbin/ipf/ipfstat/ |
| H A D | ipfstat.c | 1938 static char hostbuf[MAXHOSTNAMELEN+1]; in getip() local 1948 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1); in getip() 1949 hostbuf[MAXHOSTNAMELEN] = '\0'; in getip() 1950 return (hostbuf); in getip()
|
| /freebsd-14.2/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-14.2/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-14.2/usr.bin/rpcinfo/ |
| H A D | rpcinfo.c | 601 char hostbuf[NI_MAXHOST]; local 605 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) { 608 hostname = hostbuf;
|