Home
last modified time | relevance | path

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

/freebsd-14-stable/sbin/ipf/libipf/
HDhostname.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()
/freebsd-14-stable/sys/dev/liquidio/base/
HDlio_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 …]
/freebsd-14-stable/sys/rpc/
HDauthunix_prot.c69 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-stable/usr.sbin/lpr/lpd/
HDlpd.c665 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-stable/lib/libc/net/
HDgethostbyht.c96 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()
HDgethostbynis.c126 bp = hed->hostbuf; in _gethostbynis()
127 ep = hed->hostbuf + sizeof hed->hostbuf; in _gethostbynis()
HDnetdb_private.h78 char hostbuf[_HOSTBUFSIZE]; member
HDgethostbydns.c175 bp = hed->hostbuf; in gethostanswer()
176 ep = hed->hostbuf + sizeof hed->hostbuf; in gethostanswer()
HDgethostnamadr.c449 strncpy(hed->hostbuf, name, MAXDNAME); in fakeaddr()
450 hed->hostbuf[MAXDNAME] = '\0'; in fakeaddr()
469 he.h_name = hed->hostbuf; in fakeaddr()
HDgetaddrinfo.c1997 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-stable/sys/fs/cd9660/
HDcd9660_rrip.c115 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-stable/crypto/openssh/
HDauth-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()
/freebsd-14-stable/contrib/sendmail/src/
HDdaemon.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 …]
HDsavemail.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));
HDdeliver.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 …]
HDmain.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, ": ");
/freebsd-14-stable/contrib/ntp/util/
HDntp-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()
/freebsd-14-stable/libexec/ftpd/
HDftpd.c1977 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-stable/sbin/ipf/ipfstat/
HDipfstat.c1938 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-stable/contrib/telnet/telnet/
HDcommands.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()
/freebsd-14-stable/contrib/tcpdump/
HDaddrtoname.c147 static char hostbuf[NI_MAXHOST]; in win32_gethostbyaddr() local
151 host.h_name = hostbuf; in win32_gethostbyaddr()
/freebsd-14-stable/usr.bin/rpcinfo/
HDrpcinfo.c601 char hostbuf[NI_MAXHOST]; local
605 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) {
608 hostname = hostbuf;