Searched refs:hbuf (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-10-stable/lib/libc/net/
H A Drcmdsh.c67 static char hbuf[NI_MAXHOST]; local
94 strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1);
95 hbuf[sizeof(hbuf) - 1] = '\0';
96 *ahost = hbuf;
/freebsd-10-stable/contrib/sendmail/src/
H A Dsasl.c249 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 Ddaemon.c99 ** host_map_lookup(map, hbuf, avp, pstat)
100 ** Convert the entry in hbuf into a canonical form.
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[
3936 char hbuf[MAXNAME + 1]; local
[all...]
H A Dheaders.c201 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 Dparseaddr.c1967 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-10-stable/usr.sbin/traceroute6/
H A Dtraceroute6.c370 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));
1199 char hbuf[NI_MAXHOST]; local
1382 char hbuf[NI_MAXHOST]; local
[all...]
/freebsd-10-stable/usr.bin/pr/
H A Dpr.c188 char *hbuf; local
210 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) {
216 ohbuf = hbuf + offst;
223 (void)memset(hbuf, (int)' ', offst);
263 prhead(hbuf, fname, pagecnt))
312 free(hbuf);
316 free(hbuf);
348 char *hbuf = NULL; local
369 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) {
373 ohbuf = hbuf
668 char *hbuf; local
821 char *hbuf = NULL; local
[all...]
/freebsd-10-stable/contrib/sendmail/libmilter/
H A Dexample.c52 char hbuf[1024]; local
74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host);
75 smfi_addheader(ctx, "X-Archived", hbuf);
/freebsd-10-stable/tools/regression/lib/libc/resolv/
H A Dresolv.c107 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
123 memset(hbuf, 0, sizeof(hbuf));
125 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
129 "%p: reverse %s %s\n", self, hbuf, pbuf);
/freebsd-10-stable/usr.sbin/ctld/
H A Ddiscovery.c171 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
182 hbuf, sizeof(hbuf), sbuf, sizeof(sbuf),
190 if (strcmp(hbuf, "0.0.0.0") == 0)
192 ret = asprintf(&buf, "%s:%s,%d", hbuf, sbuf,
196 if (strcmp(hbuf, "::") == 0)
198 ret = asprintf(&buf, "[%s]:%s,%d", hbuf, sbuf,
/freebsd-10-stable/lib/libc/tests/resolv/
H A Dresolv_test.c96 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
110 memset(hbuf, 0, sizeof(hbuf));
112 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
115 "%p: reverse %s %s\n", self, hbuf, pbuf);
/freebsd-10-stable/usr.sbin/faithd/
H A Dprefix.c127 char hbuf[NI_MAXHOST]; local
130 hbuf, sizeof(hbuf), NULL, 0, niflags))
132 snprintf(buf, sizeof(buf), "%s/%d", hbuf, prefix->l);
/freebsd-10-stable/usr.sbin/config/
H A Dmkoptions.c293 static char hbuf[MAXPATHLEN]; local
307 (void)strlcpy(hbuf, path(nbuf), sizeof(hbuf));
308 return (hbuf);
/freebsd-10-stable/lib/libfetch/
H A Dhttp.c528 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) argument
541 if (hbuf->bufsize < conn->buflen + 1) {
542 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL)
544 hbuf->bufsize = conn->buflen + 1;
546 strcpy(hbuf->buf, conn->buf);
547 hbuf->buflen = conn->buflen;
568 len = hbuf->buflen + conn->buflen;
569 if (hbuf->bufsize < len + 1) {
571 if ((hbuf
1544 char hbuf[MAXHOSTNAMELEN + 7], *host; local
[all...]
H A Dcommon.c249 char hbuf[256], sbuf[8]; local
271 len = snprintf(hbuf, sizeof(hbuf),
275 if (len >= (int)sizeof(hbuf)) {
279 host = hbuf;
/freebsd-10-stable/lib/libc/resolv/
H A Dres_send.c1105 char hbuf[NI_MAXHOST]; local
1109 if (getnameinfo(address, alen, hbuf, sizeof(hbuf),
1111 strncpy(hbuf, "?", sizeof(hbuf) - 1);
1112 hbuf[sizeof(hbuf) - 1] = '\0';
1117 string, hbuf, sbuf, strerror(error));
/freebsd-10-stable/usr.sbin/ndp/
H A Dndp.c797 static char hbuf[NI_MAXHOST]; local
800 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)),
801 sizeof(hbuf));
804 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n);
806 snprintf(hbuf, sizeof(hbuf), "(incomplete)");
808 return(hbuf);
/freebsd-10-stable/usr.bin/netstat/
H A Dinet6.c1079 char hbuf[NI_MAXHOST], *cp; local
1103 error = getnameinfo((struct sockaddr *)&sin6, sizeof(sin6), hbuf,
1104 sizeof(hbuf), NULL, 0, flags);
1107 (cp = strchr(hbuf, '.')) &&
1110 strcpy(line, hbuf);
/freebsd-10-stable/contrib/apr/network_io/unix/
H A Dsendrecv.c820 void * hbuf=NULL, * tbuf=NULL; local
852 hbuf = malloc(parms.header_length);
857 hbuf = apr_palloc(sock->pool, parms.header_length);
861 memcpy((char *)hbuf + ptr, hdtr->headers[i].iov_base,
865 parms.header_data = hbuf;
938 if(hbuf) free(hbuf);
/freebsd-10-stable/contrib/tcpdump/
H A Dprint-icmp6.c1257 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-10-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dinflate.c32 * - 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-10-stable/libexec/tftpd/
H A Dtftpd.c349 char hbuf[NI_MAXHOST]; local
355 hbuf, sizeof(hbuf), NULL, 0,
357 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf);
/freebsd-10-stable/crypto/openssh/
H A Dkex.c975 u_int8_t hbuf[2048], sbuf[2048], obuf[SSH_DIGEST_MAX_LENGTH]; local
982 if (hlen < (512 / 8) || (u_int)hlen > sizeof(hbuf) ||
985 if (BN_bn2bin(host_modulus, hbuf) <= 0 ||
994 if (ssh_digest_update(hashctx, hbuf, hlen) != 0 ||
1005 explicit_bzero(hbuf, sizeof(hbuf));
/freebsd-10-stable/contrib/tcsh/
H A Ded.chared.c2160 Char *hbuf; local
2172 hbuf = NULL;
2184 hbuf = expand_lex(&hp->Hlex, 0, INT_MAX);
2185 cp = Strend(hbuf);
2186 bp = hbuf;
2206 hbuf = expand_lex(&hp->Hlex, 0, INT_MAX);
2207 cp = Strend(hbuf);
2208 bp = hbuf;
2236 xfree(hbuf);
2240 xfree(hbuf);
[all...]
/freebsd-10-stable/contrib/zlib/
H A Dinflate.c25 * - Make hbuf[] unsigned char to match parameter type in inflate.c
460 hbuf[0] = (unsigned char)(word); \
461 hbuf[1] = (unsigned char)((word) >> 8); \
462 check = crc32(check, hbuf, 2); \
467 hbuf[0] = (unsigned char)(word); \
468 hbuf[1] = (unsigned char)((word) >> 8); \
469 hbuf[2] = (unsigned char)((word) >> 16); \
470 hbuf[3] = (unsigned char)((word) >> 24); \
471 check = crc32(check, hbuf, 4); \
640 unsigned char hbuf[ local
[all...]

Completed in 214 milliseconds

12