Home
last modified time | relevance | path

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

/freebsd-13.1/sbin/ipf/libipf/
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-13.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-13.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-13.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-13.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 Dnetdb_private.h80 char hostbuf[_HOSTBUFSIZE]; member
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 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-13.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-13.1/sys/fs/cd9660/
H A Dcd9660_rrip.c123 char hostbuf[MAXHOSTNAMELEN]; local
176 getcredhostname(curthread->td_ucred, hostbuf,
177 sizeof(hostbuf));
178 inbuf = hostbuf;
231 char hostbuf[MAXHOSTNAMELEN]; local
250 getcredhostname(curthread->td_ucred, hostbuf, sizeof(hostbuf));
251 inbuf = hostbuf;
/freebsd-13.1/crypto/openssh/
H A Dauth-rhosts.c85 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; in check_rhosts_file() local
105 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, in check_rhosts_file()
125 host = hostbuf; in check_rhosts_file()
/freebsd-13.1/contrib/sendmail/src/
H A Ddaemon.c3347 myhostname(hostbuf, size) in myhostname() argument
3348 char hostbuf[]; in myhostname()
3353 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3374 if (strchr(hostbuf, '.') == NULL)
3391 if (strchr(hostbuf, '.') == NULL)
3400 hostbuf[size - 1] = '\0';
3415 if (strchr(hostbuf, '.') == NULL &&
3420 hostbuf);
3422 hostbuf);
3428 hostbuf);
[all …]
H A Dsavemail.c1841 char hostbuf[BUFSIZ]; local
1875 if (i >= sizeof(hostbuf))
1877 (void) sm_strlcpy(hostbuf, at + 1, sizeof(hostbuf));
1878 hostbuf[i - 1] = '\0';
1882 if (getmxrr(hostbuf, mxhosts, NULL, TRYFALLBACK, &rcode, NULL, -1)
1893 strlen(comma + 2) < sizeof(hostbuf))
1894 (void) sm_strlcpy(hostbuf, comma + 2, sizeof(hostbuf));
H A Ddeliver.c1210 char *hostbuf;
1229 hostbuf);
2125 sizeof(hostbuf));
2135 CurHostName = hostbuf;
2169 , hostbuf
2183 hostbuf, sizeof(hostbuf),
2200 hostbuf, "user open");
2213 hostbuf, m->m_name);
2216 hostbuf, ntohs(port),
2297 hostbuf);
[all …]
H A Dmain.c3561 static char hostbuf[48]; local
3563 if (hostbuf[0] == '\0')
3567 hp = myhostname(hostbuf, sizeof(hostbuf));
3577 (void) sm_strlcpyn(buf, sizeof(buf), 2, hostbuf, ": ");
/freebsd-13.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-13.1/libexec/ftpd/
H A Dftpd.c2005 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; in dataconn() local
2009 hostbuf, sizeof(hostbuf) - 1, in dataconn()
2012 *hostbuf = *portbuf = 0; in dataconn()
2013 hostbuf[sizeof(hostbuf) - 1] = 0; in dataconn()
2016 hostbuf, portbuf, strerror(errno)); in dataconn()
/freebsd-13.1/sbin/ipf/ipfstat/
H A Dipfstat.c1940 static char hostbuf[MAXHOSTNAMELEN+1]; in getip() local
1950 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1); in getip()
1951 hostbuf[MAXHOSTNAMELEN] = '\0'; in getip()
1952 return (hostbuf); in getip()
/freebsd-13.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-13.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-13.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;