Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/ipfilter/lib/
H A Dhostname.c16 static char hostbuf[MAXHOSTNAMELEN+1]; in hostname() local
34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf)); in hostname()
35 hostbuf[sizeof(hostbuf) - 1] = '\0'; in hostname()
36 return (hostbuf); in hostname()
42 strncpy(hostbuf, np->n_name, sizeof(hostbuf)); in hostname()
43 hostbuf[sizeof(hostbuf) - 1] = '\0'; in hostname()
44 return (hostbuf); in hostname()
53 (void) inet_ntop(AF_INET6, ip, hostbuf, sizeof(hostbuf) - 1); in hostname()
54 hostbuf[MAXHOSTNAMELEN] = '\0'; in hostname()
55 return (hostbuf); in hostname()
/freebsd-12.1/sys/dev/liquidio/base/
H A Dlio_mem_ops.c114 uint8_t *hostbuf, uint32_t len) in lio_pci_fastwrite() argument
118 lio_write_bar1_mem8(oct, offset++, *(hostbuf++)); in lio_pci_fastwrite()
127 hostbuf += 8; in lio_pci_fastwrite()
147 uint8_t *hostbuf, uint32_t len) in lio_pci_fastread() argument
160 hostbuf += 8; in lio_pci_fastread()
174 uint8_t *hostbuf, uint32_t len, uint32_t op) in lio_pci_rw_core_mem() argument
189 lio_pci_fastread(oct, offset, hostbuf, len); in lio_pci_rw_core_mem()
191 lio_pci_fastwrite(oct, offset, hostbuf, len); in lio_pci_rw_core_mem()
215 lio_pci_fastread(oct, offset, hostbuf, in lio_pci_rw_core_mem()
218 lio_pci_fastwrite(oct, offset, hostbuf, in lio_pci_rw_core_mem()
[all …]
/freebsd-12.1/sys/rpc/
H A Dauthunix_prot.c71 char hostbuf[MAXHOSTNAMELEN]; in xdr_authunix_parms() local
77 getcredhostname(NULL, hostbuf, sizeof(hostbuf)); in xdr_authunix_parms()
78 namelen = strlen(hostbuf); in xdr_authunix_parms()
94 if (!xdr_opaque(xdrs, hostbuf, namelen)) in xdr_authunix_parms()
/freebsd-12.1/usr.sbin/lpr/lpd/
H A Dlpd.c659 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; in chkhost() local
667 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost()
671 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), in chkhost()
684 hostbuf, errsav); in chkhost()
687 hostbuf); in chkhost()
692 strlcpy(frombuf, hostbuf, sizeof(frombuf)); in chkhost()
697 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, in chkhost()
706 from_ip = strdup(hostbuf); in chkhost()
/freebsd-12.1/lib/libc/net/
H A Dgethostbyht.c99 char hostbuf[BUFSIZ + 1]; in gethostent_p() local
106 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) { in gethostent_p()
141 bp = hed->hostbuf; in gethostent_p()
142 ep = hed->hostbuf + sizeof hed->hostbuf; in gethostent_p()
H A Dgethostbynis.c129 bp = hed->hostbuf; in _gethostbynis()
130 ep = hed->hostbuf + sizeof hed->hostbuf; in _gethostbynis()
H A Dgethostnamadr.c452 strncpy(hed->hostbuf, name, MAXDNAME); in fakeaddr()
453 hed->hostbuf[MAXDNAME] = '\0'; in fakeaddr()
472 he.h_name = hed->hostbuf; in fakeaddr()
H A Dnetdb_private.h80 char hostbuf[_HOSTBUFSIZE]; member
H A Dgethostbydns.c178 bp = hed->hostbuf; in gethostanswer()
179 ep = hed->hostbuf + sizeof hed->hostbuf; in gethostanswer()
H A Dgetaddrinfo.c1997 char hostbuf[8*1024]; in getanswer() local
2019 bp = hostbuf; in getanswer()
2020 ep = hostbuf + sizeof hostbuf; in getanswer()
2403 char hostbuf[8*1024]; in _gethtent() local
2408 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf))) in _gethtent()
/freebsd-12.1/contrib/subversion/subversion/libsvn_ra_svn/
H A Dcram.c140 char hostbuf[APRMAXHOSTLEN + 1]; in svn_ra_svn_cram_server() local
151 status = apr_gethostname(hostbuf, sizeof(hostbuf), pool); in svn_ra_svn_cram_server()
156 nonce, apr_time_now(), hostbuf); in svn_ra_svn_cram_server()
/freebsd-12.1/sys/fs/cd9660/
H A Dcd9660_rrip.c123 char hostbuf[MAXHOSTNAMELEN]; local
178 getcredhostname(curthread->td_ucred, hostbuf,
179 sizeof(hostbuf));
180 inbuf = hostbuf;
234 char hostbuf[MAXHOSTNAMELEN]; local
253 getcredhostname(curthread->td_ucred, hostbuf, sizeof(hostbuf));
254 inbuf = hostbuf;
/freebsd-12.1/crypto/openssh/
H A Dauth-rhosts.c86 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; in check_rhosts_file() local
106 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, in check_rhosts_file()
126 host = hostbuf; in check_rhosts_file()
/freebsd-12.1/release/picobsd/tinyware/login/
H A Dpico-login.c228 char hostbuf[MAXHOSTNAMELEN]; local
232 hostbuf,
233 sizeof(hostbuf), NULL, 0,
235 optarg = strdup(hostbuf);
475 char hostbuf[MAXHOSTNAMELEN]; local
478 hostbuf, sizeof(hostbuf), NULL, 0,
480 if ((optarg = strdup(hostbuf)) == NULL) {
/freebsd-12.1/contrib/sendmail/src/
H A Ddaemon.c3219 myhostname(hostbuf, size) in myhostname() argument
3220 char hostbuf[]; in myhostname()
3225 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3246 if (strchr(hostbuf, '.') == NULL)
3263 if (strchr(hostbuf, '.') == NULL)
3272 hostbuf[size - 1] = '\0';
3287 if (strchr(hostbuf, '.') == NULL &&
3292 hostbuf);
3294 hostbuf);
3300 hostbuf);
[all …]
H A Dsavemail.c1766 char hostbuf[BUFSIZ]; local
1800 if (i >= sizeof(hostbuf))
1802 (void) sm_strlcpy(hostbuf, at + 1, sizeof(hostbuf));
1803 hostbuf[i - 1] = '\0';
1807 if (getmxrr(hostbuf, mxhosts, NULL, false,
1818 strlen(comma + 2) < sizeof(hostbuf))
1819 (void) sm_strlcpy(hostbuf, comma + 2, sizeof(hostbuf));
H A Ddeliver.c1201 char *hostbuf;
1220 hostbuf);
2072 sizeof(hostbuf));
2079 CurHostName = hostbuf;
2080 mci = mci_get(hostbuf, m);
2110 hostbuf, sizeof(hostbuf),
2127 hostbuf, "user open");
2140 hostbuf, m->m_name);
2143 hostbuf, ntohs(port),
2196 hostbuf);
[all …]
H A Dmain.c3530 static char hostbuf[48]; local
3532 if (hostbuf[0] == '\0')
3536 hp = myhostname(hostbuf, sizeof(hostbuf));
3546 (void) sm_strlcpyn(buf, sizeof(buf), 2, hostbuf, ": ");
/freebsd-12.1/contrib/ntp/util/
H A Dntp-keygen.c171 char hostbuf[MAXHOSTNAME + 1]; variable
174 char certnamebuf[2 * sizeof(hostbuf)];
359 gethostname(hostbuf, sizeof(hostbuf) - 1); in main()
360 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; in main()
361 hostname = hostbuf; in main()
362 groupname = hostbuf; in main()
363 passwd1 = hostbuf; in main()
447 if (hostname != hostbuf) in main()
456 hostname = hostbuf; in main()
466 if (groupname == hostbuf) { in main()
/freebsd-12.1/libexec/ftpd/
H A Dftpd.c2018 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; in dataconn() local
2022 hostbuf, sizeof(hostbuf) - 1, in dataconn()
2025 *hostbuf = *portbuf = 0; in dataconn()
2026 hostbuf[sizeof(hostbuf) - 1] = 0; in dataconn()
2029 hostbuf, portbuf, strerror(errno)); in dataconn()
/freebsd-12.1/contrib/ipfilter/tools/
H A Dipfstat.c1944 static char hostbuf[MAXHOSTNAMELEN+1]; local
1951 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1);
1952 hostbuf[MAXHOSTNAMELEN] = '\0';
1953 return hostbuf;
/freebsd-12.1/contrib/telnet/telnet/
H A Dcommands.c2350 static char hostbuf[BUFSIZ]; in tn() local
2353 strncpy(hostbuf, hostp, BUFSIZ - 1); in tn()
2354 hostbuf[BUFSIZ - 1] = '\0'; in tn()
2356 hostp = hostbuf; in tn()
/freebsd-12.1/contrib/tcpdump/
H A Daddrtoname.c111 static char hostbuf[NI_MAXHOST]; in win32_gethostbyaddr() local
115 host.h_name = hostbuf; in win32_gethostbyaddr()
/freebsd-12.1/usr.bin/rpcinfo/
H A Drpcinfo.c603 char hostbuf[NI_MAXHOST]; local
607 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) {
610 hostname = hostbuf;