/macosx-10.10.1/network_cmds-457/traceroute6.tproj/ |
H A D | traceroute6.c | 363 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local 614 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, 615 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) 616 strlcpy(hbuf, "?", sizeof(hbuf)); 618 "addresses; using %s\n", hostname, hbuf); 864 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf, 865 sizeof(hbuf), NULL, 0, NI_NUMERICHOST)) 866 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); 1167 char hbuf[NI_MAXHOST]; local 1350 char hbuf[NI_MAXHOST]; local [all...] |
/macosx-10.10.1/xnu-2782.1.97/SETUP/config/ |
H A D | mkheaders.c | 198 static char hbuf[MAXPATHLEN]; local 199 (void) snprintf(hbuf, sizeof hbuf, "%s.h", path(dev)); 200 hbuf[MAXPATHLEN-1] = '\0'; 201 return (hbuf);
|
/macosx-10.10.1/tcl-105/tcl/tcl/unix/ |
H A D | tclUnixCompat.c | 96 char hbuf[2048]; 394 return gethostbyname_r(name, &tsdPtr->hent, tsdPtr->hbuf, 395 sizeof(tsdPtr->hbuf), &h_errno); 401 result = gethostbyname_r(name, &tsdPtr->hent, tsdPtr->hbuf, 402 sizeof(tsdPtr->hbuf), &hePtr, &h_errno); 420 if (CopyHostent(&tsdPtr->hent, tsdPtr->hbuf, 421 sizeof(tsdPtr->hbuf)) == -1) { 465 return gethostbyaddr_r(addr, length, type, &tsdPtr->hent, tsdPtr->hbuf, 466 sizeof(tsdPtr->hbuf), &h_errno); 472 return (gethostbyaddr_r(addr, length, type, &tsdPtr->hent, tsdPtr->hbuf, 95 char hbuf[2048]; member in struct:ThreadSpecificData [all...] |
/macosx-10.10.1/tcl-105/tcl84/tcl/unix/ |
H A D | tclUnixCompat.c | 53 char hbuf[2048]; member in struct:ThreadSpecificData 593 return gethostbyname_r(name, &tsdPtr->hent, tsdPtr->hbuf, 594 sizeof(tsdPtr->hbuf), &h_errno); 600 result = gethostbyname_r(name, &tsdPtr->hent, tsdPtr->hbuf, 601 sizeof(tsdPtr->hbuf), &hePtr, &h_errno); 615 if (CopyHostent(&tsdPtr->hent, tsdPtr->hbuf, 616 sizeof(tsdPtr->hbuf)) == -1) { 656 return gethostbyaddr_r(addr, length, type, &tsdPtr->hent, tsdPtr->hbuf, 657 sizeof(tsdPtr->hbuf), &h_errno); 662 return (gethostbyaddr_r(addr, length, type, &tsdPtr->hent, tsdPtr->hbuf, [all...] |
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/sample/ |
H A D | client.c | 338 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 403 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags); 406 strcpy(hbuf, "unknown"); 409 snprintf(localaddr, sizeof(localaddr), "%s;%s", hbuf, pbuf); 422 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags); 425 strcpy(hbuf, "unknown"); 428 snprintf(remoteaddr, sizeof(remoteaddr), "%s;%s", hbuf, pbuf);
|
H A D | server.c | 391 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 435 error = getnameinfo((struct sockaddr *)&local_ip, salen, hbuf, 436 sizeof(hbuf), pbuf, sizeof(pbuf), niflags); 439 strcpy(hbuf, "unknown"); 442 snprintf(localaddr, sizeof(localaddr), "%s;%s", hbuf, pbuf); 454 error = getnameinfo((struct sockaddr *)&remote_ip, salen, hbuf, 455 sizeof(hbuf), pbuf, sizeof(pbuf), niflags); 458 strcpy(hbuf, "unknown"); 461 snprintf(remoteaddr, sizeof(remoteaddr), "%s;%s", hbuf, pbuf);
|
/macosx-10.10.1/network_cmds-457/rtadvd.tproj/ |
H A D | dump.c | 105 static char hbuf[32]; local 110 snprintf(hbuf, sizeof(hbuf), "%x:%x:%x:%x:%x:%x", 113 snprintf(hbuf, sizeof(hbuf), "NONE"); 115 return(hbuf);
|
/macosx-10.10.1/ruby-106/ruby/ext/socket/ |
H A D | raddrinfo.c | 253 char hbuf[1024]; local 255 make_ipaddr0(addr, hbuf, sizeof(hbuf)); 256 return rb_str_new2(hbuf); 287 host_str(VALUE host, char *hbuf, size_t len, int *flags_ptr) argument 295 make_inetaddr(htonl(i), hbuf, len); local 297 return hbuf; 305 make_inetaddr(INADDR_ANY, hbuf, len); 309 make_inetaddr(INADDR_BROADCAST, hbuf, len); 317 strcpy(hbuf, nam 356 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 396 char hbuf[1024], pbuf[1024]; local 493 char hbuf[NI_MAXHOST]; local 699 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 1001 char hbuf[1024]; local 1243 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 1582 char hbuf[1024], pbuf[1024]; local [all...] |
H A D | socket.c | 1216 char hbuf[1024], pbuf[1024]; local 1278 strncpy(hbuf, StringValuePtr(host), sizeof(hbuf)); 1279 hbuf[sizeof(hbuf) - 1] = '\0'; 1280 hptr = hbuf; 1308 error = rb_getnameinfo(sap, SA_LEN(sap), hbuf, sizeof(hbuf), 1319 if (strcmp(hbuf, hbuf2) != 0|| strcmp(pbuf, pbuf2) != 0) { 1326 return rb_assoc_new(rb_str_new2(hbuf), rb_str_new [all...] |
/macosx-10.10.1/text_cmds-88/pr/ |
H A D | pr.c | 199 char *hbuf; local 221 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { 226 ohbuf = hbuf + offst; 233 (void)memset(hbuf, (int)' ', offst); 273 prhead(hbuf, fname, pagecnt)) 352 char *hbuf; local 372 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { 376 ohbuf = hbuf + offst; 378 (void)memset(hbuf, (int)' ', offst); 547 if (!nohead && prhead(hbuf, fnam 662 char *hbuf; local 808 char *hbuf; local [all...] |
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/saslauthd/ |
H A D | auth_httpform.c | 516 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; 540 if (getnameinfo(r->ai_addr, r->ai_addrlen, hbuf, sizeof(hbuf), 542 strlcpy(hbuf, "unknown", sizeof(hbuf)); 547 ai->ai_canonname ? ai->ai_canonname : r_host, hbuf, pbuf); 510 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
|
H A D | auth_rimap.c | 319 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; 343 if (getnameinfo(r->ai_addr, r->ai_addrlen, hbuf, sizeof(hbuf), 345 strlcpy(hbuf, "unknown", sizeof(hbuf)); 350 ai->ai_canonname ? ai->ai_canonname : r_host, hbuf, pbuf); 315 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
|
/macosx-10.10.1/Security-57031.1.35/Security/sec/SOSCircle/SecureObjectSync/ |
H A D | SOSPeerInfo.c | 135 static CFDataRef sosSignHash(SecKeyRef privkey, const struct ccdigest_info *di, uint8_t *hbuf) { argument 139 if((stat = SecKeyRawSign(privkey, kSecPaddingNone, hbuf, di->output_size, sig, &siglen)) != 0) { 145 static bool sosVerifyHash(SecKeyRef pubkey, const struct ccdigest_info *di, uint8_t *hbuf, CFDataRef signature) { argument 146 return SecKeyRawVerify(pubkey, kSecPaddingNone, hbuf, di->output_size, 153 uint8_t hbuf[di->output_size]; local 156 require_action_quiet(SOSDescriptionHash(peer, di, hbuf, error), fail, 159 newSignature = sosSignHash(privKey, di, hbuf); 176 uint8_t hbuf[di->output_size]; local 183 require_quiet(SOSDescriptionHash(peer, di, hbuf, error), error_out); 185 require_action_quiet(sosVerifyHash(pubKey, di, hbuf, pee [all...] |
/macosx-10.10.1/sudo-73/src/ |
H A D | testsudoers.c | 113 char hbuf[MAXHOSTNAMELEN + 1]; local 185 if (gethostname(hbuf, sizeof(hbuf)) != 0) 187 hbuf[sizeof(hbuf) - 1] = '\0'; 188 user_host = hbuf;
|
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/contrib/slapd-modules/smbk5pwd/ |
H A D | smbk5pwd.c | 190 DES_cblock hbuf[2]; local 209 err = gcry_cipher_encrypt( h, &hbuf[0], sizeof(key), &StdText, sizeof(key) ); 215 err = gcry_cipher_encrypt( h, &hbuf[1], sizeof(key), &StdText, sizeof(key) ); 222 des_ecb_encrypt( &StdText, &hbuf[0], schedule , DES_ENCRYPT ); 226 des_ecb_encrypt( &StdText, &hbuf[1], schedule , DES_ENCRYPT ); 229 hexify( (char *)hbuf, hash ); 241 char hbuf[HASHLEN]; local 252 MD4_Final( (unsigned char *)hbuf, &ctx ); 254 gcry_md_hash_buffer(GCRY_MD_MD4, hbuf, passwd->bv_val, passwd->bv_len ); 257 hexify( hbuf, has [all...] |
/macosx-10.10.1/dcerpc-61/dcerpc/ncklib/ |
H A D | ipnaf.c | 976 #define he (&hbuf) 977 ATTRIBUTE_UNUSED struct hostent hbuf; 981 ATTRIBUTE_UNUSED struct hostent hbuf; 1024 if (gethostbyname_r((char *)netaddr, &hbuf, 1027 if ((he = gethostbyname_r((char *)netaddr, &hbuf, buf, 1030 if (gethostbyname_r((char *)netaddr, &hbuf, &hdbuf) != 0) 968 ATTRIBUTE_UNUSED struct hostent hbuf; local 972 ATTRIBUTE_UNUSED struct hostent hbuf; local
|
/macosx-10.10.1/network_cmds-457/netstat.tproj/ |
H A D | inet6.c | 1123 char hbuf[NI_MAXHOST]; local 1165 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0) 1166 strlcpy(hbuf, "?", sizeof(hbuf)); 1167 strlcpy(line, hbuf, sizeof(line));
|
/macosx-10.10.1/ksh-23/ksh/src/cmd/ksh93/edit/ |
H A D | emacs.c | 1176 char hbuf[MAXLINE]; local 1178 strcpy(hbuf, "Current command "); 1179 strcat(hbuf, itos(hline)); 1182 strcat(hbuf, " (line "); 1183 strcat(hbuf, itos(hloff+1)); 1184 strcat(hbuf, ")"); 1189 strcat(hbuf, "; Previous command "); 1190 strcat(hbuf, itos(location.hist_command)); 1193 strcat(hbuf, " (line "); 1194 strcat(hbuf, ito [all...] |
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/libraries/libldap/ |
H A D | os-ip.c | 829 char hbuf[NI_MAXHOST]; local 831 char hbuf[MAXHOSTNAMELEN]; local 833 char hbuf[256]; local 835 hbuf[0] = 0; 837 if (ldap_pvt_get_hname( sa, len, hbuf, sizeof(hbuf), &herr ) == 0 838 && hbuf[0] ) 840 return LDAP_STRDUP( hbuf );
|
/macosx-10.10.1/remote_cmds-47/tftpd.tproj/ |
H A D | tftpd.c | 1175 static char hbuf[MAXHOSTNAMELEN]; local 1177 if (getnameinfo(fromp, fromp->sa_len, hbuf, sizeof(hbuf), NULL, 0, 0)) 1178 if (getnameinfo(fromp, fromp->sa_len, hbuf, sizeof(hbuf), 1180 strlcpy(hbuf, "?", sizeof(hbuf)); 1181 return (hbuf);
|
/macosx-10.10.1/lsof-53/lsof/ |
H A D | print.c | 370 char hbuf[256]; local 413 hbuf[0] = '['; 414 if (!inet_ntop(af, ia, hbuf + 1, sizeof(hbuf) - 3)) { 415 (void) snpf(&hbuf[1], (sizeof(hbuf) - 1), 418 len = strlen(hbuf); 419 (void) snpf(&hbuf[len], sizeof(hbuf) - len, "]"); 425 (void) snpf(hbuf, sizeo [all...] |
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/utils/ |
H A D | smtptest.c | 55 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 65 if (getnameinfo(addr, addrlen, hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), 69 if(outlen < strlen(hbuf) + strlen(pbuf) + 2) 72 snprintf(out, outlen, "%s;%s", hbuf, pbuf);
|
/macosx-10.10.1/ipsec-286.1.1/ipsec-tools/racoon/ |
H A D | isakmp_quick.c | 400 vchar_t *hbuf = NULL; /* for hash computing. */ 480 hbuf = vmalloc(tlen); 481 if (hbuf == NULL) { 486 p = hbuf->v + iph2->nonce->l; /* retain the space for Ni_b */ 490 * copy non-HASH payloads into hbuf, so that we can validate HASH. 671 memcpy(hbuf->v, iph2->nonce->v, iph2->nonce->l); 673 "HASH allocated:hbuf->l=%zu actual:tlen=%zu\n", 674 hbuf->l, tlen + iph2->nonce->l); 676 hbuf->l = iph2->nonce->l + tlen; 688 my_hash = oakley_compute_hash1(iph2->ph1, iph2->msgid, hbuf); 399 vchar_t *hbuf = NULL; /* for hash computing. */ local 1094 vchar_t *hbuf = NULL; /* for hash computing. */ local [all...] |
/macosx-10.10.1/apr-32/apr/apr/network_io/unix/ |
H A D | sendrecv.c | 820 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);
|
/macosx-10.10.1/tcpdump-61/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,
|