/src/games/battlestar/ |
getcom.c | 76 getword(char *buf1, char *buf2, int flag) 81 while (isspace((unsigned char)*buf1)) 82 buf1++; 83 if (*buf1 != ',') { 84 if (!*buf1) { 88 while (cnt < WORDLEN && *buf1 && 89 !isspace((unsigned char)*buf1) && *buf1 != ',') 91 if (isupper((unsigned char)*buf1)) { 93 tolower((unsigned char)*buf1++) [all...] |
getcom.c | 76 getword(char *buf1, char *buf2, int flag) 81 while (isspace((unsigned char)*buf1)) 82 buf1++; 83 if (*buf1 != ',') { 84 if (!*buf1) { 88 while (cnt < WORDLEN && *buf1 && 89 !isspace((unsigned char)*buf1) && *buf1 != ',') 91 if (isupper((unsigned char)*buf1)) { 93 tolower((unsigned char)*buf1++) [all...] |
getcom.c | 76 getword(char *buf1, char *buf2, int flag) 81 while (isspace((unsigned char)*buf1)) 82 buf1++; 83 if (*buf1 != ',') { 84 if (!*buf1) { 88 while (cnt < WORDLEN && *buf1 && 89 !isspace((unsigned char)*buf1) && *buf1 != ',') 91 if (isupper((unsigned char)*buf1)) { 93 tolower((unsigned char)*buf1++) [all...] |
/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...] |
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...] |
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...] |
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...] |
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_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_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_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],
|
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],
|
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/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.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.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;
|
/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);
|
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);
|
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/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;
|
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;
|
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/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...] |