/freebsd-current/sbin/ipf/libipf/ |
H A D | hostname.c | 15 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 D | lio_mem_ops.c | 113 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 D | authunix_prot.c | 65 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 D | gethostbyht.c | 93 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 D | gethostbynis.c | 126 bp = hed->hostbuf; 127 ep = hed->hostbuf + sizeof hed->hostbuf;
|
H A D | netdb_private.h | 78 char hostbuf[_HOSTBUFSIZE]; member in struct:hostent_data
|
H A D | gethostnamadr.c | 449 strncpy(hed->hostbuf, name, MAXDNAME); 450 hed->hostbuf[MAXDNAME] = '\0'; 469 he.h_name = hed->hostbuf;
|
H A D | gethostbydns.c | 171 bp = hed->hostbuf; 172 ep = hed->hostbuf + sizeof hed->hostbuf;
|
H A D | getaddrinfo.c | 1997 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 D | lpd.c | 653 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 D | cd9660_rrip.c | 112 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 D | auth-rhosts.c | 88 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 D | savemail.c | 1849 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 D | deliver.c | 1317 ** 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 D | daemon.c | 3420 ** 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 D | main.c | 3627 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 D | ntp-keygen.c | 171 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 D | ipfstat.c | 1934 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 D | ftpd.c | 1962 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 D | commands.c | 2359 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 D | addrtoname.c | 149 static char hostbuf[NI_MAXHOST]; local 153 host.h_name = hostbuf;
|
/freebsd-current/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 593 char hostbuf[NI_MAXHOST]; local 597 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) { 600 hostname = hostbuf;
|