From owner-cvs-all@FreeBSD.ORG Mon Nov 13 00:26:46 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 89A9716A403; Mon, 13 Nov 2006 00:26:46 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54A2E43D49; Mon, 13 Nov 2006 00:26:46 +0000 (GMT) (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 kAD0QkVx039927; Mon, 13 Nov 2006 00:26:46 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAD0QkBo039926; Mon, 13 Nov 2006 00:26:46 GMT (envelope-from kientzle) Message-Id: <200611130026.kAD0QkBo039926@repoman.freebsd.org> From: Tim Kientzle Date: Mon, 13 Nov 2006 00:26:46 +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 archive_read_open_fd.c archive_read_open_file.c archive_write_open_fd.c archive_write_open_file.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 13 Nov 2006 00:26:46 -0000 kientzle 2006-11-13 00:26:46 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_open_fd.c archive_read_open_file.c archive_write_open_fd.c archive_write_open_file.c Log: Minor cleanup of the standard read/write I/O modules: * Use public API, don't access struct archive directly. (People should be able to copy these into their applications as a template for custom I/O callbacks.) * Set "skip" only for regular files. ("skip" allows the low-level library to catch attempts to add an archive to itself or extract over itself.) * Simplify the write_open functions by just calling stat() at the beginning. Somehow, these functions had acquired some complex logic that tried to avoid the stat() call but never succeeded. MFC after: 10 days Revision Changes Path 1.8 +2 -2 src/lib/libarchive/archive_read_open_fd.c 1.13 +4 -3 src/lib/libarchive/archive_read_open_file.c 1.6 +21 -30 src/lib/libarchive/archive_write_open_fd.c 1.13 +26 -39 src/lib/libarchive/archive_write_open_file.c