Home
last modified time | relevance | path

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

12345678910

/netbsd/external/bsd/libbind/dist/resolv/
H A Dres_mkupdate.c240 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
324 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
376 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
389 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
459 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
533 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
564 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
628 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
662 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
673 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
[all …]
/netbsd/lib/libresolv/
H A Dres_mkupdate.c241 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
325 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
377 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
390 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
461 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
539 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
570 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
634 if ((n = getword_str(buf2, sizeof buf2, in res_nmkupdate()
668 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
679 if ((n = getstr_str(buf2, sizeof buf2, in res_nmkupdate()
[all …]
/netbsd/external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/
H A Dreadlink2.c14 char buf2[1024]; in main() local
34 if (getcwd (buf2, sizeof (buf2)) != buf2) in main()
57 if (buf2[strlen (buf2) - 1] != '/') in main()
58 strcat (buf2, "/"); in main()
59 strcat (buf2, argv[0]); in main()
60 if (strcmp (buf2, buf) != 0) in main()
62 printf ("%s != %s\n", buf, buf2); in main()
68 strcat (buf2, argv[0] + 1); in main()
69 if (strcmp (buf, buf2) != 0) in main()
71 printf ("%s != %s\n", buf, buf2); in main()
/netbsd/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/
H A Dreadlink2.c14 char buf2[1024]; in main() local
34 if (getcwd (buf2, sizeof (buf2)) != buf2) in main()
57 if (buf2[strlen (buf2) - 1] != '/') in main()
58 strcat (buf2, "/"); in main()
59 strcat (buf2, argv[0]); in main()
60 if (strcmp (buf2, buf) != 0) in main()
62 printf ("%s != %s\n", buf, buf2); in main()
68 strcat (buf2, argv[0] + 1); in main()
69 if (strcmp (buf, buf2) != 0) in main()
71 printf ("%s != %s\n", buf, buf2); in main()
/netbsd/sys/external/isc/libsodium/dist/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 …]
/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()
/netbsd/games/battlestar/
H A Dgetcom.c76 getword(char *buf1, char *buf2, int flag) in getword() argument
85 *buf2 = 0; in getword()
92 *buf2++ = in getword()
96 *buf2++ = *buf1++; in getword()
101 *buf2++ = in getword()
105 *buf2++ = *buf1++; in getword()
109 *buf2++ = *buf1++; in getword()
116 *buf2++ = *buf1++; in getword()
117 *buf2 = '\0'; in getword()
/netbsd/regress/sys/arch/i386/ioperm/
H A Dioperm.c94 unsigned long buf2[32]; in main() local
113 memset(buf2, 0x00, sizeof(buf2)); in main()
114 strcpy((char *)buf2, "foobarbaz"); in main()
115 buf2[PORT / 8 / sizeof(unsigned long)] &= in main()
117 ret = i386_set_ioperm(buf2); in main()
125 if (memcmp(buf, buf2, sizeof(buf))) { in main()
133 buf2[PORT / 8 / sizeof(unsigned long)] |= in main()
135 ret = i386_set_ioperm(buf2); in main()
/netbsd/external/mpl/bind/dist/lib/isc/tests/
H A Dsafe_test.c63 char buf2[4] = { 1, 2, 3, 4 }; in isc_safe_memwipe_test() local
66 memset(buf2, 0, sizeof(buf2)); in isc_safe_memwipe_test()
68 assert_int_equal(memcmp(buf1, buf2, sizeof(buf1)), 0); in isc_safe_memwipe_test()
76 char buf2[4] = { 1, 2, 3, 4 }; in isc_safe_memwipe_test() local
83 memset(buf2, 0, 3); in isc_safe_memwipe_test()
85 assert_int_equal(memcmp(buf1, buf2, sizeof(buf1)), 0); in isc_safe_memwipe_test()
/netbsd/crypto/external/bsd/openssl.old/dist/test/
H A Drc5test.c182 unsigned char buf[8], buf2[8]; in test_rc5_ecb() local
190 RC5_32_ecb_encrypt(buf, buf2, &key, RC5_DECRYPT); in test_rc5_ecb()
191 if (!TEST_mem_eq(&RC5plain[n][0], sizeof(RC5cipher[0]), buf2, sizeof(buf2))) in test_rc5_ecb()
202 unsigned char buf[8], buf2[8], ivb[8]; in test_rc5_cbc() local
217 RC5_32_cbc_encrypt(buf, buf2, 8, &key, &ivb[0], RC5_DECRYPT); in test_rc5_cbc()
219 buf2, sizeof(buf2))) in test_rc5_cbc()
/netbsd/crypto/external/bsd/openssl/dist/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()
/netbsd/external/gpl2/xcvs/dist/src/
H A Derror.c120 char *buf2; in error() local
131 buf2 = statbuf2; in error()
162 buf2 = asnprintf (statbuf2, &length, "%s%s: %s%s%s\n", in error()
165 if (!buf2) goto memerror; in error()
173 last_message = buf2; in error()
176 cvs_outerr (buf2, length); in error()
189 if (buf2 != statbuf2) free (buf2); in error()
233 syslog (LOG_DAEMON | LOG_ERR, "%s", buf2); in error()
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/
H A Di386-sse-reverse.c27 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, in sse_test() local
32 asm ("movupd %0, %%xmm2":"=m"(buf2)); in sse_test()
79 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, in ssse3_test() local
84 asm ("movupd %0, %%xmm2":"=m"(buf2)); in ssse3_test()
98 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, in sse4_test() local
103 asm ("movupd %0, %%xmm2":"=m"(buf2)); in sse4_test()
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/
H A Di386-sse-reverse.c27 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, in sse_test() local
32 asm ("movupd %0, %%xmm2":"=m"(buf2)); in sse_test()
79 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, in ssse3_test() local
84 asm ("movupd %0, %%xmm2":"=m"(buf2)); in ssse3_test()
98 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, in sse4_test() local
103 asm ("movupd %0, %%xmm2":"=m"(buf2)); in sse4_test()
/netbsd/usr.bin/realpath/
H A Drealpath.c109 char buf2[sizeof buf]; in process() local
139 if ((size_t)snprintf(buf2, sizeof buf2, "%s/%s", buf, path) in process()
140 >= sizeof buf2) { in process()
145 path = buf2; in process()
154 q = path; r = buf; s = buf2; in process()
192 if (q != buf2) { in process()
193 q = buf2; in process()
197 r = buf2; in process()
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dcoremaker.c40 char *buf2; variable
80 buf2 = (char *) -1; in mmapdata()
87 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata()
88 if (buf2 == (char *) MAP_FAILED) in mmapdata()
109 if (buf1[j] != buf2[j] || buf1[j] != buf2ro[j]) in mmapdata()
112 buf2 = buf2ro = (char *) -1; in mmapdata()
117 buf2[0] = buf1[0]; in mmapdata()
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dcoremaker.c40 char *buf2; variable
80 buf2 = (char *) -1; in mmapdata()
87 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in mmapdata()
88 if (buf2 == (char *) MAP_FAILED) in mmapdata()
109 if (buf1[j] != buf2[j] || buf1[j] != buf2ro[j]) in mmapdata()
112 buf2 = buf2ro = (char *) -1; in mmapdata()
117 buf2[0] = buf1[0]; in mmapdata()
/netbsd/external/bsd/libevent/dist/test/
H A Dregress_buffer.c471 tt_assert(buf2); in test_evbuffer_remove_buffer_with_empty_front()
485 if (buf2) in test_evbuffer_remove_buffer_with_empty_front()
498 tt_assert(buf2); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
541 if (buf2) in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
2106 evbuffer_drain(buf2, evbuffer_get_length(buf2)); in test_evbuffer_add_reference()
2125 if (buf2) in test_evbuffer_add_reference()
2153 tt_int_op(evbuffer_add_buffer_reference(buf2, buf2), ==, -1); in test_evbuffer_multicast()
2194 if (buf2) in test_evbuffer_multicast()
2230 if (buf2) in test_evbuffer_multicast_drain()
2317 if (buf2) in test_evbuffer_prepend()
[all …]
/netbsd/crypto/external/bsd/netpgp/dist/bindings/perl/
H A Dnetpgpperl_wrap.c2499 char *buf2 = 0 ; in XS() local
2558 char *buf2 = 0 ; in XS() local
2607 char *buf2 = 0 ; in XS() local
2647 char *buf2 = 0 ; in XS() local
2695 char *buf2 = 0 ; in XS() local
2736 char *buf2 = 0 ; in XS() local
2832 char *buf2 = 0 ; in XS() local
2872 char *buf2 = 0 ; in XS() local
2921 char *buf2 = 0 ; in XS() local
2960 char *buf2 = 0 ; in XS() local
[all …]
/netbsd/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dtest_addr.c44 char buf2[1000]; in print_addr() local
63 krb5_print_address(&addresses.val[i], buf2, sizeof(buf2), &len); in print_addr()
65 printf("addr %d: %s (%d/%d)\n", i, buf2, (int)len, (int)strlen(buf2)); in print_addr()
67 if (strlen(buf2) > sizeof(buf2)) in print_addr()
69 (int)strlen(buf2), (int)sizeof(buf2)); in print_addr()
/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_cbc3des.c57 unsigned char buf[16], buf2[16]; in main() local
87 memset(&buf2, 0, sizeof(buf2)); in main()
92 co2.dst = buf2; in main()
93 co2.dst_len = sizeof(buf2); in main()
/netbsd/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dui.c200 char *buf2; in UI_UTIL_read_pw_string() local
201 buf2 = malloc(length); in UI_UTIL_read_pw_string()
202 if (buf2 == NULL) in UI_UTIL_read_pw_string()
205 ret = read_string("Verify password - ", prompt, buf2, length, 0); in UI_UTIL_read_pw_string()
207 free(buf2); in UI_UTIL_read_pw_string()
210 if (strcmp(buf2, buf) != 0) { in UI_UTIL_read_pw_string()
217 free(buf2); in UI_UTIL_read_pw_string()
/netbsd/external/public-domain/xz/dist/src/liblzma/common/
H A Dmemcmplen.h43 lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2, in uint32_t()
65 - *(const uint64_t *)(buf2 + len); in uint32_t()
99 _mm_loadu_si128((const __m128i *)(buf2 + len)))); in uint32_t()
124 - *(const uint32_t *)(buf2 + len); in uint32_t()
147 ^ *(const uint32_t *)(buf2 + len); in uint32_t()
168 while (len < limit && buf1[len] == buf2[len]) in uint32_t()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/err/
H A Derr_prn.c21 char buf2[4096]; in ERR_print_errors_cb() local
38 BIO_snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", tid.ltid, buf, in ERR_print_errors_cb()
40 if (cb(buf2, strlen(buf2), u) <= 0) in ERR_print_errors_cb()

12345678910