Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/bsd/libbind/dist/resolv/
H A Dres_mkupdate.c91 char buf2[MAXDNAME]; in res_nmkupdate() local
213 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
215 if (!inet_aton(buf2, &ina)) in res_nmkupdate()
228 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
230 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate()
240 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
243 n = dn_comp(buf2, cp, buflen, in res_nmkupdate()
282 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
284 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate()
309 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
[all …]
/netbsd-src/lib/libresolv/
H A Dres_mkupdate.c92 char buf2[MAXDNAME]; in res_nmkupdate() local
214 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
216 if (!inet_aton(buf2, &ina)) in res_nmkupdate()
229 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
231 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate()
241 if (!getword_str(buf2, sizeof buf2, &startp, in res_nmkupdate()
244 n = dn_comp(buf2, cp, buflen, in res_nmkupdate()
283 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
285 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr); in res_nmkupdate()
310 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
[all …]
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/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-src/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()
24 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main()
26 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main()
28 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main()
29 printf("%d\n", sodium_memcmp(buf1, buf2, 0U)); in main()
30 sodium_memzero(buf2, sizeof buf2 / 2); in main()
31 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); in main()
57 randombytes_buf(buf2, bin_len); in main()
60 buf2_rev[bin_len - 1 - j] = buf2[j]; in main()
[all …]
/netbsd-src/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-src/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-src/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-src/external/mpl/bind/dist/tests/isc/
H A Dsafe_test.c62 char buf2[4] = { 1, 2, 3, 4 }; in ISC_RUN_TEST_IMPL() local
65 memset(buf2, 0, sizeof(buf2)); in ISC_RUN_TEST_IMPL()
67 assert_int_equal(memcmp(buf1, buf2, sizeof(buf1)), 0); in ISC_RUN_TEST_IMPL()
75 char buf2[4] = { 1, 2, 3, 4 }; in ISC_RUN_TEST_IMPL() local
82 memset(buf2, 0, 3); in ISC_RUN_TEST_IMPL()
84 assert_int_equal(memcmp(buf1, buf2, sizeof(buf1)), 0); in ISC_RUN_TEST_IMPL()
/netbsd-src/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-src/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-src/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-src/external/bsd/libevent/dist/test/
H A Dregress_buffer.c465 struct evbuffer *buf1 = NULL, *buf2 = NULL; in test_evbuffer_remove_buffer_with_empty_front() local
470 buf2 = evbuffer_new(); in test_evbuffer_remove_buffer_with_empty_front()
471 tt_assert(buf2); in test_evbuffer_remove_buffer_with_empty_front()
475 tt_int_op(evbuffer_remove_buffer(buf1, buf2, 1), ==, 1); in test_evbuffer_remove_buffer_with_empty_front()
480 evbuffer_validate(buf2); in test_evbuffer_remove_buffer_with_empty_front()
485 if (buf2) in test_evbuffer_remove_buffer_with_empty_front()
486 evbuffer_free(buf2); in test_evbuffer_remove_buffer_with_empty_front()
492 struct evbuffer *buf1 = NULL, *buf2 = NULL; in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty() local
497 buf2 = evbuffer_new(); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
498 tt_assert(buf2); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
[all …]
/netbsd-src/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-src/crypto/external/bsd/netpgp/dist/bindings/perl/
H A Dnetpgpperl_wrap.c2499 char *buf2 = 0 ; in XS() local
2517 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); in XS()
2521 arg2 = (char *)(buf2); in XS()
2535 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in XS()
2541 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in XS()
2558 char *buf2 = 0 ; in XS() local
2574 res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); in XS()
2578 arg2 = (char *)(buf2); in XS()
2587 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in XS()
2592 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in XS()
[all …]
/netbsd-src/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-src/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-src/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-src/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-src/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()
/netbsd-src/crypto/external/bsd/netpgp/dist/bindings/tcl/
H A Dnetpgptcl_wrap.c2365 char *buf2 = 0 ; in _wrap_netpgp_list_packets() local
2379 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2); in _wrap_netpgp_list_packets()
2383 arg2 = (char *)(buf2); in _wrap_netpgp_list_packets()
2396 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_list_packets()
2400 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_list_packets()
2415 char *buf2 = 0 ; in _wrap_netpgp_setvar() local
2427 res2 = SWIG_AsCharPtrAndSize(objv[2], &buf2, NULL, &alloc2); in _wrap_netpgp_setvar()
2431 arg2 = (char *)(buf2); in _wrap_netpgp_setvar()
2439 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_setvar()
2443 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_setvar()
[all …]
/netbsd-src/crypto/external/bsd/netpgp/dist/bindings/python/
H A Dnetpgppython_wrap.c3411 char *buf2 = 0 ; in _wrap_netpgp_list_packets() local
3429 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); in _wrap_netpgp_list_packets()
3433 arg2 = (char *)(buf2); in _wrap_netpgp_list_packets()
3446 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_list_packets()
3450 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_list_packets()
3465 char *buf2 = 0 ; in _wrap_netpgp_setvar() local
3480 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); in _wrap_netpgp_setvar()
3484 arg2 = (char *)(buf2); in _wrap_netpgp_setvar()
3492 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_setvar()
3496 if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); in _wrap_netpgp_setvar()
[all …]
/netbsd-src/usr.bin/locate/bigram/
H A Dlocate.bigram.c64 static char buf2[MAXPATHLEN]; variable
97 char *oldpath = buf1, *path = buf2; in main()
108 while ( fgets ( path, sizeof(buf2), stdin ) != NULL ) { in main()
122 path = buf2, oldpath = buf1; in main()
124 path = buf1, oldpath = buf2; in main()
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/
H A Duuid.c433 char buf1[8], buf2[64]; in main() local
451 if ( lutil_uuidstr( buf2, sizeof( buf2 ) ) ) { in main()
452 printf( "UUID: %s\n", buf2 ); in main()
454 fprintf( stderr, "too short: %ld\n", (long) sizeof( buf2 ) ); in main()
457 if ( lutil_uuidstr( buf2, sizeof( buf2 ) ) ) { in main()
458 printf( "UUID: %s\n", buf2 ); in main()
460 fprintf( stderr, "too short: %ld\n", (long) sizeof( buf2 ) ); in main()
/netbsd-src/usr.bin/locate/code/
H A Dlocate.code.c97 static char buf2[MAXPATHLEN]; variable
128 path = buf2; in main()
130 while (fgets(path, sizeof(buf2), stdin) != NULL) { in main()
176 path = buf2; in main()
180 oldpath = buf2; in main()

12345678