HomeSort by: relevance | last modified time | path
    Searched defs:hbuf (Results 1 - 25 of 38) sorted by relevancy

1 2

  /src/lib/libwrap/
socket.c 63 static char hbuf[MAXHOSTNAMELEN + 1]; local in function:append_dot
70 if (strchr(name, '.') == 0 || strlen(name) + 2 > sizeof(hbuf))
71 strlcpy(hbuf, name, sizeof(hbuf));
73 (void)snprintf(hbuf, sizeof(hbuf), "%s.", name);
74 return hbuf;
  /src/usr.sbin/rtadvd/
dump.c 80 static char hbuf[NI_MAXHOST]; local in function:ether_str
84 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
85 snprintf(hbuf, sizeof(hbuf), "<invalid>");
87 snprintf(hbuf, sizeof(hbuf), "NONE");
89 return(hbuf);
  /src/bin/dd/
misc.c 194 char hbuf[7], nbuf[32]; local in function:dd_write_msg
222 if (humanize_number(hbuf, sizeof(hbuf),
226 ADDS(hbuf);
234 if (humanize_number(hbuf, sizeof(hbuf),
238 ADDS(hbuf); ADDS("/sec");
  /src/sbin/ifconfig/
af_inet.c 112 char hbuf[NI_MAXHOST]; local in function:in_alias
121 hbuf, sizeof(hbuf), NULL, 0, niflag))
122 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? */
123 printf("\tinet %s", hbuf);
130 hbuf, sizeof(hbuf), NULL, 0, niflag))
131 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? *
    [all...]
util.c 245 char hbuf[NI_MAXHOST]; local in function:print_link_addresses
287 hbuf, sizeof(hbuf), NULL, 0,
289 hbuf[0] != '\0') {
291 print_active_only ? "address:" : "link", hbuf);
af_inet6.c 266 char hbuf[NI_MAXHOST]; local in function:in6_alias
275 hbuf, sizeof(hbuf), NULL, 0, niflag))
276 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? */
277 printf("\tinet6 %s", hbuf);
286 hbuf[0] = '\0';
288 hbuf, sizeof(hbuf), NULL, 0, niflag))
289 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? *
    [all...]
  /src/usr.sbin/faithd/
prefix.c 127 char hbuf[NI_MAXHOST]; local in function:prefix_string
130 hbuf, (socklen_t)sizeof(hbuf), NULL, 0, niflags))
132 (void)snprintf(buf, sizeof(buf), "%s/%d", hbuf, prefix->l);
faithd.c 785 char hbuf[NI_MAXHOST]; local in function:grab_myaddrs
787 hbuf, (socklen_t)sizeof(hbuf), NULL, 0,
789 syslog(LOG_INFO, "my interface: %s %s", hbuf,
  /src/usr.sbin/ypserv/ypserv/
ypserv_proc.c 239 char hbuf[NI_MAXHOST]; local in function:ypproc_xfr_2_svc
265 if (getnameinfo(caller, (socklen_t)caller->sa_len, hbuf,
266 sizeof(hbuf), NULL, 0, 0))
270 "-C", tid, prog, hbuf, port, ypx->map_parms.map, NULL);
  /src/usr.bin/systat/
netcmds.c 365 char hbuf[NI_MAXHOST]; local in function:showhosts
376 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0,
378 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
381 printw("%s ", hbuf);
  /src/games/hack/
hack.unix.c 165 static struct stat buf, hbuf; variable in typeref:struct:stat
175 if(stat(name, &hbuf))
204 if (stat(filename, &hbuf) == 0)
222 if (buf.st_mtime < hbuf.st_mtime) {
  /src/libexec/rexecd/
rexecd.c 128 char hbuf[NI_MAXHOST]; local in function:main
129 if (getnameinfo((struct sockaddr *)&from, fromlen, hbuf,
130 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) {
131 (void)strlcpy(hbuf, "invalid", sizeof(hbuf));
136 hbuf);
  /src/sbin/canconfig/
canconfig.c 358 char hbuf[8]; local in function:show_timings
371 humanize_number(hbuf, sizeof(hbuf), cltc.cltc_clock_freq, "Hz",
376 prefix, hbuf,
396 humanize_number(hbuf, sizeof(hbuf), bps, "bps",
398 printf(", %s", hbuf);
  /src/usr.sbin/trpt/
trpt.c 393 char hbuf[MAXHOSTNAMELEN]; local in function:tcp_trace
438 hbuf, sizeof(hbuf));
440 hbuf, ntohs(th->th_sport));
448 hbuf, sizeof(hbuf));
450 hbuf, ntohs(th->th_dport));
  /src/lib/libc/net/
getnameinfo.c 394 char hbuf[4096]; local in function:getnameinfo_inet
397 hbuf, sizeof(hbuf), &he);
rcmd.c 99 static char hbuf[MAXHOSTNAMELEN]; local in function:rcmd_af
126 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf));
127 *ahost = hbuf;
158 static char hbuf[MAXHOSTNAMELEN]; local in function:orcmd_af
180 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf));
181 *ahost = hbuf;
244 char hbuf[NI_MAXHOST]; local in function:resrcmd
247 hbuf[0] = '\0'
    [all...]
  /src/lib/libc/resolv/
res_send.c 1147 char hbuf[NI_MAXHOST]; local in function:Aerror
1151 if (getnameinfo(address, alen, hbuf,
1152 (socklen_t)sizeof(hbuf), sbuf, (socklen_t)sizeof(sbuf),
1154 strncpy(hbuf, "?", sizeof(hbuf) - 1);
1155 hbuf[sizeof(hbuf) - 1] = '\0';
1160 string, hbuf, sbuf, strerror(error));
  /src/libexec/rshd/
rshd.c 223 char hbuf[NI_MAXHOST]; local in function:main
224 if (getnameinfo((struct sockaddr *)&from, fromlen, hbuf,
225 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) {
226 strlcpy(hbuf, "invalid", sizeof(hbuf));
229 hbuf);
  /src/sbin/route/
rtutil.c 605 char hbuf[NI_MAXHOST]; local in function:netname6
686 hbuf, sizeof(hbuf), NULL, 0, flag);
688 snprintf(hbuf, sizeof(hbuf), "invalid");
690 snprintf(line, sizeof(line), "%s/%d", hbuf, masklen);
  /src/common/dist/zlib/
inflate.c 27 * - Make hbuf[] unsigned char to match parameter type in inflate.c
430 hbuf[0] = (unsigned char)(word); \
431 hbuf[1] = (unsigned char)((word) >> 8); \
432 check = crc32(check, hbuf, 2); \
437 hbuf[0] = (unsigned char)(word); \
438 hbuf[1] = (unsigned char)((word) >> 8); \
439 hbuf[2] = (unsigned char)((word) >> 16); \
440 hbuf[3] = (unsigned char)((word) >> 24); \
441 check = crc32(check, hbuf, 4); \
607 unsigned char hbuf[4]; /* buffer for gzip header crc calculation * local in function:inflate
    [all...]
  /src/libexec/rlogind/
rlogind.c 205 char hbuf[NI_MAXHOST]; local in function:main
206 if (getnameinfo((struct sockaddr *)&from, fromlen, hbuf,
207 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) {
208 strlcpy(hbuf, "invalid", sizeof(hbuf));
211 hbuf);
  /src/share/examples/refuse/ian/libfetch/
http.c 815 char hbuf[MAXHOSTNAMELEN + 7], *host; local in function:_http_request
863 snprintf(hbuf, sizeof(hbuf), "[%s]", url->host);
864 host = hbuf;
868 if (host != hbuf) {
869 strcpy(hbuf, host);
870 host = hbuf;
872 snprintf(hbuf + strlen(hbuf),
873 sizeof(hbuf) - strlen(hbuf), ":%d", url->port)
    [all...]
  /src/usr.bin/pr/
pr.c 183 char *hbuf = NULL; local in function:onecol
204 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL)
207 ohbuf = hbuf + offst;
214 (void)memset(hbuf, (int)' ', offst);
256 prhead(hbuf, fname, pagecnt))
312 free(hbuf);
345 char *hbuf = NULL; local in function:vertcol
364 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL)
366 ohbuf = hbuf + offst;
368 (void)memset(hbuf, (int)' ', offst)
663 char *hbuf = NULL; local in function:horzcol
818 char *hbuf = NULL; local in function:mulfile
    [all...]
  /src/usr.sbin/arp/
arp.c 623 char hbuf[NI_MAXHOST]; local in function:sdl_print
627 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
630 (void)printf("%s", hbuf);
  /src/usr.sbin/traceroute6/
traceroute6.c 362 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local in function:main
508 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
509 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
510 strlcpy(hbuf, "?", sizeof(hbuf));
512 hostname, hbuf);
661 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf,
662 sizeof(hbuf), NULL, 0, NI_NUMERICHOST))
663 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
930 char hbuf[NI_MAXHOST]; local in function:packet_ok
1075 char hbuf[NI_MAXHOST]; local in function:print
    [all...]

Completed in 28 milliseconds

1 2