Searched refs:buf2 (Results 1 - 25 of 101) sorted by relevance

12345

/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/
H A Dt_strcmp.c109 char buf2[10] = "xxy"; local
112 ATF_CHECK(strcmp(buf2, buf2) == 0);
118 ATF_CHECK(strcmp(buf1 + 0, buf2 + 0) < 0);
119 ATF_CHECK(strcmp(buf1 + 1, buf2 + 1) < 0);
120 ATF_CHECK(strcmp(buf1 + 2, buf2 + 2) < 0);
121 ATF_CHECK(strcmp(buf1 + 3, buf2 + 3) == 0);
123 ATF_CHECK(strcmp(buf2 + 0, buf1 + 0) > 0);
124 ATF_CHECK(strcmp(buf2 + 1, buf1 + 1) > 0);
125 ATF_CHECK(strcmp(buf2
[all...]
/freebsd-10-stable/lib/libc/resolv/
H A Dres_mkupdate.c103 char buf2[MAXDNAME]; local
228 if (!getword_str(buf2, sizeof buf2, &startp, endp))
230 if (!inet_aton(buf2, &ina))
243 if (!getword_str(buf2, sizeof buf2, &startp, endp))
245 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
255 if (!getword_str(buf2, sizeof buf2, &startp,
258 n = dn_comp(buf2, c
[all...]
/freebsd-10-stable/usr.bin/cmp/
H A Dlink.c43 char buf2[PATH_MAX], *p2; local
55 if ((len2 = readlink(file2, buf2, sizeof(buf2) - 1)) < 0) {
68 buf2[len2] = '\0';
72 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) {
/freebsd-10-stable/usr.bin/locate/bigram/
H A Dlocate.bigram.c66 u_char buf2[MAXPATHLEN]; variable
73 u_char *oldpath = buf1, *path = buf2;
76 while (fgets(path, sizeof(buf2), stdin) != NULL) {
97 path = buf2;
101 oldpath = buf2;
/freebsd-10-stable/crypto/openssl/crypto/err/
H A Derr_prn.c71 char buf2[4096]; local
81 BIO_snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, buf,
83 if (cb(buf2, strlen(buf2), u) <= 0)
/freebsd-10-stable/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp.c48 unsigned char buf1[10000], buf2[100000]; local
79 co2.dst = buf2;
80 co2.dst_len = sizeof(buf2);
81 buf2[10] = 0x33;
83 fprintf(stderr, "canary: %x\n", buf2[10]);
87 if (memcmp(text, buf2, co2.dst_len))
H A Dh_comp_zlib.c47 unsigned char buf1[10000], buf2[10000]; local
77 z.next_out = buf2;
78 z.avail_out = sizeof(buf2);
89 if (memcmp(buf2, text, sizeof(text)))
H A Dh_comp_zlib_rnd.c49 unsigned char buf1[10000], buf2[10000]; local
81 z.next_out = buf2;
82 z.avail_out = sizeof(buf2);
93 if (memcmp(buf2, text, sizeof(text)))
/freebsd-10-stable/contrib/opie/libopie/
H A Dwriterec.c44 char buf[17], buf2[64]; local
51 if (strftime(buf2, sizeof(buf2), " %b %d,%Y %T", localtime(&now)) < 1)
83 if (fprintf(f, "%s %04d %-16s %s %-21s\n", opie->opie_principal, opie->opie_n, opie->opie_seed, opie->opie_val ? opie->opie_val : __opienone, buf2) < 1)
/freebsd-10-stable/contrib/xz/src/liblzma/common/
H A Dmemcmplen.h26 /// \param buf2 Second buffer
33 /// the specified limit from both buf1 and buf2.
43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, argument
65 - *(const uint64_t *)(buf2 + len);
99 _mm_loadu_si128((const __m128i *)(buf2 + len))));
124 - *(const uint32_t *)(buf2 + len);
147 ^ *(const uint32_t *)(buf2 + len);
168 while (len < limit && buf1[len] == buf2[len])
/freebsd-10-stable/crypto/heimdal/lib/gssapi/krb5/
H A Ddisplay_status.c174 const char *buf2 = krb5_get_error_message(context, status_value); local
175 if (buf2) {
176 buf = strdup(buf2);
177 krb5_free_error_message(context, buf2);
/freebsd-10-stable/usr.sbin/ctm/mkCTM/
H A Dmkctm.c155 char *buf2 = alloca(strlen(dir2) + strlen(name) + local
168 strcpy(buf2, dir2);
169 strcat(buf2, "/"); strcat(buf2, name);
170 strcat(buf2, "/"); strcat(buf2, de->d_name);
171 fd2 = open(buf2, O_RDONLY);
172 if(fd2 < 0) { err(3, "%s", buf2); }
189 if (p2 == (u_char *)MAP_FAILED) { err(3, "%s", buf2); }
214 buf1, buf2);
315 char *buf2 = alloca(strlen(dir2) + strlen(name) + local
433 char *buf2 = alloca(strlen(dir2) + strlen(name) + 4); local
[all...]
/freebsd-10-stable/crypto/heimdal/lib/krb5/
H A Dtest_addr.c42 char buf2[1000]; local
61 krb5_print_address(&addresses.val[i], buf2, sizeof(buf2), &len);
63 printf("addr %d: %s (%d/%d)\n", i, buf2, (int)len, (int)strlen(buf2));
65 if (strlen(buf2) > sizeof(buf2))
67 (int)strlen(buf2), (int)sizeof(buf2));
/freebsd-10-stable/usr.bin/locate/code/
H A Dlocate.code.c108 u_char buf2[MAXPATHLEN]; variable
167 path = buf2;
170 while (fgets(path, sizeof(buf2), stdin) != NULL) {
244 path = buf2;
248 oldpath = buf2;
/freebsd-10-stable/usr.bin/uuencode/
H A Duuencode.c153 char buf2[sizeof(buf) * 2 + 1]; local
163 rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0])));
166 fprintf(output, "%s%s", buf2, (sequence % GROUPS) ? "" : "\n");
/freebsd-10-stable/lib/libc/tests/stdio/
H A Dfmemopen2_test.c46 char buf2[512]; local
71 bzero(buf2, sizeof(buf2));
72 nofr = fread(buf2, 1, sizeof(buf2), fp);
73 ATF_REQUIRE(nofr == sizeof(buf2));
80 ATF_REQUIRE(strcmp(str, buf2) == 0);
/freebsd-10-stable/contrib/file/src/
H A Dfsmagic.c316 char buf2[BUFSIZ+BUFSIZ+4]; local
339 (void)strlcpy(buf2, fn, sizeof buf2);
340 buf2[tmp - fn + 1] = '\0';
342 (void)strlcat(buf2, buf, sizeof buf2);
343 tmp = buf2;
/freebsd-10-stable/sys/geom/bde/
H A Dg_bde_crypt.c85 u_char buf2[8]; local
88 le64enc(buf2, sector);
92 MD5Update(&ct, buf2, sizeof buf2);
100 MD5Update(&ct, buf2, sizeof buf2);
102 bzero(buf2, sizeof buf2);
/freebsd-10-stable/contrib/ncurses/progs/
H A Dinfocmp.c340 char buf1[MAX_STRING], buf2[MAX_STRING]; local
375 dump_numeric(n2, buf2);
379 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2);
401 dump_string(s2, buf2);
402 if (strcmp(buf1, buf2))
403 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2);
606 char buf2[MAX_TERMINFO_LENGTH]; local
634 (void) strncpy(buf2, sp, len);
635 buf2[len] = '\0';
637 if (_nc_capcmp(cp, buf2))
[all...]
/freebsd-10-stable/usr.sbin/pkg_install/lib/
H A Dmatch.c370 char *buf, *buf2; local
378 buf2 = NULL;
385 asprintf(&buf2, "%s/%s", buf, CONTENTS_FNAME);
386 if (buf2 == NULL)
389 if (!isfile(buf2) || access(buf2, R_OK) == FAIL)
399 free(buf2);
400 buf2 = NULL;
413 if (buf2 != NULL)
414 free(buf2);
[all...]
/freebsd-10-stable/contrib/ncurses/ncurses/tinfo/
H A Dparse_entry.c780 char buf2[MAX_TERMINFO_LENGTH]; local
835 for (dp = buf2, bp = tp->Strings[from_ptr->nte_index]; *bp; bp++) {
845 tp->Strings[to_ptr->nte_index] = _nc_save_str(buf2);
885 char buf2[MAX_TERMCAP_LENGTH]; local
887 _nc_str_init(&result, buf2, sizeof(buf2));
902 if (buf2[0]) {
903 acs_chars = _nc_save_str(buf2);
925 char buf2[MAX_TERMCAP_LENGTH]; local
928 _nc_str_init(&result, buf2, sizeo
[all...]
/freebsd-10-stable/contrib/gdb/gdb/gdbserver/
H A Dremote-utils.c268 char *buf2; local
273 buf2 = malloc (PBUFSIZ);
278 p = buf2;
298 if (write (remote_desc, buf2, p - buf2) != p - buf2)
306 fprintf (stderr, "putpkt (\"%s\"); [looking for ack]\n", buf2);
323 free (buf2);
333 free (buf2);
/freebsd-10-stable/bin/stty/
H A Dprint.c58 char buf1[100], buf2[100]; local
206 (void)snprintf(buf2 + cnt * 8, sizeof(buf2) - cnt * 8,
211 (void)printf("%s\n", buf2);
216 (void)printf("%s\n", buf2);
/freebsd-10-stable/contrib/libreadline/
H A Dmbutil.c235 _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2)
239 char *buf2;
246 (w2 = _rl_get_char_len (&buf2[pos2], ps2)) <= 0 ||
248 (buf1[pos1] != buf2[pos2]))
252 if (buf1[pos1+i] != buf2[pos2+i])
/freebsd-10-stable/sbin/ifconfig/
H A Dsfp.c784 char buf[80], buf2[40], buf3[40]; local
792 get_qsfp_transceiver_class(ii, buf2, sizeof(buf2));
795 printf("\tplugged: %s %s (%s)\n", buf, buf2, buf3);
817 get_qsfp_voltage(ii, buf2, sizeof(buf2));
818 printf("\tmodule temperature: %s voltage: %s\n", buf, buf2);
821 get_qsfp_tx_power(ii, buf2, sizeof(buf2), i);
822 printf("\tlane %d: RX: %s TX: %s\n", i, buf, buf2);
837 char buf[80], buf2[40], buf3[40]; local
[all...]

Completed in 228 milliseconds

12345