| /freebsd-9-stable/usr.sbin/traceroute6/ |
| 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)); 896 fprintf(stderr, " to %s (%s)", hostname, hbuf); 1196 char hbuf[NI_MAXHOST]; local [all …]
|
| /freebsd-9-stable/contrib/sendmail/src/ |
| 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);
|
| D | daemon.c | 3415 static char hbuf[MAXNAME + MAXAUTHINFO + 11]; local 3436 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName, 3439 sm_dprintf("getauthinfo: %s\n", hbuf); 3440 return hbuf; 3706 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf)); 3707 cleanstrcpy(&hbuf[6], p, MAXAUTHINFO); 3710 cleanstrcpy(hbuf, p, MAXAUTHINFO); 3711 len = strlen(hbuf); 3712 (void) sm_strlcpyn(&hbuf[len], sizeof(hbuf) - len, 2, "@", 3745 (void) sm_strlcpy(hbuf, RealHostName, sizeof(hbuf)); [all …]
|
| 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)]; 1157 (void) sm_snprintf(p, SPACELEFT(hbuf, p),
|
| 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[0])) 2060 setstat(atoi(hbuf)); 2065 if (sm_strcasecmp(ep->ec_name, hbuf) == 0) [all …]
|
| /freebsd-9-stable/lib/libc/net/ |
| 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-stable/usr.bin/pr/ |
| D | pr.c | 187 char *hbuf; in onecol() local 209 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { in onecol() 214 ohbuf = hbuf + offst; in onecol() 221 (void)memset(hbuf, (int)' ', offst); in onecol() 261 prhead(hbuf, fname, pagecnt)) in onecol() 340 char *hbuf; in vertcol() local 360 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { in vertcol() 364 ohbuf = hbuf + offst; in vertcol() 366 (void)memset(hbuf, (int)' ', offst); in vertcol() 535 if (!nohead && prhead(hbuf, fname, pagecnt)) in vertcol() [all …]
|
| /freebsd-9-stable/lib/libfetch/ |
| D | http.c | 527 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) in http_next_header() argument 540 if (hbuf->bufsize < conn->buflen + 1) { in http_next_header() 541 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header() 543 hbuf->bufsize = conn->buflen + 1; in http_next_header() 545 strcpy(hbuf->buf, conn->buf); in http_next_header() 546 hbuf->buflen = conn->buflen; in http_next_header() 567 len = hbuf->buflen + conn->buflen; in http_next_header() 568 if (hbuf->bufsize < len + 1) { in http_next_header() 570 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header() 572 hbuf->bufsize = len + 1; in http_next_header() [all …]
|
| /freebsd-9-stable/tools/regression/lib/libc/resolv/ |
| D | resolv.c | 107 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; in resolv_getaddrinfo() local 123 memset(hbuf, 0, sizeof(hbuf)); in resolv_getaddrinfo() 125 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), in resolv_getaddrinfo() 129 "%p: reverse %s %s\n", self, hbuf, pbuf); in resolv_getaddrinfo()
|
| /freebsd-9-stable/contrib/sendmail/libmilter/ |
| 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-stable/usr.sbin/faithd/ |
| D | prefix.c | 131 char hbuf[NI_MAXHOST]; in prefix_string() local 134 hbuf, sizeof(hbuf), NULL, 0, niflags)) in prefix_string() 136 snprintf(buf, sizeof(buf), "%s/%d", hbuf, prefix->l); in prefix_string()
|
| 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-stable/usr.sbin/sysinstall/ |
| D | media.c | 317 char *cp, hbuf[MAXHOSTNAMELEN], *hostname, *dir; in mediaSetFTP() local 364 SAFE_STRCPY(hbuf, cp + 6); in mediaSetFTP() 365 hostname = hbuf; in mediaSetFTP() 464 char *cp, *idx, hbuf[MAXHOSTNAMELEN], *hostname; in mediaSetHTTP() local 482 SAFE_STRCPY(hbuf, cp); in mediaSetHTTP() 483 hostname = hbuf; in mediaSetHTTP() 521 char *cp, hbuf[MAXPATHLEN], *hostname, *dir; in mediaSetHTTPDirect() local 564 SAFE_STRCPY(hbuf, cp + 7); in mediaSetHTTPDirect() 565 hostname = hbuf; in mediaSetHTTPDirect()
|
| /freebsd-9-stable/usr.sbin/config/ |
| D | mkoptions.c | 293 static char hbuf[MAXPATHLEN]; in tooption() local 307 (void)strlcpy(hbuf, path(nbuf), sizeof(hbuf)); in tooption() 308 return (hbuf); in tooption()
|
| /freebsd-9-stable/lib/libc/resolv/ |
| D | res_send.c | 1104 char hbuf[NI_MAXHOST]; in Aerror() local 1108 if (getnameinfo(address, alen, hbuf, sizeof(hbuf), in Aerror() 1110 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror() 1111 hbuf[sizeof(hbuf) - 1] = '\0'; in Aerror() 1116 string, hbuf, sbuf, strerror(error)); in Aerror()
|
| /freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/ |
| D | 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[4]; /* buffer for gzip header crc calculation */ local
|
| /freebsd-9-stable/lib/libz/ |
| D | 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[4]; /* buffer for gzip header crc calculation */ local
|
| /freebsd-9-stable/usr.sbin/ndp/ |
| D | ndp.c | 829 static char hbuf[NI_MAXHOST]; in ether_str() local 833 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)), in ether_str() 834 sizeof(hbuf)); in ether_str() 837 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n); in ether_str() 839 snprintf(hbuf, sizeof(hbuf), "(incomplete)"); in ether_str() 841 return(hbuf); in ether_str()
|
| /freebsd-9-stable/contrib/tcpdump/ |
| D | print-icmp6.c | 1257 char hbuf[NI_MAXHOST]; in icmp6_rrenum_print() local 1325 if (inet_ntop(AF_INET6, &match->rpm_prefix, hbuf, sizeof(hbuf))) in icmp6_rrenum_print() 1326 printf(",%s/%u", hbuf, match->rpm_matchlen); in icmp6_rrenum_print() 1368 if (inet_ntop(AF_INET6, &use->rpu_prefix, hbuf, in icmp6_rrenum_print() 1369 sizeof(hbuf))) in icmp6_rrenum_print() 1370 printf("%s/%u/%u", hbuf, use->rpu_uselen, in icmp6_rrenum_print()
|
| /freebsd-9-stable/libexec/tftpd/ |
| D | tftpd.c | 348 char hbuf[NI_MAXHOST]; in main() local 354 hbuf, sizeof(hbuf), NULL, 0, in main() 356 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf); in main()
|
| /freebsd-9-stable/contrib/tcsh/ |
| D | tc.func.c | 1855 static char hbuf[NI_MAXHOST]; local 1870 getnameinfo((struct sockaddr *)&saddr, len, hbuf, sizeof(hbuf), 1872 host = hbuf; 1944 strncpy(hbuf, res->ai_canonname, sizeof(hbuf)); 1945 hbuf[sizeof(hbuf) - 1] = '\0'; 1946 host = hbuf;
|
| /freebsd-9-stable/usr.sbin/rtadvctl/ |
| D | rtadvctl.c | 870 char hbuf[NI_MAXHOST]; in action_show_dnssl() local 888 dname_labeldec(hbuf, sizeof(hbuf), in action_show_dnssl() 891 hbuf, sec2str(ltime, ssbuf)); in action_show_dnssl()
|
| /freebsd-9-stable/contrib/bind9/lib/dns/rdata/generic/ |
| D | loc_29.c | 470 char hbuf[sizeof("90000000m")]; in totext_loc() local 497 sprintf(hbuf, "%lum", (hp>>4) * poweroften[(hp&0x0f)-2]); in totext_loc() 499 sprintf(hbuf, "0.%02lum", (hp>>4) * poweroften[(hp&0x0f)]); in totext_loc() 558 sbuf, hbuf, vbuf); in totext_loc()
|
| /freebsd-9-stable/crypto/heimdal/appl/telnet/telnet/ |
| D | commands.c | 1583 char hbuf[256+1]; in env_init() local 1588 gethostname(hbuf, 256); in env_init() 1589 hbuf[256] = '\0'; in env_init() 1592 if (strchr(hbuf, '.') == 0) { in env_init() 1598 error = getaddrinfo (hbuf, NULL, &hints, &ai); in env_init() 1602 strlcpy (hbuf, in env_init() 1611 error = asprintf (&cp, "%s%s", hbuf, cp2); in env_init()
|
| /freebsd-9-stable/usr.sbin/rtsold/ |
| D | rtsol.c | 684 char hbuf[NI_MAXHOST]; in make_rsid() local 692 rai->rai_saddr.sin6_len, hbuf, sizeof(hbuf), NULL, 0, in make_rsid() 695 sprintf(rsid, "%s:%s:[%s]", ifname, origin, hbuf); in make_rsid()
|