From owner-cvs-src@FreeBSD.ORG Mon Jun 18 00:36:55 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 32F1E16A468; Mon, 18 Jun 2007 00:36:55 +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 0CAAA13C43E; Mon, 18 Jun 2007 00:36:55 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l5I0asPF023544; Mon, 18 Jun 2007 00:36:54 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l5I0asac023540; Mon, 18 Jun 2007 00:36:54 GMT (envelope-from kientzle) Message-Id: <200706180036.l5I0asac023540@repoman.freebsd.org> From: Tim Kientzle Date: Mon, 18 Jun 2007 00:36:54 +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_filename.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: Mon, 18 Jun 2007 00:36:55 -0000 kientzle 2007-06-18 00:36:54 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_open_fd.c archive_read_open_filename.c Log: Track whether the current read stream supports seek(). For now, we assume yes unless seek has previously failed, but I fear I'll have to avoid seeks under other circumstances. (For instance, tape drives on FreeBSD seem to return garbage from lseek().) Also, optimize away zero-byte skips. Revision Changes Path 1.12 +11 -0 src/lib/libarchive/archive_read_open_fd.c 1.19 +11 -0 src/lib/libarchive/archive_read_open_filename.c