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

/freebsd-11-stable/contrib/ipfilter/lib/
H A Dhostname.c17 static char hostbuf[MAXHOSTNAMELEN+1]; local
35 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
36 hostbuf[sizeof(hostbuf) - 1] = '\0';
37 return hostbuf;
43 strncpy(hostbuf, np->n_name, sizeof(hostbuf));
44 hostbuf[sizeof(hostbuf)
[all...]
/freebsd-11-stable/sys/dev/liquidio/base/
H A Dlio_mem_ops.c114 uint8_t *hostbuf, uint32_t len)
118 lio_write_bar1_mem8(oct, offset++, *(hostbuf++));
125 lio_write_bar1_mem64(oct, offset, *((uint64_t *)hostbuf));
127 hostbuf += 8;
134 lio_write_bar1_mem8(oct, offset++, *(hostbuf++));
147 uint8_t *hostbuf, uint32_t len)
151 *(hostbuf++) = lio_read_bar1_mem8(oct, offset++);
158 *((uint64_t *)hostbuf) = lio_read_bar1_mem64(oct, offset);
160 hostbuf += 8;
167 *(hostbuf
113 lio_pci_fastwrite(struct octeon_device *oct, uint32_t offset, uint8_t *hostbuf, uint32_t len) argument
146 lio_pci_fastread(struct octeon_device *oct, uint32_t offset, uint8_t *hostbuf, uint32_t len) argument
173 lio_pci_rw_core_mem(struct octeon_device *oct, uint64_t addr, uint8_t *hostbuf, uint32_t len, uint32_t op) argument
[all...]
/freebsd-11-stable/sys/rpc/
H A Dauthunix_prot.c69 char hostbuf[MAXHOSTNAMELEN]; local
75 getcredhostname(NULL, hostbuf, sizeof(hostbuf));
76 namelen = strlen(hostbuf);
92 if (!xdr_opaque(xdrs, hostbuf, namelen))
/freebsd-11-stable/crypto/openssh/
H A Dauth-rhosts.c86 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; local
106 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf,
126 host = hostbuf;
/freebsd-11-stable/lib/libc/net/
H A Dgethostbyht.c97 char hostbuf[BUFSIZ + 1]; local
104 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) {
139 bp = hed->hostbuf;
140 ep = hed->hostbuf + sizeof hed->hostbuf;
H A Dgethostbynis.c127 bp = hed->hostbuf;
128 ep = hed->hostbuf + sizeof hed->hostbuf;
H A Dnetdb_private.h78 char hostbuf[_HOSTBUFSIZE]; member in struct:hostent_data
H A Dgethostbydns.c176 bp = hed->hostbuf;
177 ep = hed->hostbuf + sizeof hed->hostbuf;
H A Dgethostnamadr.c450 strncpy(hed->hostbuf, name, MAXDNAME);
451 hed->hostbuf[MAXDNAME] = '\0';
470 he.h_name = hed->hostbuf;
H A Dgetaddrinfo.c1995 char hostbuf[8*1024]; local
2017 bp = hostbuf;
2018 ep = hostbuf + sizeof hostbuf;
2401 char hostbuf[8*1024]; local
2406 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf)))
/freebsd-11-stable/usr.sbin/lpr/lpd/
H A Dlpd.c657 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; local
665 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0,
669 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf),
682 hostbuf, errsav);
685 hostbuf);
690 strlcpy(frombuf, hostbuf, sizeof(frombuf));
695 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NUL
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_ra_svn/
H A Dcram.c141 char hostbuf[APRMAXHOSTLEN + 1];
152 status = apr_gethostname(hostbuf, sizeof(hostbuf), pool);
157 nonce, apr_time_now(), hostbuf);
140 char hostbuf[APRMAXHOSTLEN + 1]; local
/freebsd-11-stable/sys/fs/cd9660/
H A Dcd9660_rrip.c121 char hostbuf[MAXHOSTNAMELEN]; local
176 getcredhostname(curthread->td_ucred, hostbuf,
177 sizeof(hostbuf));
178 inbuf = hostbuf;
232 char hostbuf[MAXHOSTNAMELEN]; local
251 getcredhostname(curthread->td_ucred, hostbuf, sizeof(hostbuf));
252 inbuf = hostbuf;
/freebsd-11-stable/release/picobsd/tinyware/login/
H A Dpico-login.c226 char hostbuf[MAXHOSTNAMELEN]; local
230 hostbuf,
231 sizeof(hostbuf), NULL, 0,
233 optarg = strdup(hostbuf);
473 char hostbuf[MAXHOSTNAMELEN]; local
476 hostbuf, sizeof(hostbuf), NULL, 0,
478 if ((optarg = strdup(hostbuf)) == NULL) {
/freebsd-11-stable/contrib/sendmail/src/
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 Ddaemon.c3336 ** hostbuf -- a place to return the name of this host.
3337 ** size -- the size of hostbuf.
3347 myhostname(hostbuf, size)
3348 char hostbuf[];
3353 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0')
3354 (void) sm_strlcpy(hostbuf, "localhost", size);
3355 hp = sm_gethostbyname(hostbuf, InetMode);
3365 hp = sm_gethostbyname(hostbuf, AF_INET);
3370 if (strchr(hp->h_name, '.') != NULL || strchr(hostbuf, '
[all...]
H A Ddeliver.c1196 ** hostbuf -- buffer for hostname (expand FallbackSmartHost) (out)
1197 ** hbsz -- size of hostbuf
1207 should_try_fbsh(e, tried_fallbacksmarthost, hostbuf, hbsz, status)
1210 char *hostbuf;
1224 expand(FallbackSmartHost, hostbuf, hbsz, e);
1225 if (!wordinclass(hostbuf, 'w'))
1229 hostbuf);
2072 static char hostbuf[MAXNAME + 1]; local
2124 (void) sm_strlcpy(hostbuf, mxhosts[hostnum],
2125 sizeof(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-11-stable/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);
360 hostbuf[COUNTOF(hostbuf) - 1] = '\0';
361 hostname = hostbuf;
362 groupname = hostbuf;
363 passwd1 = hostbuf;
447 if (hostname != hostbuf)
[all...]
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c2002 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; local
2006 hostbuf, sizeof(hostbuf) - 1,
2009 *hostbuf = *portbuf = 0;
2010 hostbuf[sizeof(hostbuf) - 1] = 0;
2013 hostbuf, portbuf, strerror(errno));
/freebsd-11-stable/contrib/telnet/telnet/
H A Dcommands.c2358 static char hostbuf[BUFSIZ];
2361 strncpy(hostbuf, hostp, BUFSIZ - 1);
2362 hostbuf[BUFSIZ - 1] = '\0';
2364 hostp = hostbuf;
2350 static char hostbuf[BUFSIZ]; local
/freebsd-11-stable/contrib/tcpdump/
H A Daddrtoname.c111 static char hostbuf[NI_MAXHOST]; local
115 host.h_name = hostbuf;
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipfstat.c1984 static char hostbuf[MAXHOSTNAMELEN+1]; local
1994 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1);
1995 hostbuf[MAXHOSTNAMELEN] = '\0';
1996 return hostbuf;
/freebsd-11-stable/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;

Completed in 317 milliseconds