/freebsd-10.1-release/contrib/ipfilter/lib/ |
H A D | hostname.c | 17 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-10.1-release/sys/rpc/ |
H A D | authunix_prot.c | 69 char hostbuf[MAXHOSTNAMELEN]; local 75 getcredhostname(NULL, hostbuf, sizeof(hostbuf)); 76 namelen = strlen(hostbuf); 92 if (!xdr_opaque(xdrs, hostbuf, namelen))
|
/freebsd-10.1-release/crypto/openssh/ |
H A D | auth-rhosts.c | 84 char hostbuf[1024], userbuf[1024], dummy[1024], *host, *user, *cp; local 103 switch (sscanf(buf, "%1023s %1023s %1023s", hostbuf, userbuf, 123 host = hostbuf;
|
/freebsd-10.1-release/lib/libc/net/ |
H A D | gethostbyht.c | 97 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 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 | gethostbydns.c | 180 bp = hed->hostbuf; 181 ep = hed->hostbuf + sizeof hed->hostbuf;
|
H A D | gethostnamadr.c | 457 strncpy(hed->hostbuf, name, MAXDNAME); 458 hed->hostbuf[MAXDNAME] = '\0'; 477 he.h_name = hed->hostbuf;
|
H A D | getaddrinfo.c | 1934 char hostbuf[8*1024]; local 1956 bp = hostbuf; 1957 ep = hostbuf + sizeof hostbuf; 2322 char hostbuf[8*1024]; local 2327 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf)))
|
/freebsd-10.1-release/usr.bin/csup/ |
H A D | auth.c | 72 char hostbuf[MAXHOSTNAMELEN]; local 77 error = gethostname(hostbuf, sizeof(hostbuf)); 78 hostbuf[sizeof(hostbuf) - 1] = '\0'; 82 host = hostbuf;
|
/freebsd-10.1-release/usr.sbin/lpr/lpd/ |
H A D | lpd.c | 657 char hostbuf[NI_MAXHOST], ip[NI_MAXHOST]; local 669 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NULL, 0, 673 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), 686 hostbuf, errsav); 689 hostbuf); 694 strlcpy(frombuf, hostbuf, sizeof(frombuf)); 699 error = getnameinfo(f, f->sa_len, hostbuf, sizeof(hostbuf), NUL [all...] |
/freebsd-10.1-release/contrib/subversion/subversion/libsvn_ra_svn/ |
H A D | cram.c | 141 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-10.1-release/sys/fs/cd9660/ |
H A D | cd9660_rrip.c | 121 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-10.1-release/contrib/sendmail/src/ |
H A D | daemon.c | 3207 ** hostbuf -- a place to return the name of this host. 3208 ** size -- the size of hostbuf. 3218 myhostname(hostbuf, size) 3219 char hostbuf[]; 3224 if (gethostname(hostbuf, size) < 0 || hostbuf[0] == '\0') 3225 (void) sm_strlcpy(hostbuf, "localhost", size); 3226 hp = sm_gethostbyname(hostbuf, InetMode); 3236 hp = sm_gethostbyname(hostbuf, AF_INET); 3241 if (strchr(hp->h_name, '.') != NULL || strchr(hostbuf, ' [all...] |
H A D | savemail.c | 1755 char hostbuf[BUFSIZ]; local 1789 if (i >= sizeof(hostbuf)) 1791 (void) sm_strlcpy(hostbuf, at + 1, sizeof(hostbuf)); 1792 hostbuf[i - 1] = '\0'; 1796 if (getmxrr(hostbuf, mxhosts, NULL, false, 1807 strlen(comma + 2) < sizeof(hostbuf)) 1808 (void) sm_strlcpy(hostbuf, comma + 2, sizeof(hostbuf));
|
H A D | deliver.c | 1187 ** hostbuf -- buffer for hostname (expand FallbackSmartHost) (out) 1188 ** hbsz -- size of hostbuf 1198 should_try_fbsh(e, tried_fallbacksmarthost, hostbuf, hbsz, status) 1201 char *hostbuf; 1215 expand(FallbackSmartHost, hostbuf, hbsz, e); 1216 if (!wordinclass(hostbuf, 'w')) 1220 hostbuf); 2020 static char hostbuf[MAXNAME + 1]; local 2067 (void) sm_strlcpy(hostbuf, mxhosts[hostnum], 2068 sizeof(hostbuf)); [all...] |
H A D | main.c | 3489 static char hostbuf[48]; local 3491 if (hostbuf[0] == '\0') 3495 hp = myhostname(hostbuf, sizeof(hostbuf)); 3505 (void) sm_strlcpyn(buf, sizeof(buf), 2, hostbuf, ": ");
|
/freebsd-10.1-release/release/picobsd/tinyware/login/ |
H A D | pico-login.c | 226 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-10.1-release/contrib/ntp/util/ |
H A D | ntp-keygen.c | 167 char hostbuf[MAXHOSTNAME + 1]; variable 170 char certnamebuf[2 * sizeof(hostbuf)]; 351 gethostname(hostbuf, sizeof(hostbuf) - 1); 352 hostbuf[COUNTOF(hostbuf) - 1] = '\0'; 353 hostname = hostbuf; 354 groupname = hostbuf; 355 passwd1 = hostbuf; 437 if (hostname != hostbuf) [all...] |
/freebsd-10.1-release/libexec/ftpd/ |
H A D | ftpd.c | 1987 char hostbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; local 1991 hostbuf, sizeof(hostbuf) - 1, 1994 *hostbuf = *portbuf = 0; 1995 hostbuf[sizeof(hostbuf) - 1] = 0; 1998 hostbuf, portbuf, strerror(errno));
|
/freebsd-10.1-release/contrib/telnet/telnet/ |
H A D | commands.c | 2360 static char hostbuf[BUFSIZ]; 2363 strncpy(hostbuf, hostp, BUFSIZ - 1); 2364 hostbuf[BUFSIZ - 1] = '\0'; 2366 hostp = hostbuf; 2352 static char hostbuf[BUFSIZ]; local
|
/freebsd-10.1-release/contrib/tcpdump/ |
H A D | addrtoname.c | 110 static char hostbuf[NI_MAXHOST]; local 114 host.h_name = hostbuf;
|
/freebsd-10.1-release/contrib/ipfilter/tools/ |
H A D | ipfstat.c | 1979 static char hostbuf[MAXHOSTNAMELEN+1]; local 1986 (void) inet_ntop(AF_INET6, &addr->in6, hostbuf, sizeof(hostbuf) - 1); 1987 hostbuf[MAXHOSTNAMELEN] = '\0'; 1988 return hostbuf;
|
/freebsd-10.1-release/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 602 char hostbuf[NI_MAXHOST]; local 606 if (getnameinfo(sa, sa->sa_len, hostbuf, NI_MAXHOST, NULL, 0, 0)) { 609 hostname = hostbuf;
|