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

12345

/freebsd-11-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-11-stable/lib/libc/resolv/
H A Dres_mkupdate.c102 char buf2[MAXDNAME]; local
227 if (!getword_str(buf2, sizeof buf2, &startp, endp))
229 if (!inet_aton(buf2, &ina))
242 if (!getword_str(buf2, sizeof buf2, &startp, endp))
244 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
254 if (!getword_str(buf2, sizeof buf2, &startp,
257 n = dn_comp(buf2, c
[all...]
/freebsd-11-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-11-stable/usr.bin/locate/bigram/
H A Dlocate.bigram.c69 u_char buf2[MAXPATHLEN]; variable
76 u_char *oldpath = buf1, *path = buf2;
82 while (fgets(path, sizeof(buf2), stdin) != NULL) {
103 path = buf2;
107 oldpath = buf2;
/freebsd-11-stable/usr.bin/cmp/
H A Dlink.c45 char buf2[PATH_MAX], *p2; local
57 if ((len2 = readlink(file2, buf2, sizeof(buf2) - 1)) < 0) {
70 buf2[len2] = '\0';
74 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) {
/freebsd-11-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-11-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
64 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len);
98 _mm_loadu_si128((const __m128i *)(buf2 + len))));
114 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len);
136 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len);
157 while (len < limit && buf1[len] == buf2[len])
/freebsd-11-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-11-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-11-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-11-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-11-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-11-stable/contrib/ncurses/progs/
H A Dinfocmp.c426 char buf2[MAX_STRING]; local
490 dump_numeric(n2, buf2);
491 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2);
538 dump_string(s2, buf2);
539 if (strcmp(buf1, buf2))
540 (void) printf("\t%s: %s, %s.\n", name, buf1, buf2);
786 char buf2[MAX_TERMINFO_LENGTH]; local
815 (void) strncpy(buf2, sp, len);
816 buf2[len] = '\0';
818 if (_nc_capcmp(cp, buf2))
[all...]
/freebsd-11-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-11-stable/contrib/file/src/
H A Dfsmagic.c328 char buf2[BUFSIZ+BUFSIZ+4];
351 (void)strlcpy(buf2, fn, sizeof buf2);
352 buf2[tmp - fn + 1] = '\0';
354 (void)strlcat(buf2, buf, sizeof buf2);
355 tmp = buf2;
/freebsd-11-stable/usr.bin/uuencode/
H A Duuencode.c153 char buf2[sizeof(buf) * 2 + 1]; local
163 rv = b64_ntop(buf, n, buf2, nitems(buf2));
166 fprintf(output, "%s%s", buf2, (sequence % GROUPS) ? "" : "\n");
/freebsd-11-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-11-stable/contrib/ncurses/ncurses/tinfo/
H A Dparse_entry.c793 char buf2[MAX_TERMINFO_LENGTH]; local
848 for (dp = buf2, bp = tp->Strings[from_ptr->nte_index]; *bp; bp++) {
858 tp->Strings[to_ptr->nte_index] = _nc_save_str(buf2);
898 char buf2[MAX_TERMCAP_LENGTH]; local
900 _nc_str_init(&result, buf2, sizeof(buf2));
915 if (buf2[0]) {
916 acs_chars = _nc_save_str(buf2);
938 char buf2[MAX_TERMCAP_LENGTH]; local
941 _nc_str_init(&result, buf2, sizeo
[all...]
/freebsd-11-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-11-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-11-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-11-stable/sbin/ifconfig/
H A Dsfp.c797 char buf[80], buf2[40], buf3[40]; local
805 get_qsfp_transceiver_class(ii, buf2, sizeof(buf2));
808 printf("\tplugged: %s %s (%s)\n", buf, buf2, buf3);
830 get_qsfp_voltage(ii, buf2, sizeof(buf2));
831 printf("\tmodule temperature: %s voltage: %s\n", buf, buf2);
834 get_qsfp_tx_power(ii, buf2, sizeof(buf2), i);
835 printf("\tlane %d: RX: %s TX: %s\n", i, buf, buf2);
850 char buf[80], buf2[40], buf3[40]; local
[all...]
/freebsd-11-stable/contrib/libreadline/examples/
H A Drl-fgets.c232 char buf1[256], buf2[256] ;
261 if ( 1 == sscanf(buf1,"%s",buf2) ) {
262 my_fgets_names[i] = strdup(buf2) ;
225 char buf1[256], buf2[256] ; local

Completed in 306 milliseconds

12345