/freebsd-9.3-release/lib/libc/net/ |
H A D | rcmdsh.c | 72 static char hbuf[NI_MAXHOST]; local 99 strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1); 100 hbuf[sizeof(hbuf) - 1] = '\0'; 101 *ahost = hbuf;
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | sasl.c | 249 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 267 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags) != 0) 275 if (sm_strlcpy(hbuf, inet_ntoa(addr->sin.sin_addr), sizeof(hbuf)) 276 >= sizeof(hbuf)) 284 if (outlen < strlen(hbuf) + strlen(pbuf) + 2) 289 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
|
H A D | daemon.c | 99 ** host_map_lookup(map, hbuf, avp, pstat) 100 ** Convert the entry in hbuf into a canonical form. 3414 static char hbuf[MAXNAME + MAXAUTHINFO + 11]; local 3433 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName, 3436 sm_dprintf("getauthinfo: %s\n", hbuf); 3437 return hbuf; 3704 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf)); 3705 cleanstrcpy(&hbuf[ 3934 char hbuf[MAXNAME + 1]; local [all...] |
H A D | headers.c | 201 char hbuf[50]; local 203 (void) expand(fvalue, hbuf, sizeof(hbuf), e); 204 for (p = hbuf; isascii(*p) && isspace(*p); ) 1121 char hbuf[MAXNAME + 1]; local 1152 name = hbuf; 1153 (void) sm_snprintf(hbuf, sizeof(hbuf), "%.80s", RealHostName); 1156 p = &hbuf[strlen(hbuf)]; [all...] |
H A D | parseaddr.c | 1967 char hbuf[MAXNAME + 1]; local 1980 hbuf[0] = '\0'; 2035 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false); 2051 a->q_host = sm_rpool_strdup_x(e->e_rpool, hbuf); 2052 if (strchr(hbuf, '.') != NULL) 2055 hbuf); 2056 setstat(dsntoexitstat(hbuf)); 2058 else if (isascii(hbuf[0]) && isdigit(hbuf[ [all...] |
/freebsd-9.3-release/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 370 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local 633 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, 634 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) 635 strlcpy(hbuf, "?", sizeof(hbuf)); 637 "addresses; using %s\n", hostname, hbuf); 892 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf, 893 sizeof(hbuf), NULL, 0, NI_NUMERICHOST)) 894 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); 1196 char hbuf[NI_MAXHOST]; local 1379 char hbuf[NI_MAXHOST]; local [all...] |
/freebsd-9.3-release/contrib/sendmail/libmilter/ |
H A D | example.c | 52 char hbuf[1024]; local 74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host); 75 smfi_addheader(ctx, "X-Archived", hbuf);
|
/freebsd-9.3-release/tools/regression/lib/libc/resolv/ |
H A D | resolv.c | 104 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 120 memset(hbuf, 0, sizeof(hbuf)); 122 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), 126 "%p: reverse %s %s\n", self, hbuf, pbuf);
|
/freebsd-9.3-release/usr.bin/pr/ |
H A D | pr.c | 187 char *hbuf; local 209 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { 214 ohbuf = hbuf + offst; 221 (void)memset(hbuf, (int)' ', offst); 261 prhead(hbuf, fname, pagecnt)) 340 char *hbuf; local 360 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { 364 ohbuf = hbuf + offst; 366 (void)memset(hbuf, (int)' ', offst); 535 if (!nohead && prhead(hbuf, fnam 650 char *hbuf; local 796 char *hbuf; local [all...] |
/freebsd-9.3-release/usr.sbin/faithd/ |
H A D | prefix.c | 131 char hbuf[NI_MAXHOST]; local 134 hbuf, sizeof(hbuf), NULL, 0, niflags)) 136 snprintf(buf, sizeof(buf), "%s/%d", hbuf, prefix->l);
|
H A D | faithd.c | 837 char hbuf[NI_MAXHOST]; 839 hbuf, sizeof(hbuf), NULL, 0, 841 syslog(LOG_INFO, "my interface: %s %s", hbuf,
|
/freebsd-9.3-release/lib/libfetch/ |
H A D | http.c | 525 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) argument 538 if (hbuf->bufsize < conn->buflen + 1) { 539 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) 541 hbuf->bufsize = conn->buflen + 1; 543 strcpy(hbuf->buf, conn->buf); 544 hbuf->buflen = conn->buflen; 565 len = hbuf->buflen + conn->buflen; 566 if (hbuf->bufsize < len + 1) { 568 if ((hbuf 1508 char hbuf[MAXHOSTNAMELEN + 7], *host; local [all...] |
/freebsd-9.3-release/usr.sbin/config/ |
H A D | mkoptions.c | 293 static char hbuf[MAXPATHLEN]; local 307 (void)strlcpy(hbuf, path(nbuf), sizeof(hbuf)); 308 return (hbuf);
|
/freebsd-9.3-release/usr.sbin/sysinstall/ |
H A D | media.c | 317 char *cp, hbuf[MAXHOSTNAMELEN], *hostname, *dir; local 364 SAFE_STRCPY(hbuf, cp + 6); 365 hostname = hbuf; 464 char *cp, *idx, hbuf[MAXHOSTNAMELEN], *hostname; local 482 SAFE_STRCPY(hbuf, cp); 483 hostname = hbuf; 521 char *cp, hbuf[MAXPATHLEN], *hostname, *dir; local 564 SAFE_STRCPY(hbuf, cp + 7); 565 hostname = hbuf;
|
/freebsd-9.3-release/lib/libc/resolv/ |
H A D | res_send.c | 1102 char hbuf[NI_MAXHOST]; local 1106 if (getnameinfo(address, alen, hbuf, sizeof(hbuf), 1108 strncpy(hbuf, "?", sizeof(hbuf) - 1); 1109 hbuf[sizeof(hbuf) - 1] = '\0'; 1114 string, hbuf, sbuf, strerror(error));
|
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-icmp6.c | 1257 char hbuf[NI_MAXHOST]; local 1325 if (inet_ntop(AF_INET6, &match->rpm_prefix, hbuf, sizeof(hbuf))) 1326 printf(",%s/%u", hbuf, match->rpm_matchlen); 1368 if (inet_ntop(AF_INET6, &use->rpu_prefix, hbuf, 1369 sizeof(hbuf))) 1370 printf("%s/%u/%u", hbuf, use->rpu_uselen,
|
/freebsd-9.3-release/lib/libz/ |
H A D | inflate.c | 25 * - Make hbuf[] unsigned char to match parameter type in inflate.c 443 hbuf[0] = (unsigned char)(word); \ 444 hbuf[1] = (unsigned char)((word) >> 8); \ 445 check = crc32(check, hbuf, 2); \ 450 hbuf[0] = (unsigned char)(word); \ 451 hbuf[1] = (unsigned char)((word) >> 8); \ 452 hbuf[2] = (unsigned char)((word) >> 16); \ 453 hbuf[3] = (unsigned char)((word) >> 24); \ 454 check = crc32(check, hbuf, 4); \ 623 unsigned char hbuf[ local [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/zmod/ |
H A D | inflate.c | 32 * - Make hbuf[] unsigned char to match parameter type in inflate.c 394 hbuf[0] = (unsigned char)(word); \ 395 hbuf[1] = (unsigned char)((word) >> 8); \ 396 check = crc32(check, hbuf, 2); \ 401 hbuf[0] = (unsigned char)(word); \ 402 hbuf[1] = (unsigned char)((word) >> 8); \ 403 hbuf[2] = (unsigned char)((word) >> 16); \ 404 hbuf[3] = (unsigned char)((word) >> 24); \ 405 check = crc32(check, hbuf, 4); \ 579 unsigned char hbuf[ local [all...] |
/freebsd-9.3-release/libexec/tftpd/ |
H A D | tftpd.c | 348 char hbuf[NI_MAXHOST]; local 354 hbuf, sizeof(hbuf), NULL, 0, 356 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf);
|
/freebsd-9.3-release/usr.sbin/ndp/ |
H A D | ndp.c | 824 static char hbuf[NI_MAXHOST]; local 828 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)), 829 sizeof(hbuf)); 832 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n); 834 snprintf(hbuf, sizeof(hbuf), "(incomplete)"); 836 return(hbuf);
|
/freebsd-9.3-release/contrib/tcsh/ |
H A D | ed.chared.c | 2151 Char *hbuf; local 2163 hbuf = NULL; 2175 hbuf = expand_lex(&hp->Hlex, 0, INT_MAX); 2176 cp = Strend(hbuf); 2177 bp = hbuf; 2197 hbuf = expand_lex(&hp->Hlex, 0, INT_MAX); 2198 cp = Strend(hbuf); 2199 bp = hbuf; 2227 xfree(hbuf); 2231 xfree(hbuf); [all...] |
/freebsd-9.3-release/contrib/bind9/lib/dns/rdata/generic/ |
H A D | loc_29.c | 470 char hbuf[sizeof("90000000m")]; local 493 sprintf(hbuf, "%lum", (hp>>4) * poweroften[(hp&0x0f)-2]); 495 sprintf(hbuf, "0.%02lum", (hp>>4) * poweroften[(hp&0x0f)]); 554 sbuf, hbuf, vbuf);
|
/freebsd-9.3-release/contrib/lukemftpd/src/ |
H A D | ftpd.c | 2001 char hbuf[NI_MAXHOST]; local 2005 data_source.su_len, hbuf, sizeof(hbuf), pbuf, 2007 strlcpy(hbuf, "?", sizeof(hbuf)); 2009 hbuf, pbuf, strerror(errno)); 2512 static char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local 2521 hbuf[0] = '\0'; 2523 hbuf, sizeof(hbuf), NUL [all...] |
/freebsd-9.3-release/usr.sbin/rtadvctl/ |
H A D | rtadvctl.c | 870 char hbuf[NI_MAXHOST]; local 888 dname_labeldec(hbuf, sizeof(hbuf), 891 hbuf, sec2str(ltime, ssbuf));
|
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | rtsol.c | 684 char hbuf[NI_MAXHOST]; local 692 rai->rai_saddr.sin6_len, hbuf, sizeof(hbuf), NULL, 0, 695 sprintf(rsid, "%s:%s:[%s]", ifname, origin, hbuf);
|