From owner-cvs-src-old@FreeBSD.ORG Thu Jan 15 04:36:04 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F8B61065676 for ; Thu, 15 Jan 2009 04:36:04 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0CC0E8FC08 for ; Thu, 15 Jan 2009 04:36:04 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0F4a3Pt064322 for ; Thu, 15 Jan 2009 04:36:03 GMT (envelope-from das@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0F4a35e064321 for cvs-src-old@freebsd.org; Thu, 15 Jan 2009 04:36:03 GMT (envelope-from das@repoman.freebsd.org) Message-Id: <200901150436.n0F4a35e064321@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to das@repoman.freebsd.org using -f From: David Schultz Date: Thu, 15 Jan 2009 04:29:02 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio printfcommon.h vfprintf.c vfwprintf.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 04:36:04 -0000 das 2009-01-15 04:29:02 UTC FreeBSD src repository Modified files: lib/libc/stdio vfprintf.c vfwprintf.c Added files: lib/libc/stdio printfcommon.h Log: SVN rev 187277 on 2009-01-15 04:29:02Z by das Convert the insidious macros that handle printf()'s buffering into slightly less evil inline functions, and move the buffering state into a struct. This will make it possible for helper routines to produce output for printf() directly, making it possible to untangle the code somewhat. In wprintf(), use the same buffering mechanism to reduce diffs to printf(). This has the side-effect of causing wprintf() to catch write errors that it previously ignored. Revision Changes Path 1.1 +130 -0 src/lib/libc/stdio/printfcommon.h (new) 1.84 +16 -48 src/lib/libc/stdio/vfprintf.c 1.35 +58 -38 src/lib/libc/stdio/vfwprintf.c