| /src/lib/libwrap/ |
| socket.c | 63 static char hbuf[MAXHOSTNAMELEN + 1]; local 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 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 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 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 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 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 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 787 hbuf, (socklen_t)sizeof(hbuf), NULL, 0, 789 syslog(LOG_INFO, "my interface: %s %s", hbuf,
|
| /src/external/bsd/mdocml/dist/ |
| tbl_html.c | 123 char hbuf[32], vbuf[32]; local 195 (void)snprintf(hbuf, sizeof(hbuf), 197 hspans = hbuf;
|
| /src/usr.bin/systat/ |
| netcmds.c | 365 char hbuf[NI_MAXHOST]; local 376 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0, 378 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); 381 printw("%s ", hbuf);
|
| /src/usr.sbin/ypserv/ypserv/ |
| ypserv_proc.c | 239 char hbuf[NI_MAXHOST]; local 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/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 [all...] |
| /src/games/hack/ |
| hack.unix.c | 165 static struct stat buf, hbuf; variable in typeref:struct: 175 if(stat(name, &hbuf)) 204 if (stat(filename, &hbuf) == 0) 222 if (buf.st_mtime < hbuf.st_mtime) {
|
| /src/lib/libc/net/ |
| getnameinfo.c | 394 char hbuf[4096]; local 397 hbuf, sizeof(hbuf), &he);
|
| rcmd.c | 99 static char hbuf[MAXHOSTNAMELEN]; local 126 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf)); 127 *ahost = hbuf; 158 static char hbuf[MAXHOSTNAMELEN]; local 180 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf)); 181 *ahost = hbuf; 244 char hbuf[NI_MAXHOST]; local 247 hbuf[0] = '\0' [all...] |
| /src/libexec/rexecd/ |
| rexecd.c | 128 char hbuf[NI_MAXHOST]; local 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 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 438 hbuf, sizeof(hbuf)); local 440 hbuf, ntohs(th->th_sport)); 448 hbuf, sizeof(hbuf)); local 450 hbuf, ntohs(th->th_dport));
|
| /src/external/bsd/openldap/dist/servers/slapd/back-wt/ |
| tools.c | 40 static dn_id hbuf[HOLE_SIZE], *holes = hbuf; variable
|
| /src/external/cddl/osnet/dist/uts/common/zmod/ |
| 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[4]; /* buffer for gzip header crc calculation * local [all...] |
| /src/external/gpl3/binutils/dist/zlib/ |
| inflate.c | 25 * - Make hbuf[] unsigned char to match parameter type in inflate.c 428 hbuf[0] = (unsigned char)(word); \ 429 hbuf[1] = (unsigned char)((word) >> 8); \ 430 check = crc32(check, hbuf, 2); \ 435 hbuf[0] = (unsigned char)(word); \ 436 hbuf[1] = (unsigned char)((word) >> 8); \ 437 hbuf[2] = (unsigned char)((word) >> 16); \ 438 hbuf[3] = (unsigned char)((word) >> 24); \ 439 check = crc32(check, hbuf, 4); \ 605 unsigned char hbuf[4]; /* buffer for gzip header crc calculation * local [all...] |
| /src/external/gpl3/binutils.old/dist/zlib/ |
| inflate.c | 25 * - Make hbuf[] unsigned char to match parameter type in inflate.c 461 hbuf[0] = (unsigned char)(word); \ 462 hbuf[1] = (unsigned char)((word) >> 8); \ 463 check = crc32(check, hbuf, 2); \ 468 hbuf[0] = (unsigned char)(word); \ 469 hbuf[1] = (unsigned char)((word) >> 8); \ 470 hbuf[2] = (unsigned char)((word) >> 16); \ 471 hbuf[3] = (unsigned char)((word) >> 24); \ 472 check = crc32(check, hbuf, 4); \ 641 unsigned char hbuf[4]; /* buffer for gzip header crc calculation * local [all...] |
| /src/lib/libc/resolv/ |
| res_send.c | 1147 char hbuf[NI_MAXHOST]; local 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 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 686 hbuf, sizeof(hbuf), NULL, 0, flag); 688 snprintf(hbuf, sizeof(hbuf), "invalid"); 690 snprintf(line, sizeof(line), "%s/%d", hbuf, masklen);
|