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

/freebsd-current/sbin/ipf/libipf/
H A Dhostname.c15 static char hostbuf[MAXHOSTNAMELEN+1]; local
33 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
34 hostbuf[sizeof(hostbuf) - 1] = '\0';
35 return (hostbuf);
41 strncpy(hostbuf, np->n_name, sizeof(hostbuf));
42 hostbuf[sizeof(hostbuf)
[all...]
/freebsd-current/sys/dev/liquidio/base/
H A Dlio_mem_ops.c113 uint8_t *hostbuf, uint32_t len)
117 lio_write_bar1_mem8(oct, offset++, *(hostbuf++));
124 lio_write_bar1_mem64(oct, offset, *((uint64_t *)hostbuf));
126 hostbuf += 8;
133 lio_write_bar1_mem8(oct, offset++, *(hostbuf++));
146 uint8_t *hostbuf, uint32_t len)
150 *(hostbuf++) = lio_read_bar1_mem8(oct, offset++);
157 *((uint64_t *)hostbuf) = lio_read_bar1_mem64(oct, offset);
159 hostbuf += 8;
166 *(hostbuf
112 lio_pci_fastwrite(struct octeon_device *oct, uint32_t offset, uint8_t *hostbuf, uint32_t len) argument
145 lio_pci_fastread(struct octeon_device *oct, uint32_t offset, uint8_t *hostbuf, uint32_t len) argument
172 lio_pci_rw_core_mem(struct octeon_device *oct, uint64_t addr, uint8_t *hostbuf, uint32_t len, uint32_t op) argument
[all...]
/freebsd-current/sys/rpc/
H A Dauthunix_prot.c65 char hostbuf[MAXHOSTNAMELEN]; local
71 getcredhostname(NULL, hostbuf, sizeof(hostbuf));
72 namelen = strlen(hostbuf);
88 if (!xdr_opaque(xdrs, hostbuf, namelen))
/freebsd-current/lib/libc/net/
H A Dgethostbyht.c93 char hostbuf[BUFSIZ + 1]; local
100 if (!(p = fgets(hostbuf, sizeof hostbuf, hed->hostf))) {
135 bp = hed->hostbuf;
136 ep = hed->hostbuf + sizeof hed->hostbuf;
H A Dgethostbynis.c126 bp = hed->hostbuf;
127 ep = hed->hostbuf + sizeof hed->hostbuf;
H A Dnetdb_private.h78 char hostbuf[_HOSTBUFSIZE]; member in struct:hostent_data
H A Dgethostnamadr.c449 strncpy(hed->hostbuf, name, MAXDNAME);
450 hed->hostbuf[MAXDNAME] = '\0';
469 he.h_name = hed->hostbuf;
H A Dgethostbydns.c171 bp = hed->hostbuf;
172 ep = hed->hostbuf + sizeof hed->hostbuf;
H A Dgetaddrinfo.c1997 char hostbuf[8*1024]; local
2019 bp = hostbuf;
2020 ep = hostbuf + sizeof hostbuf;
2406 char hostbuf[8*1024]; local
2411 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf)))
/freebsd-current/usr.sbin/lpr/lpd/
H A Dlpd.c653 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; local
661 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0,
665 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf),
678 hostbuf, errsav);
681 hostbuf);
686 strlcpy(frombuf, hostbuf, sizeof(frombuf));
691 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NUL
[all...]
/freebsd-current/sys/fs/cd9660/
H A Dcd9660_rrip.c112 char hostbuf[MAXHOSTNAMELEN]; local
165 getcredhostname(curthread->td_ucred, hostbuf,
166 sizeof(hostbuf));
167 inbuf = hostbuf;
218 char hostbuf[MAXHOSTNAMELEN]; local
237 getcredhostname(curthread->td_ucred, hostbuf, sizeof(hostbuf));
238 inbuf = hostbuf;
/freebsd-current/crypto/openssh/
H A Dauth-rhosts.c88 char hostbuf[RBUFLN], userbuf[RBUFLN], dummy[RBUFLN]; local
108 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf,
128 host = hostbuf;
/freebsd-current/contrib/sendmail/src/
H A Dsavemail.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));
H A Ddeliver.c1317 ** hostbuf -- buffer for hostname (expand FallbackSmartHost) (out)
1318 ** hbsz -- size of hostbuf
1328 should_try_fbsh(e, tried_fallbacksmarthost, hostbuf, hbsz, status)
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));
[all...]
H A Ddaemon.c3420 ** hostbuf -- a place to return the name of this host.
3421 ** size -- the size of hostbuf.
3431 myhostname(hostbuf, size)
3432 char hostbuf[];
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, '
[all...]
H A Dmain.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-current/contrib/ntp/util/
H A Dntp-keygen.c171 char hostbuf[MAXHOSTNAME + 1]; variable
174 char certnamebuf[2 * sizeof(hostbuf)];
363 gethostname(hostbuf, sizeof(hostbuf) - 1);
364 hostbuf[COUNTOF(hostbuf) - 1] = '\0';
365 hostname = hostbuf;
366 groupname = hostbuf;
367 passwd1 = hostbuf;
451 if (hostname != hostbuf)
[all...]
/freebsd-current/sbin/ipf/ipfstat/
H A Dipfstat.c1934 static char hostbuf[MAXHOSTNAMELEN+1]; local
1944 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1);
1945 hostbuf[MAXHOSTNAMELEN] = '\0';
1946 return (hostbuf);
/freebsd-current/libexec/ftpd/
H A Dftpd.c1962 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; local
1966 hostbuf, sizeof(hostbuf) - 1,
1969 *hostbuf = *portbuf = 0;
1970 hostbuf[sizeof(hostbuf) - 1] = 0;
1973 hostbuf, portbuf, strerror(errno));
/freebsd-current/contrib/telnet/telnet/
H A Dcommands.c2359 static char hostbuf[BUFSIZ];
2362 strncpy(hostbuf, hostp, BUFSIZ - 1);
2363 hostbuf[BUFSIZ - 1] = '\0';
2365 hostp = hostbuf;
2351 static char hostbuf[BUFSIZ]; local
/freebsd-current/contrib/tcpdump/
H A Daddrtoname.c149 static char hostbuf[NI_MAXHOST]; local
153 host.h_name = hostbuf;
/freebsd-current/usr.bin/rpcinfo/
H A Drpcinfo.c593 char hostbuf[NI_MAXHOST]; local
597 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) {
600 hostname = hostbuf;

Completed in 487 milliseconds