Searched defs:buf2 (Results 1 - 21 of 21) sorted by relevance

/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dcmp.c40 char *buf2 = 0; local
62 buf2 = grub_malloc (BUFFER_SIZE);
64 if (! buf1 || ! buf2)
72 rd2 = grub_file_read (file2, buf2, BUFFER_SIZE);
79 if (buf1[i] != buf2[i])
83 args[0], buf2[i], args[1]);
99 grub_free (buf2);
/osnet-11/usr/src/grub/grub2/grub-core/disk/
H A Draid5_recover.c34 char *buf2; local
38 buf2 = grub_malloc (size);
39 if (!buf2)
53 0, size, buf2);
57 grub_free (buf2);
61 grub_crypto_xor (buf, buf2, buf2, size);
64 grub_free (buf2);
/osnet-11/usr/src/lib/libparted/common/lib/
H A Dlocalcharset.c194 char buf2[50+1]; local
214 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
217 l2 = strlen (buf2);
238 strcpy (res_ptr + res_size - (l2 + 1), buf2);
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dlocalcharset.c192 char buf2[50+1]; local
212 if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
215 l2 = strlen (buf2);
236 strcpy (res_ptr + res_size - (l2 + 1), buf2);
/osnet-11/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetent.c147 * buf2 is untruncated version.
150 static int nettoa(int anet, char *buf, char *buf2, int buflen) argument
156 if (buf == NULL || buf2 == NULL)
161 if (inet_ntop(AF_INET, (const void *)&in, buf2, INET_ADDRSTRLEN)
164 if (strlcpy(buf, buf2, buflen) >= buflen)
H A Dgethostent.c79 char *buf1, *buf2; local
127 buf2 = other_hosts;
160 len = snprintf(buf2, buflen2, "\n%s ", ips[0]);
161 TEST_AND_ADJUST(len, buf2, buflen2, result_host2str);
/osnet-11/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c236 u_char buf2[MAXDNAME]; local
253 n = ns_name_pton(name, buf2, sizeof(buf2));
256 n = ns_name_ntol(buf2, buf, sizeof(buf));
267 n = ns_name_pton(alg, buf2, sizeof(buf2));
270 n = ns_name_ntol(buf2, buf, sizeof(buf));
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c546 char *buf2 = NULL; local
565 buf2 = malloc(TOKEN_LABEL_SIZE);
571 (void) strcpy(buf2, (const char *) puent->metaslot_ks_token);
572 *objectstore_token_info = buf2;
583 if (buf2 != NULL) {
584 free(buf2);
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c892 CK_BYTE *buf2 = NULL; local
951 rc = ber_encode_INTEGER(FALSE, &buf2, &len, version, sizeof (version));
955 (void) memcpy(buf + offset, buf2, len);
957 free(buf2);
959 rc = ber_encode_INTEGER(FALSE, &buf2, &len,
964 (void) memcpy(buf + offset, buf2, len);
966 free(buf2);
968 rc = ber_encode_INTEGER(FALSE, &buf2, &len,
973 (void) memcpy(buf + offset, buf2, len);
975 free(buf2);
[all...]
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c89 char buf2[MAXDNAME]; local
211 if (!getword_str(buf2, sizeof buf2, &startp, endp))
213 if (!inet_aton(buf2, &ina))
226 if (!getword_str(buf2, sizeof buf2, &startp, endp))
228 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
238 if (!getword_str(buf2, sizeof buf2, &startp,
241 n = dn_comp(buf2, c
[all...]
H A Dres_send.c261 * in (buf1,eom1) and (buf2,eom2)?
273 const u_char *buf2, const u_char *eom2)
278 if (buf1 + HFIXEDSZ > eom1 || buf2 + HFIXEDSZ > eom2)
286 (((const HEADER *)buf2)->opcode == ns_o_update))
289 if (qdcount != ntohs(((const HEADER*)buf2)->qdcount))
303 if (!res_nameinquery(tname, ttype, tclass, buf2, eom2))
272 res_queriesmatch(const u_char *buf1, const u_char *eom1, const u_char *buf2, const u_char *eom2) argument
/osnet-11/usr/src/lib/libsysevent/
H A Dlibevchannel.c863 char *buf2 = NULL; /* allocated if stack buf too small */ local
888 (buf2 == NULL || uargs.generation != expgen)) {
889 if (buf2 != NULL)
890 free(buf2);
895 bufp = buf2 = malloc(sz);
897 if (buf2 == NULL)
913 if (buf2 != NULL)
914 free(buf2);
/osnet-11/usr/src/grub/grub2/util/
H A Dgetroot.c1655 char *p, *buf, *buf2, *buf3, *ret; local
1679 buf2 = xstrdup (buf);
1712 grub_free (grub_find_root_device_from_mountinfo (buf2, &bind));
1721 free (buf2);
1740 buf3 = xstrdup (buf2 + offset);
1741 buf2[offset] = 0;
1745 grub_free (grub_find_root_device_from_mountinfo (buf2, &bind));
1756 free (buf2);
/osnet-11/usr/src/cmd/hal/hald/
H A Ddevice_info.c1197 char buf2[256]; local
1223 strncpy (buf2, existing_string, sizeof (buf2));
1224 strncat (buf2, buf, sizeof (buf2) - strlen(buf2));
1226 strncpy (buf2, buf, sizeof (buf2));
1228 hal_device_property_set_string (pc->device, pc->merge_key, buf2);
1235 char buf2[25 local
[all...]
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfscmp.c492 static int cmp_buffer(u8 *buf1, u8 *buf2, long long int size, ntfs_attr *na) argument
494 if (memcmp(buf1, buf2, size)) {
604 u8 buf2[NTFS_BUF_SIZE]; local
609 count2 = ntfs_attr_pread(na2, pos, NTFS_BUF_SIZE, buf2);
638 if (cmp_buffer(buf1, buf2, count1, na1))
/osnet-11/usr/src/lib/libpkg/common/
H A Dpkgweb.c2688 char *buf, *buf2, *beg_str; local
2694 if ((buf2 = (char *)xmalloc(PATH_MAX)) == NULL) {
2699 buf[0] = buf2[0] = '\0';
2706 if (((len = snprintf(buf2, PATH_MAX, "%s/", dir)) < 0) ||
2733 if (strlcat(buf2, buf, PATH_MAX) >= PATH_MAX) {
2737 return (buf2);
2741 if (buf2) free(buf2);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dpp_ctl.c3193 char buf2[256]; local
3195 MacPerl_CanonDir(name, buf2, 1);
3196 Perl_sv_setpvf(aTHX_ namesv, "%s%s", MacPerl_CanonDir(dir, buf1, 0), buf2+(buf2[0] == ':'));
/osnet-11/usr/src/lib/libstmf/common/
H A Dstore.c1395 char buf2[MAXNAMELEN]; local
1544 if (snprintf(buf2, sizeof (buf2), "%s-%s", buf1,
1545 STMF_MEMBER_LIST_SUFFIX) > sizeof (buf2)) {
1557 * buf2 now contains the member list property name
1595 if (scf_transaction_property_new(tran, entry2, buf2,
1598 "failed - %s", pgRefName, buf2,
1618 if (scf_transaction_property_delete(tran, entry2, buf2)
1621 "failed - %s", pgRefName, buf2,
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_sendrecv.c3642 char buf2[64]; local
3648 zfs_nicenum(bytes/delta, buf2, sizeof (buf1));
3651 buf1, delta, buf2);
/osnet-11/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.c2941 unsigned char *buf1 = NULL, *buf2 = NULL, *buf3 = NULL; local
2962 &buf2, &buf2_len);
2983 (void) memcpy(algId[0]->parameters.data, buf2, buf2_len);
3018 (void) memcpy(algId[0]->parameters.data, buf2, buf2_len);
3096 if (buf2 != NULL)
3097 free(buf2);
/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Dvia-rhine.c688 /* printf("[%d]buf1=%hX,buf2=%hX",i,tp->rx_ring[i].buf_addr_1,tp->rx_ring[i].buf_addr_2); */
693 /*printf("[%d]buf1=%hX,buf2=%hX",i-1,tp->rx_ring[i-1].buf_addr_1,tp->rx_ring[i-1].buf_addr_2); */
705 /* printf("[%d]buf1=%hX,buf2=%hX",i,tp->tx_ring[i].buf_addr_1,tp->tx_ring[i].buf_addr_2); */
709 /* printf("[%d]buf1=%hX,buf2=%hX",i,tp->tx_ring[i-1].buf_addr_1,tp->tx_ring[i-1].buf_addr_2); */
1104 static char buf2[RX_RING_SIZE * PKT_BUF_SZ + 32]; local
1114 rx_bufs_tmp = (int) buf2;

Completed in 117 milliseconds