From owner-cvs-all@FreeBSD.ORG Sun Jun 27 01:15:39 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B4A316A4CE; Sun, 27 Jun 2004 01:15:39 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43DBB43D58; Sun, 27 Jun 2004 01:15:39 +0000 (GMT) (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 i5R1FVY2083049; Sun, 27 Jun 2004 01:15:31 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5R1FV0A083048; Sun, 27 Jun 2004 01:15:31 GMT (envelope-from kientzle) Message-Id: <200406270115.i5R1FV0A083048@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 27 Jun 2004 01:15:31 +0000 (UTC) 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_read.3 archive_read_extract.c archive_read_support_format_tar.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 01:15:39 -0000 kientzle 2004-06-27 01:15:31 UTC FreeBSD src repository Modified files: lib/libarchive archive.h archive_read.3 archive_read_data_into_buffer.c archive_read_data_into_fd.c archive_read_extract.c archive_read_support_format_tar.c Log: Read gtar-style sparse archives. This change also pointed out one API deficiency: the archive_read_data_into_XXX functions were originally defined to return the total bytes read. This is, of course, ambiguous when dealing with non-contiguous files. Change it to just return a status value. Revision Changes Path 1.13 +3 -3 src/lib/libarchive/archive.h 1.8 +4 -3 src/lib/libarchive/archive_read.3 1.4 +2 -2 src/lib/libarchive/archive_read_data_into_buffer.c 1.7 +3 -3 src/lib/libarchive/archive_read_data_into_fd.c 1.20 +1 -7 src/lib/libarchive/archive_read_extract.c 1.20 +141 -40 src/lib/libarchive/archive_read_support_format_tar.c