From owner-cvs-src@FreeBSD.ORG Sat Mar 3 07:37:39 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 543C116A480; Sat, 3 Mar 2007 07:37:39 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3F8F013C49D; Sat, 3 Mar 2007 07:37:39 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l237bdBa003494; Sat, 3 Mar 2007 07:37:39 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l237bcIP003475; Sat, 3 Mar 2007 07:37:38 GMT (envelope-from kientzle) Message-Id: <200703030737.l237bcIP003475@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 3 Mar 2007 07:37:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive Makefile README archive.h.in archive_entry.3 archive_private.h archive_read.3 archive_read.c archive_read_data_into_fd.c archive_read_extract.c archive_read_private.h archive_read_support_compression_bzip2.c archive_read_support_compression_compress.c archive_read_support_compression_gzip.c ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2007 07:37:39 -0000 kientzle 2007-03-03 07:37:37 UTC FreeBSD src repository Modified files: lib/libarchive Makefile README archive.h.in archive_entry.3 archive_private.h archive_read.3 archive_read.c archive_read_data_into_fd.c archive_read_extract.c archive_read_support_compression_bzip2.c archive_read_support_compression_compress.c archive_read_support_compression_gzip.c archive_read_support_compression_none.c archive_read_support_format_cpio.c archive_read_support_format_empty.c archive_read_support_format_iso9660.c archive_read_support_format_tar.c archive_read_support_format_zip.c archive_util.3 archive_util.c archive_write.3 archive_write.c archive_write_set_compression_bzip2.c archive_write_set_compression_gzip.c archive_write_set_compression_none.c archive_write_set_format_cpio.c archive_write_set_format_pax.c archive_write_set_format_shar.c archive_write_set_format_ustar.c Added files: lib/libarchive archive_read_private.h archive_virtual.c archive_write_disk.3 archive_write_disk.c archive_write_disk_private.h archive_write_disk_set_standard_lookup.c archive_write_private.h lib/libarchive/test Makefile README main.c test.h test_archive_api_feature.c test_bad_fd.c test_read_data_large.c test_read_extract.c test_read_format_cpio_bin.c test_read_format_cpio_bin_Z.c test_read_format_cpio_bin_bz2.c test_read_format_cpio_bin_gz.c test_read_format_cpio_odc.c test_read_format_cpio_svr4_gzip.c test_read_format_cpio_svr4c_Z.c test_read_format_empty.c test_read_format_gtar_gz.c test_read_format_iso_gz.c test_read_format_isorr_bz2.c test_read_format_pax_bz2.c test_read_format_tar.c test_read_format_tbz.c test_read_format_tgz.c test_read_format_tz.c test_read_format_zip.c test_read_large.c test_read_position.c test_read_truncated.c test_write_disk.c test_write_disk_perms.c test_write_disk_secure.c test_write_format_cpio_empty.c test_write_format_shar_empty.c test_write_format_tar.c test_write_format_tar_empty.c test_write_open_memory.c Log: libarchive 2.0 * libarchive_test program exercises many of the core features * Refactored old "read_extract" into new "archive_write_disk", which uses archive_write methods to put entries onto disk. In particular, you can now use archive_write_disk to create objects on disk without having an archive available. * Pushed some security checks from bsdtar down into libarchive, where they can be better optimized. * Rearchitected the logic for creating objects on disk to reduce the number of system calls. Several common cases now use a minimum number of system calls. * Virtualized some internal interfaces to provide a clearer separation of read and write handling and make it simpler to override key methods. * New "empty" format reader. * Corrected return types (this ABI breakage required the "2.0" version bump) * Many bug fixes. Revision Changes Path 1.59 +16 -2 src/lib/libarchive/Makefile 1.5 +8 -6 src/lib/libarchive/README 1.39 +113 -11 src/lib/libarchive/archive.h.in 1.13 +3 -0 src/lib/libarchive/archive_entry.3 1.28 +29 -175 src/lib/libarchive/archive_private.h 1.31 +26 -71 src/lib/libarchive/archive_read.3 1.30 +100 -68 src/lib/libarchive/archive_read.c 1.14 +0 -2 src/lib/libarchive/archive_read_data_into_fd.c 1.53 +76 -1541 src/lib/libarchive/archive_read_extract.c 1.1 +188 -0 src/lib/libarchive/archive_read_private.h (new) 1.13 +37 -33 src/lib/libarchive/archive_read_support_compression_bzip2.c 1.8 +28 -26 src/lib/libarchive/archive_read_support_compression_compress.c 1.13 +39 -35 src/lib/libarchive/archive_read_support_compression_gzip.c 1.15 +27 -27 src/lib/libarchive/archive_read_support_compression_none.c 1.22 +32 -30 src/lib/libarchive/archive_read_support_format_cpio.c 1.2 +11 -9 src/lib/libarchive/archive_read_support_format_empty.c 1.20 +24 -22 src/lib/libarchive/archive_read_support_format_iso9660.c 1.49 +77 -74 src/lib/libarchive/archive_read_support_format_tar.c 1.11 +58 -50 src/lib/libarchive/archive_read_support_format_zip.c 1.6 +6 -0 src/lib/libarchive/archive_util.3 1.13 +6 -0 src/lib/libarchive/archive_util.c 1.1 +81 -0 src/lib/libarchive/archive_virtual.c (new) 1.21 +10 -3 src/lib/libarchive/archive_write.3 1.24 +104 -50 src/lib/libarchive/archive_write.c 1.1 +358 -0 src/lib/libarchive/archive_write_disk.3 (new) 1.1 +1929 -0 src/lib/libarchive/archive_write_disk.c (new) 1.1 +34 -0 src/lib/libarchive/archive_write_disk_private.h (new) 1.1 +212 -0 src/lib/libarchive/archive_write_disk_set_standard_lookup.c (new) 1.1 +177 -0 src/lib/libarchive/archive_write_private.h (new) 1.11 +36 -33 src/lib/libarchive/archive_write_set_compression_bzip2.c 1.13 +39 -35 src/lib/libarchive/archive_write_set_compression_gzip.c 1.12 +30 -29 src/lib/libarchive/archive_write_set_compression_none.c 1.10 +27 -15 src/lib/libarchive/archive_write_set_format_cpio.c 1.39 +37 -25 src/lib/libarchive/archive_write_set_format_pax.c 1.16 +34 -20 src/lib/libarchive/archive_write_set_format_shar.c 1.20 +48 -41 src/lib/libarchive/archive_write_set_format_ustar.c 1.1 +67 -0 src/lib/libarchive/test/Makefile (new) 1.1 +46 -0 src/lib/libarchive/test/README (new) 1.1 +168 -0 src/lib/libarchive/test/main.c (new) 1.1 +89 -0 src/lib/libarchive/test/test.h (new) 1.1 +33 -0 src/lib/libarchive/test/test_archive_api_feature.c (new) 1.1 +41 -0 src/lib/libarchive/test/test_bad_fd.c (new) 1.1 +116 -0 src/lib/libarchive/test/test_read_data_large.c (new) 1.1 +177 -0 src/lib/libarchive/test/test_read_extract.c (new) 1.1 +64 -0 src/lib/libarchive/test/test_read_format_cpio_bin.c (new) 1.1 +53 -0 src/lib/libarchive/test/test_read_format_cpio_bin_Z.c (new) 1.1 +54 -0 src/lib/libarchive/test/test_read_format_cpio_bin_bz2.c (new) 1.1 +53 -0 src/lib/libarchive/test/test_read_format_cpio_bin_gz.c (new) 1.1 +68 -0 src/lib/libarchive/test/test_read_format_cpio_odc.c (new) 1.1 +54 -0 src/lib/libarchive/test/test_read_format_cpio_svr4_gzip.c (new) 1.1 +56 -0 src/lib/libarchive/test/test_read_format_cpio_svr4c_Z.c (new) 1.1 +49 -0 src/lib/libarchive/test/test_read_format_empty.c (new) 1.1 +54 -0 src/lib/libarchive/test/test_read_format_gtar_gz.c (new) 1.1 +73 -0 src/lib/libarchive/test/test_read_format_iso_gz.c (new) 1.1 +180 -0 src/lib/libarchive/test/test_read_format_isorr_bz2.c (new) 1.1 +62 -0 src/lib/libarchive/test/test_read_format_pax_bz2.c (new) 1.1 +93 -0 src/lib/libarchive/test/test_read_format_tar.c (new) 1.1 +55 -0 src/lib/libarchive/test/test_read_format_tbz.c (new) 1.1 +54 -0 src/lib/libarchive/test/test_read_format_tgz.c (new) 1.1 +56 -0 src/lib/libarchive/test/test_read_format_tz.c (new) 1.1 +54 -0 src/lib/libarchive/test/test_read_format_zip.c (new) 1.1 +93 -0 src/lib/libarchive/test/test_read_large.c (new) 1.1 +74 -0 src/lib/libarchive/test/test_read_position.c (new) 1.1 +148 -0 src/lib/libarchive/test/test_read_truncated.c (new) 1.1 +92 -0 src/lib/libarchive/test/test_write_disk.c (new) 1.1 +324 -0 src/lib/libarchive/test/test_write_disk_perms.c (new) 1.1 +140 -0 src/lib/libarchive/test/test_write_disk_secure.c (new) 1.1 +76 -0 src/lib/libarchive/test/test_write_format_cpio_empty.c (new) 1.1 +59 -0 src/lib/libarchive/test/test_write_format_shar_empty.c (new) 1.1 +111 -0 src/lib/libarchive/test/test_write_format_tar.c (new) 1.1 +84 -0 src/lib/libarchive/test/test_write_format_tar_empty.c (new) 1.1 +75 -0 src/lib/libarchive/test/test_write_open_memory.c (new)