From owner-cvs-src@FreeBSD.ORG Wed Jun 2 01:14:44 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75A3316A4CE; Wed, 2 Jun 2004 01:14:44 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F25043D55; Wed, 2 Jun 2004 01:14:44 -0700 (PDT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i528EiSx080777; Wed, 2 Jun 2004 01:14:44 -0700 (PDT) (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i528EiYi080776; Wed, 2 Jun 2004 01:14:44 -0700 (PDT) (envelope-from kientzle) Message-Id: <200406020814.i528EiYi080776@repoman.freebsd.org> From: Tim Kientzle Date: Wed, 2 Jun 2004 01:14:44 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive.h archive_private.h archive_read.3 archive_read.c archive_read_data_into_fd.c archive_read_support_format_tar.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 02 Jun 2004 08:14:44 -0000 kientzle 2004/06/02 01:14:44 PDT FreeBSD src repository Modified files: lib/libarchive archive.h archive_private.h archive_read.3 archive_read.c archive_read_data_into_fd.c archive_read_support_format_cpio.c archive_read_support_format_tar.c Log: Refactor read_data: * New read_data_block is both sparse-file aware and uses zero-copy semantics * Push read_data_block down into specific formats (opens door to various encoded entry bodies, such as zip or gtar -S) * Reimplement read_data, read_data_skip, read_data_into_fd in terms of new read_data_block. * Update documentation It's unfortunate that I couldn't just call the new interface archive_read_data, but didn't want to upset the API that much. Revision Changes Path 1.11 +8 -0 src/lib/libarchive/archive.h 1.11 +10 -8 src/lib/libarchive/archive_private.h 1.6 +21 -6 src/lib/libarchive/archive_read.3 1.7 +84 -50 src/lib/libarchive/archive_read.c 1.6 +34 -21 src/lib/libarchive/archive_read_data_into_fd.c 1.10 +72 -28 src/lib/libarchive/archive_read_support_format_cpio.c 1.15 +63 -18 src/lib/libarchive/archive_read_support_format_tar.c