Searched refs:buff_size (Results 1 - 17 of 17) sorted by relevance

/freebsd-10.0-release/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_sparse.c40 size_t buff_size = 64 * 1024; local
45 buff = malloc(buff_size);
52 archive_entry_set_size(ae, 8 * buff_size);
60 memset(buff, 0, buff_size);
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_size));
137 size_t buff_size = 64 * 1024; local
[all...]
H A Dtest_read_pax_truncated.c32 size_t used, i, buff_size = 1000000; local
34 char *buff = malloc(buff_size);
35 char *buff2 = malloc(buff_size);
43 archive_write_open_memory(a, buff, buff_size, &used));
169 memcpy(buff2, buff, buff_size);
182 memcpy(buff2, buff, buff_size);
193 memcpy(buff2, buff, buff_size);
206 memcpy(buff2, buff, buff_size);
220 memcpy(buff2, buff, buff_size);
232 memcpy(buff2, buff, buff_size);
[all...]
H A Dmain.c1011 size_t buff_size; local
1020 buff = slurpfile(&buff_size, "%s", pathname);
1046 for (c = '\0', p = buff; p < buff + buff_size; ++p) {
1061 for (j = 0, p = buff; p < buff + buff_size;
/freebsd-10.0-release/contrib/libarchive/tar/test/
H A Dtest_option_r.c35 size_t buff_size = 35000; local
61 buff = malloc(buff_size);
68 for (i = 0; i < (int)buff_size; ++i)
70 buff[buff_size - 1] = '\0';
84 buff_size_rounded = ((buff_size + 511) / 512) * 512;
90 assertEqualMem(p1 + 1536, buff, buff_size);
H A Dmain.c1013 size_t buff_size; local
1022 buff = slurpfile(&buff_size, "%s", pathname);
1049 for (c = '\0', p = buff; p < buff + buff_size; ++p) {
1064 for (j = 0, p = buff; p < buff + buff_size; p += 1 + strlen(p)) {
/freebsd-10.0-release/contrib/libarchive/libarchive/
H A Darchive_read_disk_set_standard_lookup.c65 size_t buff_size; member in struct:name_cache
194 if (cache->buff_size == 0) {
195 cache->buff_size = 256;
196 cache->buff = malloc(cache->buff_size);
203 cache->buff, cache->buff_size, &result);
213 nbuff_size = cache->buff_size * 2;
218 cache->buff_size = nbuff_size;
262 if (cache->buff_size == 0) {
263 cache->buff_size = 256;
264 cache->buff = malloc(cache->buff_size);
[all...]
H A Darchive_read_disk_posix.c183 size_t buff_size; member in struct:filesystem
697 cf->buff_size = asize - xfer_align;
786 t->entry_buff_size = t->current_filesystem->buff_size;
H A Darchive_write_disk_posix.c1003 hfs_set_resource_fork_footer(unsigned char *buff, size_t buff_size) argument
1014 if (buff_size < sizeof(rsrc_footer))
/freebsd-10.0-release/contrib/libarchive/cpio/
H A Dcpio.h92 size_t buff_size; member in struct:cpio
H A Dcpio.c140 cpio->buff_size = sizeof(buff);
843 bytes_read = read(fd, cpio->buff, (unsigned)cpio->buff_size);
857 (unsigned)cpio->buff_size);
/freebsd-10.0-release/contrib/libarchive/tar/
H A Dbsdtar.h105 size_t buff_size; /* for write.c */ member in struct:bsdtar
H A Dwrite.c435 bsdtar->buff_size = 64 * 1024;
436 while (bsdtar->buff_size < (size_t)bsdtar->bytes_per_block)
437 bsdtar->buff_size *= 2;
439 bsdtar->buff_size += 16 * 1024;
442 if ((bsdtar->buff = malloc(bsdtar->buff_size)) == NULL)
737 memset(null_buff, 0, bsdtar->buff_size);
741 if (sparse > (int64_t)bsdtar->buff_size)
742 ns = bsdtar->buff_size;
/freebsd-10.0-release/sys/dev/mge/
H A Dif_mgevar.h51 uint16_t buff_size; member in struct:mge_desc
H A Dif_mge.c953 dw->mge_desc->buff_size = MCLBYTES;
1120 bufsize = dw->mge_desc->buff_size;
/freebsd-10.0-release/contrib/libarchive/cpio/test/
H A Dmain.c1013 size_t buff_size; local
1022 buff = slurpfile(&buff_size, "%s", pathname);
1048 for (c = '\0', p = buff; p < buff + buff_size; ++p) {
1063 for (j = 0, p = buff; p < buff + buff_size; p += 1 + strlen(p)) {
/freebsd-10.0-release/sys/dev/qlxgbe/
H A Dql_hw.h605 uint32_t buff_size; member in struct:_q80_config_md_templ_cmd
614 uint32_t buff_size; member in struct:_q80_config_md_templ_cmd_rsp
H A Dql_hw.c2751 md_templ->buff_size = ha->hw.dma_buf.minidump.size;

Completed in 280 milliseconds