Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libarchive/dist Import libarchive 2.8.0:
details: https://anonhg.NetBSD.org/src/rev/3c505b0b7a18
branches: trunk
changeset: 752221:3c505b0b7a18
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Feb 20 02:48:21 2010 +0000
description:
Import libarchive 2.8.0:
- Infrastructure:
- Allow command line tools as fallback for missing compression
libraries. If compiled without gzip for example, gunzip will
be used automatically.
- Improved support for a number of platforms like high-resolution
timestamps and Extended Attributes on various Unix systems
- New convience interface for creating archives based on disk content,
complement of the archive_write_disk interface.
- Frontends:
- bsdcpio ready for public consumption
- hand-written date parser replaces the yacc code
- Filter system:
- Simplified read filter chains
- Option support for filters
- LZMA, XZ, uudecode handled
- Format support:
- Write support for mtree files based on file system or archive
content
- Basic read support for Joliet
- Write support for zip files
- Write support for shar archives, both text-only and binary-safe
diffstat:
external/bsd/libarchive/dist/COPYING | 4 +-
external/bsd/libarchive/dist/NEWS | 93 +-
external/bsd/libarchive/dist/README | 137 +
external/bsd/libarchive/dist/cpio/bsdcpio.1 | 38 +
external/bsd/libarchive/dist/cpio/cmdline.c | 359 +-
external/bsd/libarchive/dist/cpio/cpio.c | 797 +-
external/bsd/libarchive/dist/cpio/cpio.h | 37 +-
external/bsd/libarchive/dist/cpio/cpio_platform.h | 45 +-
external/bsd/libarchive/dist/cpio/cpio_windows.c | 338 +
external/bsd/libarchive/dist/cpio/cpio_windows.h | 72 +
external/bsd/libarchive/dist/cpio/test/CMakeLists.txt | 79 +
external/bsd/libarchive/dist/cpio/test/list.h | 13 +-
external/bsd/libarchive/dist/cpio/test/main.c | 2163 +++++-
external/bsd/libarchive/dist/cpio/test/test.h | 224 +-
external/bsd/libarchive/dist/cpio/test/test_0.c | 15 +-
external/bsd/libarchive/dist/cpio/test/test_basic.c | 141 +-
external/bsd/libarchive/dist/cpio/test/test_cmdline.c | 107 +
external/bsd/libarchive/dist/cpio/test/test_format_newc.c | 157 +-
external/bsd/libarchive/dist/cpio/test/test_gcpio_compat.c | 107 +-
external/bsd/libarchive/dist/cpio/test/test_option_B_upper.c | 52 +
external/bsd/libarchive/dist/cpio/test/test_option_C_upper.c | 62 +
external/bsd/libarchive/dist/cpio/test/test_option_J_upper.c | 56 +
external/bsd/libarchive/dist/cpio/test/test_option_L_upper.c | 101 +
external/bsd/libarchive/dist/cpio/test/test_option_Z_upper.c | 56 +
external/bsd/libarchive/dist/cpio/test/test_option_a.c | 33 +-
external/bsd/libarchive/dist/cpio/test/test_option_c.c | 107 +-
external/bsd/libarchive/dist/cpio/test/test_option_d.c | 30 +-
external/bsd/libarchive/dist/cpio/test/test_option_f.c | 46 +-
external/bsd/libarchive/dist/cpio/test/test_option_help.c | 3 +
external/bsd/libarchive/dist/cpio/test/test_option_l.c | 50 +
external/bsd/libarchive/dist/cpio/test/test_option_lzma.c | 56 +
external/bsd/libarchive/dist/cpio/test/test_option_m.c | 29 +-
external/bsd/libarchive/dist/cpio/test/test_option_t.c | 58 +-
external/bsd/libarchive/dist/cpio/test/test_option_tv.stdout.uu | 5 +-
external/bsd/libarchive/dist/cpio/test/test_option_u.c | 15 +-
external/bsd/libarchive/dist/cpio/test/test_option_version.c | 8 +-
external/bsd/libarchive/dist/cpio/test/test_option_y.c | 31 +-
external/bsd/libarchive/dist/cpio/test/test_option_z.c | 28 +-
external/bsd/libarchive/dist/cpio/test/test_owner_parse.c | 99 +-
external/bsd/libarchive/dist/cpio/test/test_passthrough_dotdot.c | 76 +
external/bsd/libarchive/dist/cpio/test/test_passthrough_reverse.c | 85 +
external/bsd/libarchive/dist/cpio/test/test_pathmatch.c | 276 +-
external/bsd/libarchive/dist/libarchive/archive.h | 241 +-
external/bsd/libarchive/dist/libarchive/archive_check_magic.c | 26 +-
external/bsd/libarchive/dist/libarchive/archive_endian.h | 24 +-
external/bsd/libarchive/dist/libarchive/archive_entry.c | 491 +-
external/bsd/libarchive/dist/libarchive/archive_entry.h | 83 +-
external/bsd/libarchive/dist/libarchive/archive_entry_copy_bhfi.c | 74 +
external/bsd/libarchive/dist/libarchive/archive_entry_copy_stat.c | 20 +-
external/bsd/libarchive/dist/libarchive/archive_entry_link_resolver.c | 22 +-
external/bsd/libarchive/dist/libarchive/archive_entry_private.h | 21 +-
external/bsd/libarchive/dist/libarchive/archive_entry_stat.c | 22 +-
external/bsd/libarchive/dist/libarchive/archive_entry_xattr.c | 158 +
external/bsd/libarchive/dist/libarchive/archive_hash.h | 196 +
external/bsd/libarchive/dist/libarchive/archive_platform.h | 57 +-
external/bsd/libarchive/dist/libarchive/archive_private.h | 41 +-
external/bsd/libarchive/dist/libarchive/archive_read.c | 842 ++-
external/bsd/libarchive/dist/libarchive/archive_read_disk.3 | 308 +
external/bsd/libarchive/dist/libarchive/archive_read_disk.c | 198 +
external/bsd/libarchive/dist/libarchive/archive_read_disk_entry_from_file.c | 563 +
external/bsd/libarchive/dist/libarchive/archive_read_disk_private.h | 62 +
external/bsd/libarchive/dist/libarchive/archive_read_disk_set_standard_lookup.c | 272 +
external/bsd/libarchive/dist/libarchive/archive_read_open_fd.c | 73 +-
external/bsd/libarchive/dist/libarchive/archive_read_open_file.c | 52 +-
external/bsd/libarchive/dist/libarchive/archive_read_open_filename.c | 171 +-
external/bsd/libarchive/dist/libarchive/archive_read_private.h | 156 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_all.c | 27 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_bzip2.c | 477 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_compress.c | 257 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_gzip.c | 714 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_none.c | 342 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_program.c | 526 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_rpm.c | 287 +
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_uu.c | 627 +
external/bsd/libarchive/dist/libarchive/archive_read_support_compression_xz.c | 708 ++
external/bsd/libarchive/dist/libarchive/archive_read_support_format_all.c | 3 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_ar.c | 81 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_cpio.c | 164 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_empty.c | 11 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_iso9660.c | 2592 ++++++-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_mtree.c | 100 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_raw.c | 185 +
external/bsd/libarchive/dist/libarchive/archive_read_support_format_tar.c | 189 +-
external/bsd/libarchive/dist/libarchive/archive_read_support_format_xar.c | 3150 ++++++++++
external/bsd/libarchive/dist/libarchive/archive_read_support_format_zip.c | 214 +-
external/bsd/libarchive/dist/libarchive/archive_string.c | 336 +-
external/bsd/libarchive/dist/libarchive/archive_string.h | 23 +-
external/bsd/libarchive/dist/libarchive/archive_string_sprintf.c | 38 +-
external/bsd/libarchive/dist/libarchive/archive_util.3 | 11 +-
external/bsd/libarchive/dist/libarchive/archive_util.c | 232 +-
external/bsd/libarchive/dist/libarchive/archive_virtual.c | 21 +-
external/bsd/libarchive/dist/libarchive/archive_windows.c | 1300 +++-
external/bsd/libarchive/dist/libarchive/archive_windows.h | 396 +-
external/bsd/libarchive/dist/libarchive/archive_write.c | 118 +-
external/bsd/libarchive/dist/libarchive/archive_write_disk.c | 789 +-
external/bsd/libarchive/dist/libarchive/archive_write_disk_private.h | 6 +-
external/bsd/libarchive/dist/libarchive/archive_write_disk_set_standard_lookup.c | 68 +-
external/bsd/libarchive/dist/libarchive/archive_write_open_fd.c | 11 +-
external/bsd/libarchive/dist/libarchive/archive_write_open_filename.c | 49 +-
external/bsd/libarchive/dist/libarchive/archive_write_private.h | 13 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_compression_bzip2.c | 204 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_compression_compress.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_compression_gzip.c | 253 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_compression_none.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_compression_program.c | 8 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_compression_xz.c | 438 +
external/bsd/libarchive/dist/libarchive/archive_write_set_format.c | 4 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_ar.c | 7 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_by_name.c | 6 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_cpio.c | 111 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_cpio_newc.c | 46 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_mtree.c | 1050 +++
external/bsd/libarchive/dist/libarchive/archive_write_set_format_pax.c | 95 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_shar.c | 444 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_ustar.c | 11 +-
external/bsd/libarchive/dist/libarchive/archive_write_set_format_zip.c | 667 ++
external/bsd/libarchive/dist/libarchive/filter_fork.c | 16 +-
external/bsd/libarchive/dist/libarchive/filter_fork.h | 6 +-
external/bsd/libarchive/dist/libarchive/filter_fork_windows.c | 113 +
external/bsd/libarchive/dist/libarchive/libarchive-formats.5 | 133 +-
external/bsd/libarchive/dist/libarchive/tar.5 | 153 +-
external/bsd/libarchive/dist/libarchive/test/CMakeLists.txt | 158 +
external/bsd/libarchive/dist/libarchive/test/README | 63 +
external/bsd/libarchive/dist/libarchive/test/list.h | 51 +-
external/bsd/libarchive/dist/libarchive/test/main.c | 2156 +++++-
external/bsd/libarchive/dist/libarchive/test/read_open_memory.c | 53 +-
external/bsd/libarchive/dist/libarchive/test/test.h | 237 +-
external/bsd/libarchive/dist/libarchive/test/test_acl_basic.c | 13 +-
external/bsd/libarchive/dist/libarchive/test/test_acl_freebsd.c | 255 +
external/bsd/libarchive/dist/libarchive/test/test_acl_pax.c | 42 +-
external/bsd/libarchive/dist/libarchive/test/test_bad_fd.c | 8 +-
external/bsd/libarchive/dist/libarchive/test/test_compat_bzip2.c | 85 +
external/bsd/libarchive/dist/libarchive/test/test_compat_bzip2_1.tbz.uu | 24 +
external/bsd/libarchive/dist/libarchive/test/test_compat_bzip2_2.tbz.uu | 11 +
external/bsd/libarchive/dist/libarchive/test/test_compat_cpio.c | 106 +
external/bsd/libarchive/dist/libarchive/test/test_compat_cpio_1.cpio.uu | 19 +
external/bsd/libarchive/dist/libarchive/test/test_compat_gtar.c | 25 +-
external/bsd/libarchive/dist/libarchive/test/test_compat_gtar_1.tar.uu | 232 +
external/bsd/libarchive/dist/libarchive/test/test_compat_gzip.c | 97 +
external/bsd/libarchive/dist/libarchive/test/test_compat_gzip_1.tgz.uu | 24 +
external/bsd/libarchive/dist/libarchive/test/test_compat_gzip_2.tgz.uu | 11 +
external/bsd/libarchive/dist/libarchive/test/test_compat_lzma.c | 155 +
external/bsd/libarchive/dist/libarchive/test/test_compat_lzma_1.tlz.uu | 10 +
external/bsd/libarchive/dist/libarchive/test/test_compat_lzma_2.tlz.uu | 9 +
external/bsd/libarchive/dist/libarchive/test/test_compat_lzma_3.tlz.uu | 9 +
external/bsd/libarchive/dist/libarchive/test/test_compat_solaris_tar_acl.c | 128 +
external/bsd/libarchive/dist/libarchive/test/test_compat_solaris_tar_acl.tar.uu | 61 +
external/bsd/libarchive/dist/libarchive/test/test_compat_tar_hardlink.c | 6 +-
external/bsd/libarchive/dist/libarchive/test/test_compat_xz.c | 84 +
external/bsd/libarchive/dist/libarchive/test/test_compat_xz_1.txz.uu | 13 +
external/bsd/libarchive/dist/libarchive/test/test_compat_zip.c | 23 +-
external/bsd/libarchive/dist/libarchive/test/test_compat_zip_1.zip.uu | 1 +
external/bsd/libarchive/dist/libarchive/test/test_empty_write.c | 87 +-
external/bsd/libarchive/dist/libarchive/test/test_entry.c | 213 +-
external/bsd/libarchive/dist/libarchive/test/test_entry_strmode.c | 33 +-
external/bsd/libarchive/dist/libarchive/test/test_extattr_freebsd.c | 172 +
external/bsd/libarchive/dist/libarchive/test/test_fuzz.c | 166 +
external/bsd/libarchive/dist/libarchive/test/test_fuzz_1.iso.Z.uu | 495 +
external/bsd/libarchive/dist/libarchive/test/test_open_fd.c | 128 +
external/bsd/libarchive/dist/libarchive/test/test_open_file.c | 108 +
external/bsd/libarchive/dist/libarchive/test/test_open_filename.c | 109 +
external/bsd/libarchive/dist/libarchive/test/test_pax_filename_encoding.c | 52 +-
external/bsd/libarchive/dist/libarchive/test/test_pax_filename_encoding.tar.uu | 118 +
external/bsd/libarchive/dist/libarchive/test/test_read_compress_program.c | 61 +-
external/bsd/libarchive/dist/libarchive/test/test_read_data_large.c | 44 +-
external/bsd/libarchive/dist/libarchive/test/test_read_disk.c | 172 +
external/bsd/libarchive/dist/libarchive/test/test_read_disk_entry_from_file.c | 80 +
external/bsd/libarchive/dist/libarchive/test/test_read_extract.c | 103 +-
external/bsd/libarchive/dist/libarchive/test/test_read_file_nonexistent.c | 37 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_ar.ar.uu | 12 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_ar.c | 44 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin.c | 8 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_Z.c | 30 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_be.c | 55 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_be.cpio.uu | 8 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_bz2.c | 24 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_gz.c | 34 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_lzma.c | 60 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_bin_xz.c | 70 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_odc.c | 8 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.c | 127 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_svr4_bzip2_rpm.rpm.uu | 47 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_svr4_gzip.c | 33 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_svr4_gzip_rpm.c | 127 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_svr4_gzip_rpm.rpm.uu | 46 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_cpio_svr4c_Z.c | 28 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_empty.c | 14 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_gz.c | 32 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_lzma.c | 78 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse.c | 43 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse_1_13.tar.uu | 1370 ++++
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse_1_17.tar.uu | 1370 ++++
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse_1_17_posix00.tar.uu | 1597 +++++
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse_1_17_posix01.tar.uu | 1370 ++++
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse_1_17_posix10.tar.uu | 1370 ++++
external/bsd/libarchive/dist/libarchive/test/test_read_format_gtar_sparse_1_17_posix10_modified.tar.uu | 1 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso.iso.Z.uu | 26 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_gz.c | 57 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_joliet.iso.Z.uu | 66 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_joliet_long.iso.Z.uu | 71 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_joliet_rockridge.iso.Z.uu | 68 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_multi_extent.c | 94 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_multi_extent.iso.Z.uu | 67 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_rockridge.iso.Z.uu | 206 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_rockridge_ce.iso.Z.uu | 63 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_rockridge_new.iso.Z.uu | 208 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_rockridge_rr_moved.iso.Z.uu | 304 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_iso_zisofs.iso.Z.uu | 63 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isojoliet_bz2.c | 134 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isojoliet_long.c | 141 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isojoliet_rr.c | 159 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isorr_bz2.c | 212 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_isorr_ce.c | 223 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isorr_new_bz2.c | 204 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isorr_rr_moved.c | 270 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_isozisofs_bz2.c | 187 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_mtree.c | 98 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_mtree.mtree.uu | 13 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_pax_bz2.c | 30 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_raw.c | 89 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_raw.data.Z.uu | 5 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_raw.data.uu | 5 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_tar.c | 33 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_tar_empty_filename.c | 8 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_tar_empty_filename.tar.uu | 1 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_tbz.c | 30 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_tgz.c | 32 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_tlz.c | 60 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_txz.c | 63 +
external/bsd/libarchive/dist/libarchive/test/test_read_format_tz.c | 27 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_xar.c | 697 ++
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip.c | 36 +-
external/bsd/libarchive/dist/libarchive/test/test_read_format_zip.zip.uu | 23 +-
external/bsd/libarchive/dist/libarchive/test/test_read_large.c | 41 +-
external/bsd/libarchive/dist/libarchive/test/test_read_pax_truncated.c | 89 +-
external/bsd/libarchive/dist/libarchive/test/test_read_position.c | 71 +-
external/bsd/libarchive/dist/libarchive/test/test_read_truncated.c | 24 +-
external/bsd/libarchive/dist/libarchive/test/test_read_uu.c | 134 +
external/bsd/libarchive/dist/libarchive/test/test_tar_filenames.c | 20 +-
external/bsd/libarchive/dist/libarchive/test/test_tar_large.c | 64 +-
external/bsd/libarchive/dist/libarchive/test/test_ustar_filenames.c | 18 +-
external/bsd/libarchive/dist/libarchive/test/test_write_compress.c | 20 +-
external/bsd/libarchive/dist/libarchive/test/test_write_compress_bzip2.c | 228 +
external/bsd/libarchive/dist/libarchive/test/test_write_compress_gzip.c | 252 +
external/bsd/libarchive/dist/libarchive/test/test_write_compress_lzma.c | 245 +
external/bsd/libarchive/dist/libarchive/test/test_write_compress_program.c | 69 +-
external/bsd/libarchive/dist/libarchive/test/test_write_compress_xz.c | 253 +
external/bsd/libarchive/dist/libarchive/test/test_write_disk.c | 196 +-
external/bsd/libarchive/dist/libarchive/test/test_write_disk_failures.c | 72 +
external/bsd/libarchive/dist/libarchive/test/test_write_disk_hardlink.c | 150 +-
external/bsd/libarchive/dist/libarchive/test/test_write_disk_perms.c | 20 +-
external/bsd/libarchive/dist/libarchive/test/test_write_disk_secure.c | 86 +-
external/bsd/libarchive/dist/libarchive/test/test_write_disk_sparse.c | 280 +
external/bsd/libarchive/dist/libarchive/test/test_write_disk_symlink.c | 117 +
external/bsd/libarchive/dist/libarchive/test/test_write_disk_times.c | 167 +
external/bsd/libarchive/dist/libarchive/test/test_write_format_ar.c | 108 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_cpio.c | 47 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_cpio_empty.c | 10 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_cpio_newc.c | 21 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_cpio_odc.c | 37 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_mtree.c | 155 +
external/bsd/libarchive/dist/libarchive/test/test_write_format_pax.c | 146 +
external/bsd/libarchive/dist/libarchive/test/test_write_format_shar_empty.c | 8 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_tar.c | 18 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_tar_empty.c | 20 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_tar_ustar.c | 11 +-
external/bsd/libarchive/dist/libarchive/test/test_write_format_zip.c | 180 +
external/bsd/libarchive/dist/libarchive/test/test_write_format_zip_empty.c | 56 +
external/bsd/libarchive/dist/libarchive/test/test_write_format_zip_no_compression.c | 304 +
external/bsd/libarchive/dist/libarchive/test/test_write_open_memory.c | 10 +-
external/bsd/libarchive/dist/libarchive_fe/err.c | 74 +
external/bsd/libarchive/dist/libarchive_fe/err.h | 41 +
external/bsd/libarchive/dist/libarchive_fe/lafe_platform.h | 55 +
external/bsd/libarchive/dist/libarchive_fe/line_reader.c | 171 +
external/bsd/libarchive/dist/libarchive_fe/line_reader.h | 35 +
external/bsd/libarchive/dist/libarchive_fe/matching.c | 284 +
external/bsd/libarchive/dist/libarchive_fe/matching.h | 46 +
external/bsd/libarchive/dist/libarchive_fe/pathmatch.c | 255 +
external/bsd/libarchive/dist/libarchive_fe/pathmatch.h | 42 +
external/bsd/libarchive/dist/tar/bsdtar.1 | 169 +-
external/bsd/libarchive/dist/tar/bsdtar.c | 535 +-
external/bsd/libarchive/dist/tar/bsdtar.h | 67 +-
external/bsd/libarchive/dist/tar/bsdtar_platform.h | 86 +-
external/bsd/libarchive/dist/tar/bsdtar_windows.c | 298 +
external/bsd/libarchive/dist/tar/bsdtar_windows.h | 60 +
external/bsd/libarchive/dist/tar/cmdline.c | 381 +
external/bsd/libarchive/dist/tar/getdate.c | 1037 +++
external/bsd/libarchive/dist/tar/read.c | 165 +-
external/bsd/libarchive/dist/tar/subst.c | 46 +-
external/bsd/libarchive/dist/tar/test/CMakeLists.txt | 67 +
external/bsd/libarchive/dist/tar/test/list.h | 16 +
external/bsd/libarchive/dist/tar/test/main.c | 2267 +++++-
external/bsd/libarchive/dist/tar/test/test.h | 229 +-
external/bsd/libarchive/dist/tar/test/test_0.c | 11 +-
external/bsd/libarchive/dist/tar/test/test_basic.c | 113 +-
external/bsd/libarchive/dist/tar/test/test_copy.c | 394 +-
external/bsd/libarchive/dist/tar/test/test_empty_mtree.c | 45 +
external/bsd/libarchive/dist/tar/test/test_getdate.c | 46 +-
external/bsd/libarchive/dist/tar/test/test_help.c | 3 +
external/bsd/libarchive/dist/tar/test/test_option_T_upper.c | 188 +
external/bsd/libarchive/dist/tar/test/test_option_q.c | 129 +
external/bsd/libarchive/dist/tar/test/test_option_r.c | 117 +
external/bsd/libarchive/dist/tar/test/test_option_s.c | 107 +
external/bsd/libarchive/dist/tar/test/test_patterns.c | 151 +-
external/bsd/libarchive/dist/tar/test/test_patterns_2.tar.uu | 231 +
external/bsd/libarchive/dist/tar/test/test_patterns_3.tar.uu | 231 +
external/bsd/libarchive/dist/tar/test/test_patterns_4.tar.uu | 641 ++
external/bsd/libarchive/dist/tar/test/test_stdio.c | 33 +-
external/bsd/libarchive/dist/tar/test/test_strip_components.c | 109 +
external/bsd/libarchive/dist/tar/test/test_symlink_dir.c | 160 +
external/bsd/libarchive/dist/tar/test/test_version.c | 20 +-
external/bsd/libarchive/dist/tar/test/test_windows.c | 323 +
external/bsd/libarchive/dist/tar/tree.c | 471 +-
external/bsd/libarchive/dist/tar/tree.h | 58 +-
external/bsd/libarchive/dist/tar/util.c | 472 +-
external/bsd/libarchive/dist/tar/write.c | 1102 +--
316 files changed, 52493 insertions(+), 9564 deletions(-)
diffs (truncated from 76132 to 300 lines):
diff -r 0482b4f547a1 -r 3c505b0b7a18 external/bsd/libarchive/dist/COPYING
--- a/external/bsd/libarchive/dist/COPYING Sat Feb 20 02:26:14 2010 +0000
+++ b/external/bsd/libarchive/dist/COPYING Sat Feb 20 02:48:21 2010 +0000
@@ -22,7 +22,7 @@
tar/matching.c
* The following source files are in the public domain:
- tar/getdate.y
+ tar/getdate.c
* The build files---including Makefiles, configure scripts,
and auxiliary scripts used as part of the compile process---have
@@ -35,7 +35,7 @@
seems to be an unavoidable mess.
-Copyright (c) 2003-2008 <author(s)>
+Copyright (c) 2003-2009 <author(s)>
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff -r 0482b4f547a1 -r 3c505b0b7a18 external/bsd/libarchive/dist/NEWS
--- a/external/bsd/libarchive/dist/NEWS Sat Feb 20 02:26:14 2010 +0000
+++ b/external/bsd/libarchive/dist/NEWS Sat Feb 20 02:48:21 2010 +0000
@@ -1,3 +1,94 @@
+Feb 04, 2010: libarchive 2.8.0 released
+Jan 17, 2010: Fix error handling for 'echo nonexistent | cpio -o'
+Jan 17, 2010: Don't use futimes() on Cygwin
+
+Jan 02, 2010: libarchive 2.7.902a released (test release for 2.8)
+Jan 02, 2010: Fix tar/test/test_windows on MinGW
+Jan 02, 2010: Fix memory leaks in libarchive tests
+Jan 01, 2010: Fix memory leak when filter startup fails
+
+Dec 27, 2009: libarchive 2.7.901a released (test release for 2.8)
+
+Aug 04, 2009: libarchive 2.7.1 released
+Jul 20, 2009: Suppress bogus warning about unxz
+Jul 19, 2009: Support Cygwin 1.7
+Jun 11, 2009: Support lzma/xz files compressed with larger buffer sizes.
+May 24, 2009: Handle gzip files signed with OpenBSD "gzsig" program.
+May 07, 2009: Avoid false failures when reading from pipe.
+
+Apr 16, 2009: libarchive 2.7.0 released
+
+Apr 10, 2009: libarchive 2.6.992a released
+Apr 09, 2009: Fix SIGPIPE issue building with MSVC.
+Apr 09, 2009: Fix several minor memory leaks in libarchive and libarchive_test
+
+Apr 08, 2009: libarchive 2.6.991a released
+Apr 07, 2009: Additional tests added to bsdcpio_test
+
+Apr 01, 2009: libarchive 2.6.990a released
+Apr 01, 2009: Use command-line gunzip, bunzip2, unxz, unlzma for
+ decompression if the library is built without suitable
+ libraries. The setup functions return ARCHIVE_WARN
+ in this case so clients can adapt if necessary.
+Apr 01, 2009: Use getpw*_r and getgr*_r functions for thread-safety.
+Mar 24, 2009: Add archive_read_next_header2(), which is up to 25%
+ more efficient for some clients; from Brian Harring.
+Mar 22, 2009: PDF versions of manpages are now included in the distribution.
+Mar, 2009: Major work to improve Cygwin build by Charles Wilson.
+Feb/Mar, 2009: Major work on cmake build support, mostly by Michihiro NAKAJIMA.
+Feb/Mar, 2009: Major work on Visual Studio support by Michihiro NAKAJIMA.
+ All tests now pass.
+Feb 25, 2009: Fix Debian Bug #516577
+Feb 21, 2009: Yacc is no longer needed to build; date parser rewritten in C.
+Jan/Feb, 2009: Mtree work by Michihiro.
+Feb, 2009: Joliet support by Andreas Henriksson.
+Jan/Feb, 2009: New options framework by Michihiro.
+Feb, 2009: High-res timestamps on Tru64, AIX, and GNU Hurd, by Björn Jacke.
+Jan 18, 2009: Extended attributes work on FreeBSD and Linux now with pax format.
+Jan 07, 2009: New archive_read_disk_entry_from_file() knows about ACLs,
+ extended attributes, etc so that bsdtar and bsdcpio don't require
+ such system-specific knowledge.
+Jan 03, 2009: Read filter system extensively refactored. In particular,
+ read filter pipelines are now built out automatically and individual
+ filters should be much easier to implement. Documentation on the
+ Googlecode Wiki explains how to implement new filters.
+Dec 28, 2008: Many Windows/Visual Studio fixes from Michihiro NAKAJIMA.
+
+Dec 28, 2008: Main libarchive development moved from FreeBSD Perforce
+ server to Google Code. This should make it easier for more
+ people to participate in libarchive development.
+
+Dec 28, 2008: libarchive 2.6.0 released
+Dec 25, 2008: libarchive 2.5.905a released
+Dec 10, 2008: libarchive 2.5.904a released
+Dec 04, 2008: libarchive 2.5.903a released
+Nov 09, 2008: libarchive 2.5.902a released
+Nov 08, 2008: libarchive 2.5.901a released
+Nov 08, 2008: Start of pre-release testing for libarchive 2.6
+
+Nov 07, 2008: Read filter refactor: The decompression routines just
+ consume and produce arbitrarily-sized blocks. The reblocking
+ from read_support_compression_none() has been pulled into the
+ read core. Also, the decompression bid now makes multiple
+ passes and stacks read filters.
+Oct 21, 2008: bsdcpio: New command-line parser.
+Oct 19, 2008: Internal read_ahead change: short reads are now an error
+Oct 06, 2008: bsdtar: option parser no longer uses getopt_long(),
+ gives consistent option parsing on all platforms.
+Sep 19, 2008: Jaakko Heinonen: shar utility built on libarchive
+Sep 17, 2008: Pedro Giffuni: birthtime support
+Sep 17, 2008: Miklos Vajna: lzma reader and test. Note: I still have
+ some concerns about the auto-detection (LZMA file format
+ doesn't support auto-detection well), so this is not yet
+ enabled under archive_read_support_compression_all(). For
+ now, you must call archive_read_support_compression_lzma() if
+ you want LZMA read support.
+Sep 11, 2008: Ivailo Petrov: Many fixes to Windows build, new solution files
+Jul 26, 2008: archive_entry now tracks which values have not been set.
+ This helps zip extraction (file size is often "unknown") and
+ time restores (tar usually doesn't know atime).
+Jul 26, 2008: Joerg Sonnenberger: Performance improvements to shar writer
+Jul 25, 2008: Joerg Sonnenberger: mtree write support
Jul 02, 2008: libarchive 2.5.5 released
@@ -323,7 +414,7 @@
Feb 26, 2007: libarchive 2.0b15 released
Feb 26, 2007: Don't lose symlinks when extracting from ISOs.
- Thanks to Diego "Flameeyes" Pettenò for telling me about the
+ Thanks to Diego "Flameeyes" Pettenò for telling me about the
broken testcase on Gentoo that (finally!) led me to the cause
of this long-standing bug.
diff -r 0482b4f547a1 -r 3c505b0b7a18 external/bsd/libarchive/dist/README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libarchive/dist/README Sat Feb 20 02:48:21 2010 +0000
@@ -0,0 +1,137 @@
+README for libarchive bundle.
+
+Questions? Issues?
+ * http://libarchive.googlecode.com/ is the home for ongoing
+ libarchive development, including issue tracker, additional
+ documentation, and links to the libarchive mailing lists.
+
+This distribution bundle includes the following components:
+ * libarchive: a library for reading and writing streaming archives
+ * tar: the 'bsdtar' program is a full-featured 'tar'
+ replacement built on libarchive
+ * cpio: the 'bsdcpio' program is a different interface to
+ essentially the same functionality
+ * examples: Some small example programs that you may find useful.
+ * examples/minitar: a compact sample demonstrating use of libarchive.
+ I use this for testing link pollution; it should produce a very
+ small executable file on most systems.
+ * contrib: Various items sent to me by third parties;
+ please contact the authors with any questions.
+
+The top-level directory contains the following information files:
+ * NEWS - highlights of recent changes
+ * COPYING - what you can do with this
+ * INSTALL - installation instructions
+ * README - this file
+ * configure - configuration script, see INSTALL for details.
+ * CMakeLists.txt - input for "cmake" build tool, see INSTALL
+
+The following files in the top-level directory are used by the
+'configure' script:
+ * Makefile.am, aclocal.m4, configure.ac
+ - used to build this distribution, only needed by maintainers
+ * Makefile.in, config.h.in
+ - templates used by configure script
+
+Guide to Documentation installed by this system:
+ * bsdtar.1 explains the use of the bsdtar program
+ * bsdcpio.1 explains the use of the bsdcpio program
+ * libarchive.3 gives an overview of the library as a whole
+ * archive_read.3, archive_write.3, archive_write_disk.3, and
+ archive_read_disk.3 provide detailed calling sequences for the read
+ and write APIs
+ * archive_entry.3 details the "struct archive_entry" utility class
+ * archive_internals.3 provides some insight into libarchive's
+ internal structure and operation.
+ * libarchive-formats.5 documents the file formats supported by the library
+ * cpio.5, mtree.5, and tar.5 provide detailed information about these
+ popular archive formats, including hard-to-find details about
+ modern cpio and tar variants.
+The manual pages above are provided in the 'doc' directory in
+a number of different formats.
+
+You should also read the copious comments in "archive.h" and the
+source code for the sample programs for more details. Please let me
+know about any errors or omissions you find.
+
+Currently, the library automatically detects and reads the following:
+ * gzip compression
+ * bzip2 compression
+ * compress/LZW compression
+ * lzma and xz compression
+ * GNU tar format (including GNU long filenames, long link names, and
+ sparse files)
+ * Solaris 9 extended tar format (including ACLs)
+ * Old V7 tar archives
+ * POSIX ustar
+ * POSIX pax interchange format
+ * POSIX octet-oriented cpio
+ * SVR4 ASCII cpio
+ * POSIX octet-oriented cpio
+ * Binary cpio (big-endian or little-endian)
+ * ISO9660 CD-ROM images (with optional Rockridge or Joliet extensions)
+ * ZIP archives (with uncompressed or "deflate" compressed entries)
+ * GNU and BSD 'ar' archives
+ * 'mtree' format
+
+The library can write:
+ * gzip compression
+ * bzip2 compression
+ * compress/LZW compression
+ * lzma and xz compression
+ * POSIX ustar
+ * POSIX pax interchange format
+ * "restricted" pax format, which will create ustar archives except for
+ entries that require pax extensions (for long filenames, ACLs, etc).
+ * POSIX octet-oriented cpio
+ * SVR4 "newc" cpio
+ * shar archives
+ * ZIP archives (with uncompressed or "deflate" compressed entries)
+ * GNU and BSD 'ar' archives
+ * 'mtree' format
+
+Notes about the library architecture:
+
+ * This is a heavily stream-oriented system. There is no direct
+ support for in-place modification or random access.
+
+ * The library is designed to be extended with new compression and
+ archive formats. The only requirement is that the format be
+ readable or writable as a stream and that each archive entry be
+ independent. There are articles on the libarchive Wiki explaining
+ how to extend libarchive.
+
+ * On read, compression and format are always detected automatically.
+
+ * I've attempted to minimize static link pollution. If you don't
+ explicitly invoke a particular feature (such as support for a
+ particular compression or format), it won't get pulled in.
+ In particular, if you don't explicitly enable a particular
+ compression or decompression support, you won't need to link
+ against the corresponding compression or decompression libraries.
+ This also reduces the size of statically-linked binaries in
+ environments where that matters.
+
+ * On read, the library accepts whatever blocks you hand it.
+ Your read callback is free to pass the library a byte at a time
+ or mmap the entire archive and give it to the library at once.
+ On write, the library always produces correctly-blocked output.
+
+ * The object-style approach allows you to have multiple archive streams
+ open at once. bsdtar uses this in its "@archive" extension.
+
+ * The archive itself is read/written using callback functions.
+ You can read an archive directly from an in-memory buffer or
+ write it to a socket, if you wish. There are some utility
+ functions to provide easy-to-use "open file," etc, capabilities.
+
+ * The read/write APIs are designed to allow individual entries
+ to be read or written to any data source: You can create
+ a block of data in memory and add it to a tar archive without
+ first writing a temporary file. You can also read an entry from
+ an archive and write the data directly to a socket. If you want
+ to read/write entries to disk, there are convenience functions to
+ make this especially easy.
+
+ * Note: "pax interchange format" is really an extended tar format,
+ despite what the name says.
diff -r 0482b4f547a1 -r 3c505b0b7a18 external/bsd/libarchive/dist/cpio/bsdcpio.1
--- a/external/bsd/libarchive/dist/cpio/bsdcpio.1 Sat Feb 20 02:26:14 2010 +0000
+++ b/external/bsd/libarchive/dist/cpio/bsdcpio.1 Sat Feb 20 02:48:21 2010 +0000
@@ -80,6 +80,9 @@
Unless specifically stated otherwise, options are applicable in
all operating modes.
.Bl -tag -width indent
+.It Fl 0
+Read filenames separated by NUL characters instead of newlines.
+This is necessary if any of the filenames being read might contain newlines.
.It Fl A
(o mode only)
Append to the specified archive.
@@ -142,6 +145,11 @@
formats currently supported by the underlying
.Xr libarchive 3
library.
+.It Fl H Ar format
+Synonym for
+.Fl -format .
+.It Fl h , Fl -help
+Print usage information.
.It Fl I Ar file
Read archive from
.Ar file .
@@ -154,6 +162,14 @@
This allows extraction via symbolic links and path names containing
.Sq ..
in the name.
+.It Fl J
+(o mode only)
Home |
Main Index |
Thread Index |
Old Index