Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 25 of 112) sorted by relevance

12345

/freebsd/lib/libc/resolv/
H A Dres_mkupdate.c250 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
334 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
386 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
399 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
472 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
546 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
578 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
642 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
676 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
687 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dsodium_utils.c9 unsigned char buf2[1000]; in main() local
23 memcpy(buf2, buf1, sizeof buf2); in main()
30 sodium_memzero(buf2, sizeof buf2 / 2); in main()
57 randombytes_buf(buf2, bin_len); in main()
68 memcpy(buf1, buf2, bin_len); in main()
87 memcpy(buf2, buf1, bin_len); in main()
94 sodium_add(buf2, buf_add, bin_len); in main()
100 memcpy(buf2, buf1, bin_len); in main()
102 sodium_increment(buf2, bin_len); in main()
103 sodium_increment(buf2, 0U); in main()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/string/
H A Dt_strcmp.c109 char buf2[10] = "xxy"; in ATF_TC_BODY() local
112 ATF_CHECK(strcmp(buf2, buf2) == 0); in ATF_TC_BODY()
118 ATF_CHECK(strcmp(buf1 + 0, buf2 + 0) < 0); in ATF_TC_BODY()
119 ATF_CHECK(strcmp(buf1 + 1, buf2 + 1) < 0); in ATF_TC_BODY()
120 ATF_CHECK(strcmp(buf1 + 2, buf2 + 2) < 0); in ATF_TC_BODY()
121 ATF_CHECK(strcmp(buf1 + 3, buf2 + 3) == 0); in ATF_TC_BODY()
123 ATF_CHECK(strcmp(buf2 + 0, buf1 + 0) > 0); in ATF_TC_BODY()
124 ATF_CHECK(strcmp(buf2 + 1, buf1 + 1) > 0); in ATF_TC_BODY()
125 ATF_CHECK(strcmp(buf2 + 2, buf1 + 2) > 0); in ATF_TC_BODY()
126 ATF_CHECK(strcmp(buf2 + 3, buf1 + 3) == 0); in ATF_TC_BODY()
/freebsd/crypto/openssl/test/
H A Drc5test.c188 unsigned char buf[8], buf2[8]; in test_rc5_ecb() local
197 RC5_32_ecb_encrypt(buf, buf2, &key, RC5_DECRYPT); in test_rc5_ecb()
198 if (!TEST_mem_eq(&RC5plain[n][0], sizeof(RC5cipher[0]), buf2, sizeof(buf2))) in test_rc5_ecb()
209 unsigned char buf[8], buf2[8], ivb[8]; in test_rc5_cbc() local
226 RC5_32_cbc_encrypt(buf, buf2, 8, &key, &ivb[0], RC5_DECRYPT); in test_rc5_cbc()
228 buf2, sizeof(buf2))) in test_rc5_cbc()
H A Drc2test.c51 unsigned char buf[8], buf2[8]; in test_rc2() local
59 RC2_ecb_encrypt(buf, buf2, &key, RC2_DECRYPT); in test_rc2()
60 if (!TEST_mem_eq(&RC2plain[n][0], 8, buf2, 8)) in test_rc2()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_001_pos.c43 char buf1[BSZ], buf2[BSZ] = {0}; in main() local
60 if (pread(fd, buf2, BSZ, 0) < 0) in main()
63 if (memcmp(buf1, buf2, BSZ) != 0) in main()
66 memset(buf2, 0, BSZ); in main()
71 if (fgetxattr(fd, "user.test", buf2, BSZ) < 0) in main()
74 if (memcmp(buf1, buf2, BSZ) != 0) in main()
/freebsd/tests/sys/geom/class/eli/
H A Dunaligned_io.c51 char *buf1, *buf2; in main() local
81 buf2 = mmap(NULL, bufsz, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, in main()
83 if (buf2 == MAP_FAILED) in main()
107 n = pread(fd, buf2 + i, iosz, 0); in main()
110 if (memcmp(buf1, buf2 + i, iosz) != 0) in main()
123 n = pread(fd, buf2, iosz, 0); in main()
126 if (memcmp(buf1 + i, buf2, iosz) != 0) in main()
/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp.c48 unsigned char buf1[10000], buf2[100000]; in main() local
79 co2.dst = buf2; in main()
80 co2.dst_len = sizeof(buf2); in main()
81 buf2[10] = 0x33; in main()
83 fprintf(stderr, "canary: %x\n", buf2[10]); in main()
87 if (memcmp(text, buf2, co2.dst_len)) in main()
H A Dh_comp_zlib.c47 unsigned char buf1[10000], buf2[10000]; in main() local
77 z.next_out = buf2; in main()
78 z.avail_out = sizeof(buf2); in main()
89 if (memcmp(buf2, text, sizeof(text))) in main()
H A Dh_comp_zlib_rnd.c49 unsigned char buf1[10000], buf2[10000]; in main() local
81 z.next_out = buf2; in main()
82 z.avail_out = sizeof(buf2); in main()
93 if (memcmp(buf2, text, sizeof(text))) in main()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c467 tt_assert(buf2); in test_evbuffer_remove_buffer_with_empty_front()
481 if (buf2) in test_evbuffer_remove_buffer_with_empty_front()
494 tt_assert(buf2); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
537 if (buf2) in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
2102 evbuffer_drain(buf2, evbuffer_get_length(buf2)); in test_evbuffer_add_reference()
2121 if (buf2) in test_evbuffer_add_reference()
2149 tt_int_op(evbuffer_add_buffer_reference(buf2, buf2), ==, -1); in test_evbuffer_multicast()
2190 if (buf2) in test_evbuffer_multicast()
2226 if (buf2) in test_evbuffer_multicast_drain()
2313 if (buf2) in test_evbuffer_prepend()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress_buffer.c467 tt_assert(buf2); in test_evbuffer_remove_buffer_with_empty_front()
481 if (buf2) in test_evbuffer_remove_buffer_with_empty_front()
494 tt_assert(buf2); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
537 if (buf2) in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
2102 evbuffer_drain(buf2, evbuffer_get_length(buf2)); in test_evbuffer_add_reference()
2121 if (buf2) in test_evbuffer_add_reference()
2149 tt_int_op(evbuffer_add_buffer_reference(buf2, buf2), ==, -1); in test_evbuffer_multicast()
2190 if (buf2) in test_evbuffer_multicast()
2226 if (buf2) in test_evbuffer_multicast_drain()
2313 if (buf2) in test_evbuffer_prepend()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dtest_addr.c42 char buf2[1000]; in print_addr() local
61 krb5_print_address(&addresses.val[i], buf2, sizeof(buf2), &len); in print_addr()
63 printf("addr %d: %s (%d/%d)\n", i, buf2, (int)len, (int)strlen(buf2)); in print_addr()
65 if (strlen(buf2) > sizeof(buf2)) in print_addr()
67 (int)strlen(buf2), (int)sizeof(buf2)); in print_addr()
/freebsd/usr.bin/locate/bigram/
H A Dlocate.bigram.c45 u_char buf2[LOCATE_PATH_MAX]; variable
52 u_char *oldpath = buf1, *path = buf2; in main()
58 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main()
79 path = buf2; in main()
83 oldpath = buf2; in main()
/freebsd/contrib/bearssl/src/hash/
H A Dghash_pwr8.c123 const unsigned char *buf1, *buf2; in br_ghash_pwr8() local
149 buf2 = buf1 + (num4 << 6); in br_ghash_pwr8()
153 memcpy(tmp, buf2, len); in br_ghash_pwr8()
155 buf2 = tmp; in br_ghash_pwr8()
334 lxvw4x(41, 0, %[buf2]) in br_ghash_pwr8()
338 addi(%[buf2], %[buf2], 16) in br_ghash_pwr8()
382 : [buf1] "+b" (buf1), [buf2] "+b" (buf2) in br_ghash_pwr8()
/freebsd/contrib/xz/src/liblzma/common/
H A Dmemcmplen.h53 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, in lzma_memcmplen() argument
70 const uint64_t x = read64ne(buf1 + len) - read64ne(buf2 + len); in lzma_memcmplen()
107 _mm_loadu_si128((const __m128i *)(buf2 + len)))); in lzma_memcmplen()
123 uint32_t x = read32ne(buf1 + len) - read32ne(buf2 + len); in lzma_memcmplen()
145 uint32_t x = read32ne(buf1 + len) ^ read32ne(buf2 + len); in lzma_memcmplen()
166 while (len < limit && buf1[len] == buf2[len]) in lzma_memcmplen()
/freebsd/contrib/ncurses/progs/
H A Dinfocmp.c846 buf2[len] = '\0'; in analyze_string()
896 _nc_STRCPY(buf2, in analyze_string()
917 _nc_STRCPY(buf2, in analyze_string()
937 _nc_STRCPY(buf2, "SGR:", sizeof(buf2)); in analyze_string()
949 _nc_STRCPY(buf2, "SGR:", sizeof(buf2)); in analyze_string()
950 _nc_STRCAT(buf2, ecma_highlights[0].to, sizeof(buf2)); in analyze_string()
961 _nc_SPRINTF(buf2, _nc_SLIMIT(sizeof(buf2)) "1;%dr", tp_lines); in analyze_string()
972 _nc_SPRINTF(buf2, _nc_SLIMIT(sizeof(buf2)) "%d;1H", tp_lines); in analyze_string()
977 _nc_SPRINTF(buf2, _nc_SLIMIT(sizeof(buf2)) "%dH", tp_lines); in analyze_string()
992 buf2[0] = *sp; in analyze_string()
[all …]
/freebsd/usr.bin/cmp/
H A Dlink.c44 char buf2[PATH_MAX], *p2; in c_link() local
56 if ((len2 = readlink(file2, buf2, sizeof(buf2) - 1)) < 0) { in c_link()
69 buf2[len2] = '\0'; in c_link()
73 for (p1 = buf1 + skip1, p2 = buf2 + skip2; in c_link()
/freebsd/lib/libc/tests/stdio/
H A Dfmemopen2_test.c43 char buf2[512]; in ATF_TC_BODY() local
68 bzero(buf2, sizeof(buf2)); in ATF_TC_BODY()
69 nofr = fread(buf2, 1, sizeof(buf2), fp); in ATF_TC_BODY()
70 ATF_REQUIRE(nofr == sizeof(buf2)); in ATF_TC_BODY()
77 ATF_REQUIRE(strcmp(str, buf2) == 0); in ATF_TC_BODY()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dget_diff.c47 char buf1[DEV_BSIZE], buf2[DEV_BSIZE]; in main() local
68 if (pread(fd2, buf2, DEV_BSIZE, off) < 0) { in main()
76 buf2[0] = ~buf1[0]; in main()
82 if (memcmp(buf1, buf2, bytes) == 0) { in main()
/freebsd/usr.bin/locate/code/
H A Dlocate.code.c92 u_char buf2[LOCATE_PATH_MAX]; variable
142 path = buf2; in main()
145 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main()
212 path = buf2; in main()
216 oldpath = buf2; in main()
/freebsd/sys/geom/bde/
H A Dg_bde_crypt.c85 u_char buf2[8]; in g_bde_kkey() local
88 le64enc(buf2, sector); in g_bde_kkey()
92 MD5Update(&ct, buf2, sizeof buf2); in g_bde_kkey()
100 MD5Update(&ct, buf2, sizeof buf2); in g_bde_kkey()
102 bzero(buf2, sizeof buf2); in g_bde_kkey()
/freebsd/contrib/file/src/
H A Dfsmagic.c328 char buf2[BUFSIZ+BUFSIZ+4]; in file_fsmagic() local
351 (void)strlcpy(buf2, fn, sizeof buf2); in file_fsmagic()
352 buf2[tmp - fn + 1] = '\0'; in file_fsmagic()
354 (void)strlcat(buf2, buf, sizeof buf2); in file_fsmagic()
355 tmp = buf2; in file_fsmagic()
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Ddisplay_status.c174 const char *buf2 = krb5_get_error_message(context, status_value); in _gsskrb5_display_status() local
175 if (buf2) { in _gsskrb5_display_status()
176 buf = strdup(buf2); in _gsskrb5_display_status()
177 krb5_free_error_message(context, buf2); in _gsskrb5_display_status()
/freebsd/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c99 char buf2[MAXPATHLEN]; in main() local
204 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _MP_DB); in main()
208 cp(buf2, buf, PERM_INSECURE); in main()
499 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _MP_DB); in main()
500 mv(buf, buf2); in main()
502 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _SMP_DB); in main()
503 mv(buf, buf2); in main()
505 (void)snprintf(buf2, sizeof(buf2), "%s/%s", prefix, _PASSWD); in main()
507 mv(buf, buf2); in main()

12345