/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
sanitizer_printf_test.cc | 112 char buf2[1024]; local in function:__sanitizer::TestAgainstLibc 113 snprintf(buf2, sizeof(buf2), fmt, arg1, arg2); 115 EXPECT_STREQ(buf2, buf);
|
/src/tests/crypto/opencrypto/ |
h_comp.c | 48 unsigned char buf1[10000], buf2[100000]; local in function:main 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_comp_zlib.c | 47 unsigned char buf1[10000], buf2[10000]; local in function:main 77 z.next_out = buf2; 78 z.avail_out = sizeof(buf2); 89 if (memcmp(buf2, text, sizeof(text)))
|
h_comp_zlib_rnd.c | 49 unsigned char buf1[10000], buf2[10000]; local in function:main 81 z.next_out = buf2; 82 z.avail_out = sizeof(buf2); 93 if (memcmp(buf2, text, sizeof(text)))
|
h_cbc3des.c | 57 unsigned char buf[16], buf2[16]; local in function:main 87 memset(&buf2, 0, sizeof(buf2)); 92 co2.dst = buf2; 93 co2.dst_len = sizeof(buf2);
|
/src/regress/sys/arch/i386/ioperm/ |
ioperm.c | 94 unsigned long buf2[32]; local in function:main 113 memset(buf2, 0x00, sizeof(buf2)); 114 strcpy((char *)buf2, "foobarbaz"); 115 buf2[PORT / 8 / sizeof(unsigned long)] &= 117 ret = i386_set_ioperm(buf2); 125 if (memcmp(buf, buf2, sizeof(buf))) { 133 buf2[PORT / 8 / sizeof(unsigned long)] |= 135 ret = i386_set_ioperm(buf2);
|
/src/tests/lib/libc/string/ |
t_strcmp.c | 109 char buf2[10] = "xxy"; local in function:ATF_TC_BODY 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 + 2, buf1 + 2) > 0) [all...] |
/src/usr.bin/locate/bigram/ |
locate.bigram.c | 64 static char buf2[MAXPATHLEN]; variable in typeref:typename:char[] 97 char *oldpath = buf1, *path = buf2; 108 while ( fgets ( path, sizeof(buf2), stdin ) != NULL ) { 122 path = buf2, oldpath = buf1; 124 path = buf1, oldpath = buf2;
|
/src/bin/stty/ |
print.c | 62 char buf1[100], buf2[100]; local in function:print 182 (void)snprintf(buf2 + cnt * 8, 9, WD, ccval(p, cc[p->sub])); 186 (void)printf("%s\n", buf2); 191 (void)printf("%s\n", buf2);
|
/src/sys/external/isc/libsodium/dist/test/default/ |
sodium_utils.c | 9 unsigned char buf2[1000]; local in function:main 23 memcpy(buf2, buf1, sizeof buf2); 24 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); 26 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); 28 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); 29 printf("%d\n", sodium_memcmp(buf1, buf2, 0U)); 30 sodium_memzero(buf2, sizeof buf2 / 2); 31 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)) [all...] |
/src/sys/net/agr/ |
ieee8023ad_lacp_debug.c | 157 char buf2[LACP_STATESTR_MAX+1]; local in function:lacp_dump_lacpdu 162 lacp_format_state(du->ldu_actor.lip_state, buf2, sizeof(buf2))); 166 lacp_format_state(du->ldu_partner.lip_state, buf2, sizeof(buf2)));
|
/src/usr.bin/locate/code/ |
locate.code.c | 97 static char buf2[MAXPATHLEN]; variable in typeref:typename:char[] 128 path = buf2; 130 while (fgets(path, sizeof(buf2), stdin) != NULL) { 176 path = buf2; 180 oldpath = buf2;
|
/src/usr.bin/uuencode/ |
uuencode.c | 136 char buf2[sizeof(buf) * 2 + 1]; local in function:base64_encode 144 rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0]))); 147 printf("%s%s", buf2, (sequence % GROUPS) ? "" : "\n");
|
/src/usr.sbin/eeprom/ |
prephandlers.c | 186 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:prep_dump 203 memset(buf2, 0, sizeof(buf2)); 207 nvio1.pnv_buf = buf2; 211 nvio1.pnv_buflen = sizeof(buf2); 238 memset(nvio1.pnv_buf, 0, sizeof(buf2));
|
ofhandlers.c | 214 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:of_dump 227 memset(buf2, 0, sizeof(buf2)); 232 ofio1.of_buf = buf2; 250 ofio1.of_buflen = sizeof(buf2); 292 memset(ofio1.of_buf, 0, sizeof(buf2));
|
ophandlers.c | 206 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:op_dump 219 memset(buf2, 0, sizeof(buf2)); 224 opio1.op_buf = buf2; 242 opio1.op_buflen = sizeof(buf2); 281 memset(opio1.op_buf, 0, sizeof(buf2));
|
/src/sbin/nvmectl/ |
util.c | 127 char buf2[64]; local in function:print_bignum1 159 buf2[0] = '\0'; 166 unit_string(bn, unit, scale, buf2, sizeof(buf2)); 171 printf("%-31s %s%s\n", title, buf, buf2);
|
/src/tests/fs/vfs/ |
t_io.c | 175 char buf[TBSIZE], buf2[TBSIZE]; local in function:read_after_unlink 192 ATF_REQUIRE_EQ(rump_sys_read(fd, buf2, TBSIZE), TBSIZE); 193 ATF_REQUIRE_EQ(memcmp(buf, buf2, TBSIZE), 0);
|
/src/tests/modules/ |
t_kcov.c | 388 kcov_int_t *buf1, *buf2; local in function:ATF_TC_BODY 393 buf2 = common_head(&fd2); 403 common_tail(fd2, buf2);
|
/src/usr.bin/realpath/ |
realpath.c | 109 char buf2[sizeof buf]; local in function:process 139 if ((size_t)snprintf(buf2, sizeof buf2, "%s/%s", buf, path) 140 >= sizeof buf2) { 145 path = buf2; 154 q = path; r = buf; s = buf2; 192 if (q != buf2) { 193 q = buf2; 197 r = buf2;
|
/src/lib/libc/citrus/ |
citrus_esdb.c | 197 char buf1[PATH_MAX], buf2[PATH_MAX], path[PATH_MAX]; local in function:_citrus_esdb_open 207 encfile = _lookup_simple(path, realname, buf2, sizeof(buf2),
|
citrus_csmapper.c | 347 char buf1[PATH_MAX], buf2[PATH_MAX], key[PATH_MAX], pivot[PATH_MAX]; local in function:_citrus_csmapper_open 359 realdst = _lookup_alias(CS_ALIAS, dst, buf2, sizeof(buf2),
|
/src/lib/libresolv/ |
ns_verify.c | 237 u_char buf2[MAXDNAME]; local in function:ns_verify 254 n = ns_name_pton(name, buf2, sizeof(buf2)); 257 n = ns_name_ntol(buf2, buf, sizeof(buf)); 268 n = ns_name_pton(alg, buf2, sizeof(buf2)); 271 n = ns_name_ntol(buf2, buf, sizeof(buf));
|
/src/sys/netipsec/ |
ipsec_input.c | 217 char buf[IPSEC_ADDRSTRLEN], buf2[IPSEC_ADDRSTRLEN]; local in function:ipsec_common_input 312 ipsec_address(&dst_address, buf2, sizeof(buf2)), 320 ipsec_address(&dst_address, buf2, sizeof(buf2)), 328 ipsec_address(&dst_address, buf2, sizeof(buf2)),
|
/src/lib/libc/gmon/ |
gmon.c | 393 char buf2[200]; local in function:_mcleanup 458 len = snprintf(buf2, sizeof buf2, "[mcleanup1] kcount %p ssiz %lu\n", 460 (void)write(logfd, buf2, (size_t)len); 483 len = snprintf(buf2, sizeof buf2, 487 (void)write(logfd, buf2, (size_t)len);
|