From owner-cvs-all@FreeBSD.ORG Sun Jan 16 22:13:54 2005 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 0A37C16A4CE; Sun, 16 Jan 2005 22:13:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EADB943D1F; Sun, 16 Jan 2005 22:13:53 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0GMDrvi095842; Sun, 16 Jan 2005 22:13:53 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0GMDroW095840; Sun, 16 Jan 2005 22:13:53 GMT (envelope-from kientzle) Message-Id: <200501162213.j0GMDroW095840@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 16 Jan 2005 22:13:52 +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_platform.h archive_string.h archive_string_sprintf.c configure.ac.in 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, 16 Jan 2005 22:13:54 -0000 kientzle 2005-01-16 22:13:52 UTC FreeBSD src repository Modified files: lib/libarchive archive_platform.h archive_string.h archive_string_sprintf.c configure.ac.in Log: Implement a custom print formatter (archive_string_vsprintf) for libarchive error messages. Mostly, this avoids a portability headache related to copying va_list arguments (some FreeBSD 5 platforms require va_copy; FreeBSD 4 doesn't support va_copy at all). It also dramatically reduces the size of libarchive for embedded applications: a minimal "untar" program using libarchive can now be under 64k statically linked (as opposed to ~100k using library *printf() functions). MFC after: 14 days Revision Changes Path 1.13 +6 -0 src/lib/libarchive/archive_platform.h 1.6 +1 -0 src/lib/libarchive/archive_string.h 1.7 +77 -14 src/lib/libarchive/archive_string_sprintf.c 1.3 +6 -0 src/lib/libarchive/configure.ac.in