/freebsd-9.3-release/contrib/libarchive/libarchive/test/ |
H A D | test_write_disk_sparse.c | 41 char *buff, *p; local 45 buff = malloc(buff_size); 46 assert(buff != NULL); 58 memset(buff, 0, buff_size); 59 memcpy(buff, data, sizeof(data)); 61 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size)); 64 memset(buff, 0, buff_size); 65 memcpy(buff + buff_size / 2 - 3, data, sizeof(data)); 67 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size)); 70 memset(buff, 133 char *buff, *p; local [all...] |
H A D | test_write_format_zip_empty.c | 36 char buff[256]; local 45 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 53 assertEqualMem(buff,
|
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 assert(memcmp(buff, archive_version_string(), strlen(buff)) == 0); 42 if (strlen(buff) < strlen(archive_version_string())) { 43 p = archive_version_string() + strlen(buff);
|
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)); 74 assertEqualMem(buff, ref, 87);
|
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)); 63 assert(buff[i] == 0); 72 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used)); 90 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_read_uu.c | 77 char *buff; local 80 assert(NULL != (buff = malloc(uusize + 64 * 1024))); 81 if (buff == NULL) 85 char *p = buff; 111 read_open_memory(a, buff, size, 2)); 124 free(buff);
|
H A D | test_empty_write.c | 30 char buff[32768]; local 49 archive_write_open_memory(a, buff, sizeof(buff), &used)); 80 archive_write_open_memory(a, buff, sizeof(buff), &used)); 105 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &used));
|
H A D | test_read_format_ar.c | 34 char buff[64]; local 60 assertA(8 == archive_read_data(a, buff, 10)); 61 assert(0 == memcmp(buff, "55667788", 8)); 70 assertA(4 == archive_read_data(a, buff, 10)); 71 assert(0 == memcmp(buff, "3333", 4)); 80 assertA(9 == archive_read_data(a, buff, 9)); 81 assert(0 == memcmp(buff, "987654321", 9));
|
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))); 76 assertA(0 == archive_read_open_memory(a, buff, sizeof(buff)));
|
H A D | test_read_position.c | 29 static unsigned char buff[10000000]; variable 42 assert(sizeof(nulls) + 512 + 1024 <= sizeof(buff)); 48 assertA(0 == archive_write_open_memory(a, buff, sizeof(buff), &write_pos)); 67 assertA(0 == archive_read_open_memory2(a, buff, sizeof(buff), 512)); 79 archive_read_data_into_buffer(a, buff, 1));
|
H A D | test_tar_large.c | 55 void *buff; member in struct:memblock 65 void *buff; member in struct:memdata 81 static ssize_t memory_read(struct archive *, void *, const void **buff); 86 memory_write(struct archive *a, void *_private, const void *buff, size_t size) argument 100 if ((const char *)filedata <= (const char *)buff 101 && (const char *)buff < (const char *)filedata + filedatasize) { 110 block->buff = malloc(size); 111 memcpy(block->buff, buff, size); 124 memory_read(struct archive *a, void *_private, const void **buff) argument [all...] |
H A D | test_extattr_freebsd.c | 43 char buff[64]; 133 "foo", buff, sizeof(buff)); 135 buff[n] = '\0'; 136 assertEqualString(buff, "12345"); 144 "bar", buff, sizeof(buff)); 150 buff[n] = '\0'; 151 assertEqualString(buff, "123456");
|
H A D | test_read_format_zip.c | 39 char *buff[128]; local 62 r = archive_read_data(a, buff, 19); 72 assert(0 == memcmp(buff, "hello\nhello\nhello\n", 18)); 79 assertEqualInt(ARCHIVE_WARN, archive_read_data(a, buff, 19)); 80 assert(0 == memcmp(buff, "hello\nhello\nhello\n", 18));
|
H A D | test_write_open_memory.c | 29 static unsigned char buff[16384]; variable 54 buff[i] = 0xAE; 55 assertA(0 == archive_write_open_memory(a, buff, i, &s)); 72 assert(buff[i] == 0xAE);
|
/freebsd-9.3-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-9.3-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-9.3-release/contrib/libarchive/libarchive/ |
H A D | archive_write_open_memory.c | 51 unsigned char * buff; member in struct:write_memory_data 56 static ssize_t memory_write(struct archive *, void *, const void *buff, size_t); 64 archive_write_open_memory(struct archive *a, void *buff, size_t buffSize, size_t *used) argument 74 mine->buff = buff; 102 memory_write(struct archive *a, void *client_data, const void *buff, size_t length) argument 111 memcpy(mine->buff + mine->used, buff, length);
|
H A D | archive_write_set_format_ar.c | 76 const void *buff, size_t s); 141 char buff[60]; local 172 memset(buff, ' ', 60); 173 strncpy(&buff[AR_fmag_offset], "`\n", 2); 177 buff[AR_name_offset] = '/'; 182 strncpy(buff + AR_name_offset, "__.SYMDEF", 9); 191 buff[AR_name_offset] = buff[AR_name_offset + 1] = '/'; 218 strncpy(&buff[AR_name_offset], 220 buff[AR_name_offse 351 archive_write_ar_data(struct archive_write *a, const void *buff, size_t s) argument [all...] |
H A D | archive_virtual.c | 89 archive_write_data(struct archive *a, const void *buff, size_t s) argument 91 return ((a->vtable->archive_write_data)(a, buff, s)); 95 archive_write_data_block(struct archive *a, const void *buff, size_t s, off_t o) argument 97 return ((a->vtable->archive_write_data_block)(a, buff, s, o));
|
H A D | archive_read_open_memory.c | 56 static ssize_t memory_read(struct archive *, void *, const void **buff); 59 archive_read_open_memory(struct archive *a, void *buff, size_t size) argument 61 return archive_read_open_memory2(a, buff, size, size); 70 archive_read_open_memory2(struct archive *a, void *buff, argument 81 mine->buffer = (unsigned char *)buff; 107 memory_read(struct archive *a, void *client_data, const void **buff) argument 113 *buff = mine->buffer;
|
/freebsd-9.3-release/contrib/libarchive/libarchive_fe/ |
H A D | line_reader.c | 51 char *buff, *buff_end, *line_start, *line_end, *p; member in struct:lafe_line_reader 77 lr->buff = malloc(lr->buff_length); 78 if (lr->buff == NULL) 80 lr->line_start = lr->line_end = lr->buff_end = lr->buff; 127 if (lr->line_start > lr->buff) { 129 memmove(lr->buff, lr->line_start, 131 lr->buff_end -= lr->line_start - lr->buff; 132 lr->line_end -= lr->line_start - lr->buff; 133 lr->line_start = lr->buff; 141 p = realloc(lr->buff, new_buff_siz [all...] |
/freebsd-9.3-release/contrib/libarchive/tar/test/ |
H A D | test_copy.c | 106 char buff[250]; local 115 buff[j] = 'a' + (j % 26); 116 buff[j--] = '\0'; 118 buff[j--] = '0' + (i % 10); 120 buff[j--] = '0' + ((i / 10) % 10); 122 buff[j--] = '0' + (i / 100); 124 buff[j] = '_'; 126 assertEqualInt(strlen(buff), i); 127 filenames[i] = strdup(buff); 134 char buff[26 local [all...] |
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | auth.c | 166 char *vector[6], buff[LINE_LEN]; local 173 while (fgets(buff, sizeof buff, fp)) { 175 if (buff[0] == '#') 177 buff[strlen(buff) - 1] = '\0'; 179 if ((n = MakeArgs(buff, vector, VECSIZE(vector), PARSE_REDUCE)) < 0) 211 char *vector[5], buff[LINE_LEN]; local 234 while (fgets(buff, sizeof buff, f 294 char *vector[5], buff[LINE_LEN]; local 347 static char buff[LINE_LEN]; /* vector[] will point here when returned */ local [all...] |