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

123

/macosx-10.9.5/network_cmds-433/traceroute6.tproj/
H A Dtraceroute6.c370 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local
621 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
622 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
623 strlcpy(hbuf, "?", sizeof(hbuf));
625 "addresses; using %s\n", hostname, hbuf);
871 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf,
872 sizeof(hbuf), NULL, 0, NI_NUMERICHOST))
873 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
1174 char hbuf[NI_MAXHOST]; local
1357 char hbuf[NI_MAXHOST]; local
[all...]
/macosx-10.9.5/tcl-102/tcl/tcl/unix/
H A DtclUnixCompat.c96 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.9.5/tcl-102/tcl84/tcl/unix/
H A DtclUnixCompat.c53 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.9.5/passwordserver_sasl-170/cyrus_sasl/sample/
H A Dclient.c332 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
387 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags);
390 strcpy(hbuf, "unknown");
393 snprintf(localaddr, sizeof(localaddr), "%s;%s", hbuf, pbuf);
406 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags);
409 strcpy(hbuf, "unknown");
412 snprintf(remoteaddr, sizeof(remoteaddr), "%s;%s", hbuf, pbuf);
H A Dserver.c326 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
369 error = getnameinfo((struct sockaddr *)&local_ip, salen, hbuf,
370 sizeof(hbuf), pbuf, sizeof(pbuf), niflags);
373 strcpy(hbuf, "unknown");
376 snprintf(localaddr, sizeof(localaddr), "%s;%s", hbuf, pbuf);
388 error = getnameinfo((struct sockaddr *)&remote_ip, salen, hbuf,
389 sizeof(hbuf), pbuf, sizeof(pbuf), niflags);
392 strcpy(hbuf, "unknown");
395 snprintf(remoteaddr, sizeof(remoteaddr), "%s;%s", hbuf, pbuf);
/macosx-10.9.5/network_cmds-433/rtadvd.tproj/
H A Ddump.c105 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.9.5/passwordserver_sasl-170/cyrus_sasl/saslauthd/
H A Dauth_rimap.c317 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV];
341 if (getnameinfo(r->ai_addr, r->ai_addrlen, hbuf, (socklen_t)sizeof(hbuf),
343 strlcpy(hbuf, "unknown", sizeof(hbuf));
348 ai->ai_canonname ? ai->ai_canonname : r_host, hbuf, pbuf);
313 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
/macosx-10.9.5/ruby-104/ruby/ext/socket/
H A Draddrinfo.c253 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 Dsocket.c1216 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.9.5/text_cmds-87/pr/
H A Dpr.c199 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.9.5/xnu-2422.115.4/SETUP/config/
H A Dmkheaders.c252 static char hbuf[MAXPATHLEN]; local
253 (void) snprintf(hbuf, sizeof hbuf, "%s.h", path(dev));
254 hbuf[MAXPATHLEN-1] = '\0';
255 return (hbuf);
/macosx-10.9.5/Security-55471.14.18/sec/SOSCircle/SecureObjectSync/
H A DSOSPeerInfo.c114 static CFDataRef sosSignHash(SecKeyRef privkey, const struct ccdigest_info *di, uint8_t *hbuf) { argument
118 if((stat = SecKeyRawSign(privkey, kSecPaddingNone, hbuf, di->output_size, sig, &siglen)) != 0) {
124 static bool sosVerifyHash(SecKeyRef pubkey, const struct ccdigest_info *di, uint8_t *hbuf, CFDataRef signature) { argument
125 return SecKeyRawVerify(pubkey, kSecPaddingNone, hbuf, di->output_size,
132 uint8_t hbuf[di->output_size]; local
135 require_action_quiet(SOSDescriptionHash(peer, di, hbuf, error), fail,
138 newSignature = sosSignHash(privKey, di, hbuf);
155 uint8_t hbuf[di->output_size]; local
160 require_quiet(SOSDescriptionHash(peer, di, hbuf, error), error_out);
162 result = sosVerifyHash(pubKey, di, hbuf, pee
[all...]
/macosx-10.9.5/sudo-72/src/
H A Dtestsudoers.c113 char hbuf[MAXHOSTNAMELEN + 1]; local
185 if (gethostname(hbuf, sizeof(hbuf)) != 0)
187 hbuf[sizeof(hbuf) - 1] = '\0';
188 user_host = hbuf;
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/contrib/slapd-modules/smbk5pwd/
H A Dsmbk5pwd.c190 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.9.5/dcerpc-58/dcerpc/ncklib/
H A Dipnaf.c976 #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.9.5/network_cmds-433/netstat.tproj/
H A Dinet6.c1166 char hbuf[NI_MAXHOST]; local
1208 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0)
1209 strlcpy(hbuf, "?", sizeof(hbuf));
1210 strlcpy(line, hbuf, sizeof(line));
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/edit/
H A Demacs.c1173 char hbuf[MAXLINE]; local
1175 strcpy(hbuf, "Current command ");
1176 strcat(hbuf, itos(hline));
1179 strcat(hbuf, " (line ");
1180 strcat(hbuf, itos(hloff+1));
1181 strcat(hbuf, ")");
1186 strcat(hbuf, "; Previous command ");
1187 strcat(hbuf, itos(location.hist_command));
1190 strcat(hbuf, " (line ");
1191 strcat(hbuf, ito
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/libraries/libldap/
H A Dos-ip.c829 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.9.5/remote_cmds-41.90.1/tftpd.tproj/
H A Dtftpd.c1173 static char hbuf[MAXHOSTNAMELEN]; local
1175 if (getnameinfo(fromp, fromp->sa_len, hbuf, sizeof(hbuf), NULL, 0, 0))
1176 if (getnameinfo(fromp, fromp->sa_len, hbuf, sizeof(hbuf),
1178 strlcpy(hbuf, "?", sizeof(hbuf));
1179 return (hbuf);
/macosx-10.9.5/lsof-52/lsof/
H A Dprint.c370 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.9.5/passwordserver_sasl-170/cyrus_sasl/utils/
H A Dsmtptest.c55 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.9.5/ipsec-258.100.1/ipsec-tools/racoon/
H A Disakmp_quick.c400 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.9.5/apache-786.1/httpd/srclib/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);
/macosx-10.9.5/apr-30/apr/apr/network_io/unix/
H A Dsendrecv.c816 void * hbuf=NULL, * tbuf=NULL; local
848 hbuf = malloc(parms.header_length);
853 hbuf = apr_palloc(sock->pool, parms.header_length);
857 memcpy((char *)hbuf + ptr, hdtr->headers[i].iov_base,
861 parms.header_data = hbuf;
934 if(hbuf) free(hbuf);
/macosx-10.9.5/tcpdump-56/tcpdump/
H A Dprint-icmp6.c1243 char hbuf[NI_MAXHOST]; local
1311 if (inet_ntop(AF_INET6, &match->rpm_prefix, hbuf, sizeof(hbuf)))
1312 printf(",%s/%u", hbuf, match->rpm_matchlen);
1354 if (inet_ntop(AF_INET6, &use->rpu_prefix, hbuf,
1355 sizeof(hbuf)))
1356 printf("%s/%u/%u", hbuf, use->rpu_uselen,

Completed in 332 milliseconds

123