/src/tests/crypto/opencrypto/ |
h_comp.c | 48 unsigned char buf1[10000], buf2[100000]; local in function:main 64 co1.dst = buf1; 65 co1.dst_len = sizeof(buf1); 71 buf1[co1.dst_len - 8]++; /* modify CRC */ 73 write(1, buf1, co1.dst_len); 78 co2.src = buf1;
|
h_comp_zlib.c | 47 unsigned char buf1[10000], buf2[10000]; local in function:main 64 co1.dst = buf1; 65 co1.dst_len = sizeof(buf1); 72 z.next_in = buf1;
|
h_comp_zlib_rnd.c | 49 unsigned char buf1[10000], buf2[10000]; local in function:main 69 co1.dst = buf1; 70 co1.dst_len = sizeof(buf1); 76 z.next_in = buf1;
|
/src/sys/external/isc/libsodium/dist/test/default/ |
codecs.c | 7 unsigned char buf1[1000]; local in function:main 37 if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &bin_len, &hex_end) != -1) { 43 if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &bin_len, &hex_end) != -1) { 51 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", 58 if (sodium_hex2bin(buf1, sizeof buf1, hex, 13U, ":", 65 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", 71 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":" [all...] |
sodium_utils.c | 8 unsigned char buf1[1000]; local in function:main 22 randombytes_buf(buf1, sizeof buf1); 23 memcpy(buf2, buf1, sizeof buf2); 24 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); 25 sodium_memzero(buf1, 0U); 26 printf("%d\n", sodium_memcmp(buf1, buf2, sizeof buf1)); 27 sodium_memzero(buf1, sizeof buf1 / 2) [all...] |
/src/tests/lib/libc/string/ |
t_strcat.c | 27 char buf1[64]; local in function:ATF_TC_BODY 93 memcpy(&buf1[a1], tab[t1].val, 96 ret = f(&buf0[a0], &buf1[a1]); 112 &buf1[a1],
|
t_strcmp.c | 27 char buf1[64]; local in function:ATF_TC_BODY 81 memcpy(&buf1[a1], tab[t].val1, 84 ret = f(&buf0[a0], &buf1[a1]); 92 &buf0[a0], &buf1[a1], ret); 108 char buf1[10] = "xxx"; local in function:ATF_TC_BODY 111 ATF_CHECK(strcmp(buf1, buf1) == 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) [all...] |
t_strcpy.c | 27 char buf1[64]; local in function:ATF_TC_BODY 90 memcpy(&buf1[a1], tab[t].val, tab[t].len + 1); 91 ret = f(&buf0[a0], &buf1[a1]); 107 if (memcmp(&buf0[a0], &buf1[a1],
|
/src/usr.bin/locate/bigram/ |
locate.bigram.c | 63 static char buf1[MAXPATHLEN] = " "; variable in typeref:typename:char[] 97 char *oldpath = buf1, *path = buf2; 121 if (path == buf1) /* swap pointers */ 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 170 (void)snprintf(buf1, sizeof(buf1), "%s = %s;", 172 bput(buf1); 181 (void)snprintf(buf1 + cnt * 8, 9, WD, p->name); 185 (void)printf("%s\n", buf1); 190 (void)printf("%s\n", buf1);
|
/src/lib/libform/ |
type_ipv4.c | 63 char *buf, *buf1, *keeper, *p, *slash; local in function:ipv4_check_field 130 buf1 = NULL; 137 if (asprintf(&buf1, "%d.%d.%d.%d", vals[0], vals[1], 146 if (asprintf(&buf1, "%d.%d.%d.%d", vals[0], vals[1], 154 if (asprintf(&buf1, "%d.%d.%d.%d", vals[0], vals[1], 168 set_field_buffer(field, 1, buf1); 172 _formi_dbg_printf("%s: buf1 set to %s\n", __func__, buf1); 175 free(buf1);
|
/src/usr.bin/locate/code/ |
locate.code.c | 96 static char buf1[MAXPATHLEN] = " "; variable in typeref:typename:char[] 127 oldpath = buf1; 175 if (path == buf1) { /* swap pointers */ 177 oldpath = buf1; 179 path = buf1;
|
/src/usr.sbin/eeprom/ |
prephandlers.c | 186 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:prep_dump 202 memset(buf1, 0, sizeof(buf1)); 217 nvio1.pnv_name = buf1; 237 memset(nvio1.pnv_name, 0, sizeof(buf1));
|
ofhandlers.c | 214 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:of_dump 226 memset(buf1, 0, sizeof(buf1)); 231 ofio1.of_name = buf1; 291 memset(ofio1.of_name, 0, sizeof(buf1));
|
ophandlers.c | 206 char buf1[BUFSIZE], buf2[BUFSIZE], buf3[BUFSIZE], buf4[BUFSIZE]; local in function:op_dump 218 memset(buf1, 0, sizeof(buf1)); 223 opio1.op_name = buf1; 280 memset(opio1.op_name, 0, sizeof(buf1));
|
/src/tests/modules/ |
t_kcov.c | 388 kcov_int_t *buf1, *buf2; local in function:ATF_TC_BODY 392 buf1 = common_head(&fd1); 402 common_tail(fd1, buf1);
|
/src/lib/libc/citrus/ |
citrus_esdb.c | 197 char buf1[PATH_MAX], buf2[PATH_MAX], path[PATH_MAX]; local in function:_citrus_esdb_open 203 realname = _lookup_alias(path, esname, buf1, sizeof(buf1),
|
citrus_csmapper.c | 347 char buf1[PATH_MAX], buf2[PATH_MAX], key[PATH_MAX], pivot[PATH_MAX]; local in function:_citrus_csmapper_open 357 realsrc = _lookup_alias(CS_ALIAS, src, buf1, sizeof(buf1),
|
/src/lib/libc/gdtoa/test/ |
dt.c | 190 char buf[2048], buf1[32]; local in function:main 237 g_fmt(buf1, dval(&d)); 238 printf("\tg_fmt gives \"%s\"\n", buf1); 262 g_fmt(buf1, dval(&d)); 263 printf("\tg_fmt gives \"%s\"\n", buf1); 281 g_fmt(buf1, dval(&d)); 282 printf("\tg_fmt gives \"%s\"\n", buf1);
|
/src/tests/lib/libc/stdio/ |
t_fmemopen.c | 788 char buf0[BUFSIZ], buf1[BUFSIZ]; local in function:ATF_TC_BODY 795 buf1[t->n] = 0x1; 802 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), fp) == (size_t)t->n); 804 ATF_CHECK(memcmp(&buf0[0], &buf1[0], t->n) == 0); 805 ATF_CHECK((unsigned char)buf1[t->n] == 0x1); 878 char buf0[BUFSIZ], buf1[BUFSIZ]; local in function:ATF_TC_BODY 886 buf1[t->n - len] = 0x1; 896 ATF_CHECK(fread(&buf1[0], 1, sizeof(buf1), fp [all...] |
/src/tests/lib/libc/gen/ |
t_arc4random.c | 504 unsigned char buf[32], buf1[32]; local in function:ATF_TC_BODY 521 arc4random_buf(buf1, sizeof(buf1)); 522 ATF_CHECK(!iszero(buf1, sizeof(buf1))); /* Pr[fail] = 1/2^256 */ 523 ATF_CHECK(memcmp(buf, buf1, sizeof(buf)) != 0); 534 unsigned char buf[32], buf1[32]; local in function:ATF_TC_BODY 562 arc4random_buf(buf1, sizeof(buf1)); 563 ATF_CHECK(!iszero(buf1, sizeof(buf1))); /* Pr[fail] = 1/2^256 * 583 unsigned char buf[32], buf1[32]; local in function:ATF_TC_BODY 617 unsigned char buf[32], buf1[32]; local in function:ATF_TC_BODY [all...] |
/src/sbin/raidctl/ |
rf_configure.c | 145 char buf[BUFSIZ], buf1[BUFSIZ], *cp; local in function:rf_MakeConfig 223 assert(64 < sizeof buf1); 224 if (sscanf(buf, "%64s %d", buf1, &val) != 2 || strlen(buf1) >= 60) { 233 memcpy(cfgPtr->diskQueueType, buf1, 234 RF_MIN(sizeof(cfgPtr->diskQueueType), strlen(buf1) + 1)); 238 /* it was also pointless as buf1 data was (b4) never used again */ 239 for (ch = buf1; *ch; ch++) { 250 buf1, val, cfgPtr->maxOutstandingDiskReqs);
|
/src/sys/dev/raidframe/ |
rf_raid1.c | 274 char *bf, *buf1, *buf2; local in function:rf_VerifyParityRAID1 331 buf1 = bf; 345 pda->bufPtr = buf1; 347 blockNode->succedents[i]->params[1].p = buf1; 350 buf1 += nbytes; 354 * keep i, buf1 running 366 pda->bufPtr = buf1; 368 blockNode->succedents[i]->params[1].p = buf1; 371 buf1 += nbytes; 405 * buf1 is the beginning of the data blocks chun [all...] |
/src/tests/lib/libc/net/ |
h_dns_server.c | 176 char buf1[1024], buf2[1024]; local in function:main 251 name2str(p, buf1, sizeof(buf1)), 256 name2str(p, buf1, sizeof(buf1)));
|
/src/usr.sbin/pf/pfs/ |
pfs.c | 313 char buf1[64], buf2[64], buf3[64]; local in function:display_states 315 print_host(&p->lan, p->af, buf1, sizeof(buf1)), 319 char buf1[64], buf2[64]; local in function:display_states 321 print_host(&p->lan, p->af, buf1, sizeof(buf1)),
|