/freebsd-11.0-release/contrib/libarchive/tar/test/ |
H A D | test_print_longpath.c | 31 char buff[2048]; local 38 memset(buff, 0, sizeof(buff)); 42 strncat(buff, "0123456789", 43 sizeof(buff) - strlen(buff) -1); 44 strncat(buff, "/", sizeof(buff) - strlen(buff) -1); 46 strncat(buff, "\ [all...] |
H A D | test_option_r.c | 33 char *buff; local 61 buff = malloc(buff_size); 62 assert(buff != NULL); 63 if (buff == NULL) { 69 buff[i] = "abcdefghijklmnopqrstuvwxyz"[rand() % 26]; 70 buff[buff_size - 1] = '\0'; 71 assertMakeFile("f1", 0644, buff); 90 assertEqualMem(p1 + 1536, buff, buff_size); 134 assertFileContents(buff, (int)strlen(buff), "f [all...] |
/freebsd-11.0-release/contrib/libarchive/libarchive/test/ |
H A D | test_archive_api_feature.c | 30 char buff[128]; local 35 sprintf(buff, "libarchive %d.%d.%d", 40 archive_version_string(), buff); 41 assertEqualMem(buff, archive_version_string(), strlen(buff)); 42 if (strlen(buff) < strlen(archive_version_string())) { 43 p = archive_version_string() + strlen(buff);
|
H A D | test_read_format_rar.c | 33 char buff[64]; local 54 assertA(size == archive_read_data(a, buff, size)); 55 assertEqualMem(buff, test_txt, size); 68 assertEqualIntA(a, 0, archive_read_data(a, buff, sizeof(buff))); 80 assertA(size == archive_read_data(a, buff, size)); 81 assertEqualMem(buff, test_txt, size); 116 char buff[64]; local 137 assertA(size == archive_read_data(a, buff, size)); 138 assertEqualMem(buff, test_tx 151 char buff[64]; local 186 char buff[30]; local 317 char buff[30]; local 536 char buff[64]; local 685 char buff[64]; local 786 char buff[441]; local 877 char buff[64]; local 1114 char buff[441]; local 1285 char buff[64]; local 1419 char buff[64]; local 1560 char buff[64]; local 1627 char buff[64]; local [all...] |
H A D | test_write_disk_sparse.c | 41 char *buff, *p; local 45 buff = malloc(buff_size); 46 assert(buff != NULL); 47 if (buff == NULL) 60 memset(buff, 0, buff_size); 61 memcpy(buff, data, sizeof(data)); 63 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size)); 66 memset(buff, 0, buff_size); 67 memcpy(buff + buff_size / 2 - 3, data, sizeof(data)); 69 assertEqualInt(buff_size, archive_write_data(a, buff, buff_siz 138 char *buff, *p; local [all...] |
H A D | test_write_disk_secure744.c | 43 char *buff = malloc(buff_size); 44 char *p = buff; 48 assert(buff != NULL); 57 while (p + 500 < buff + buff_size) { 62 buff[0] = ((n / 1000) % 10) + '0'; 63 buff[1] = ((n / 100) % 10)+ '0'; 64 buff[2] = ((n / 10) % 10)+ '0'; 65 buff[3] = ((n / 1) % 10)+ '0'; 66 buff[4] = '_'; 71 archive_entry_copy_pathname(ae, buff); [all...] |
H A D | test_zip_filename_encoding.c | 34 char buff[4096]; local 55 archive_write_open_memory(a, buff, sizeof(buff), &used)); 68 assertEqualInt(0x08, buff[7]); 69 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 78 archive_write_open_memory(a, buff, sizeof(buff), &used)); 91 assertEqualInt(0x08, buff[7]); 92 assertEqualMem(buff + 30, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 101 archive_write_open_memory(a, buff, sizeo 122 char buff[4096]; local 222 char buff[4096]; local 265 char buff[4096]; local 334 char buff[4096]; local 433 char buff[4096]; local [all...] |
H A D | test_write_format_cpio_empty.c | 50 char buff[2048]; local 61 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 70 assertEqualMem(buff, ref, 87);
|
H A D | test_gnutar_filename_encoding.c | 34 char buff[4096]; local 55 archive_write_open_memory(a, buff, sizeof(buff), &used)); 68 assertEqualMem(buff, "\xAF\xE0\xA8", 3); 75 char buff[4096]; local 96 archive_write_open_memory(a, buff, sizeof(buff), &used)); 109 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 116 char buff[4096]; local 137 archive_write_open_memory(a, buff, sizeo 157 char buff[4096]; local 202 char buff[4096]; local 242 char buff[4096]; local 277 char buff[4096]; local 317 char buff[4096]; local 357 char buff[4096]; local [all...] |
H A D | test_ustar_filename_encoding.c | 34 char buff[4096]; local 55 archive_write_open_memory(a, buff, sizeof(buff), &used)); 68 assertEqualMem(buff, "\xAF\xE0\xA8", 3); 75 char buff[4096]; local 96 archive_write_open_memory(a, buff, sizeof(buff), &used)); 109 assertEqualMem(buff, "\xD0\xBF\xD1\x80\xD0\xB8", 6); 116 char buff[4096]; local 137 archive_write_open_memory(a, buff, sizeo 157 char buff[4096]; local 202 char buff[4096]; local 242 char buff[4096]; local 277 char buff[4096]; local 317 char buff[4096]; local 357 char buff[4096]; local [all...] |
H A D | test_write_format_tar_empty.c | 35 char buff[2048]; local 45 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 54 assert(buff[i] == 0); 63 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 72 assert(buff[i] == 0);
|
H A D | test_write_format_shar_empty.c | 35 char buff[2048]; local 46 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
|
H A D | test_write_format_iso9660_boot.c | 95 unsigned char *buff; local 101 buff = malloc(buffsize); 102 assert(buff != NULL); 112 assertA(0 == archive_write_open_memory(a, buff, buffsize, &used)); 138 assertEqualMem(buff+i, nullb, 2048); 143 assertEqualMem(buff+2048*16, primary_id, 8); 144 assertEqualMem(buff+2048*16+0x28, 146 assertEqualMem(buff+2048*16+0x50, volumesize, 8); 150 assertEqualMem(buff+2048*17, boot_id, sizeof(boot_id)); 153 assert(buff[204 [all...] |
H A D | test_read_format_zip_winzip_aes_large.c | 34 char buff[512]; local 72 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 82 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 92 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 102 assertEqualInt(ARCHIVE_FAILED, archive_read_data(a, buff, sizeof(buff))); 141 assertEqualInt(512, archive_read_data(a, buff, sizeo [all...] |
H A D | test_read_filter_uudecode.c | 77 char *buff; local 94 assert(NULL != (buff = malloc(uusize + 1024 * 1024))); 95 if (buff == NULL) 98 char *p = buff; 125 read_open_memory(a, buff, size, 2)); 146 buff[extra + 1024] = buff[extra]; 147 buff[size - 1] = '\n'; 148 memcpy(buff + size, uudata, uusize); 156 read_open_memory(a, buff, siz [all...] |
H A D | test_write_format_mtree_quoted_filename.c | 30 static char buff[4096]; variable 54 archive_write_open_memory(a, buff, sizeof(buff)-1, &used)); 67 buff[used] = '\0'; 69 assertEqualString(buff, image); 77 assertEqualIntA(a, ARCHIVE_OK, archive_read_open_memory(a, buff, used));
|
H A D | test_write_filter_gzip_timestamp.c | 35 char *buff, *data; local 41 assert(NULL != (buff = (char *)malloc(buffsize))); 42 if (buff == NULL) 48 free(buff); 63 free(buff); 75 archive_write_open_memory(a, buff, buffsize, &used1)); 86 assert(memcmp(buff + 4, "\x00\x00\x00\x00", 4) != 0); 100 archive_write_open_memory(a, buff, buffsize, &used1)); 111 assertEqualMem(buff + 4, "\x00\x00\x00\x00", 4); 117 free(buff); [all...] |
H A D | test_read_format_ar.c | 34 char buff[64]; local 62 assertA(8 == archive_read_data(a, buff, 10)); 63 assertEqualMem(buff, "55667788", 8); 74 assertA(4 == archive_read_data(a, buff, 10)); 75 assertEqualMem(buff, "3333", 4); 86 assertA(9 == archive_read_data(a, buff, 9)); 87 assertEqualMem(buff, "987654321", 9);
|
H A D | test_read_format_warc.c | 33 char buff[256U]; local 53 assertEqualInt(65, archive_read_data(a, buff, sizeof(buff))); 54 assertEqualMem(buff, "This is a sample text file for libarchive's WARC reader/writer.\n\n", 65); 66 assertA(76 == archive_read_data(a, buff, sizeof(buff))); 67 assertEqualMem(buff, "The beauty is that WARC remains ASCII only iff all contents are ASCII only.\n", 76);
|
H A D | test_read_large.c | 30 static unsigned char buff[11 * 1024 * 1024]; variable 53 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 66 assertA(0 == archive_read_open_memory(a, buff, sizeof(buff))); 77 assertA(0 == archive_read_open_memory(a, buff, sizeof(buff)));
|
/freebsd-11.0-release/crypto/openssl/crypto/des/ |
H A D | read2pwd.c | 120 char buf[BUFSIZ], buff[BUFSIZ]; local 122 if ((ok = UI_UTIL_read_pw(buf, buff, BUFSIZ, prompt, verify)) == 0) 125 OPENSSL_cleanse(buff, BUFSIZ); 133 char buf[BUFSIZ], buff[BUFSIZ]; local 135 if ((ok = UI_UTIL_read_pw(buf, buff, BUFSIZ, prompt, verify)) == 0) 138 OPENSSL_cleanse(buff, BUFSIZ);
|
/freebsd-11.0-release/crypto/openssl/crypto/ui/ |
H A D | ui_compat.c | 65 int _ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, argument 68 return UI_UTIL_read_pw(buf, buff, size, prompt, verify);
|
H A D | ui_util.c | 62 char buff[BUFSIZ]; local 66 UI_UTIL_read_pw(buf, buff, (length > BUFSIZ) ? BUFSIZ : length, 68 OPENSSL_cleanse(buff, BUFSIZ); 72 int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, argument 85 ok = UI_add_verify_string(ui, prompt, 0, buff, 0, size - 1, buf);
|
/freebsd-11.0-release/contrib/libarchive/libarchive/ |
H A D | archive_write_open_memory.c | 39 unsigned char * buff; member in struct:write_memory_data 44 static ssize_t memory_write(struct archive *, void *, const void *buff, size_t); 52 archive_write_open_memory(struct archive *a, void *buff, size_t buffSize, size_t *used) argument 62 mine->buff = buff; 90 memory_write(struct archive *a, void *client_data, const void *buff, size_t length) argument 99 memcpy(mine->buff + mine->used, buff, length);
|
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_printf.cc | 33 static int AppendChar(char **buff, const char *buff_end, char c) { argument 34 if (*buff < buff_end) { 35 **buff = c; 36 (*buff)++; 44 static int AppendNumber(char **buff, const char *buff_end, u64 absolute_value, argument 56 result += AppendChar(buff, buff_end, '-'); 74 result += AppendChar(buff, buff_end, c); 76 if (negative && !pad_with_zero) result += AppendChar(buff, buff_end, '-'); 79 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit 85 static int AppendUnsigned(char **buff, cons argument 91 AppendSignedDecimal(char **buff, const char *buff_end, s64 num, u8 minimal_num_length, bool pad_with_zero) argument 98 AppendString(char **buff, const char *buff_end, int precision, const char *s) argument 111 AppendPointer(char **buff, const char *buff_end, u64 ptr_value) argument 119 VSNPrintf(char *buff, int buff_length, const char *format, va_list args) argument [all...] |