From owner-cvs-all@FreeBSD.ORG Wed Mar 17 19:04:35 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 2823B16A4CF; Wed, 17 Mar 2004 19:04:35 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B5843D31; Wed, 17 Mar 2004 19:04:35 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 13E715C7D7; Wed, 17 Mar 2004 19:04:35 -0800 (PST) Date: Wed, 17 Mar 2004 19:04:35 -0800 From: Alfred Perlstein To: "Tim J. Robbins" Message-ID: <20040318030435.GH54769@elvis.mu.org> References: <200403170143.i2H1h837015877@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403170143.i2H1h837015877@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/include stdio.h src/lib/libc/stdio feof.c ferror.c fileno.c getc.c putc.c putchar.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: Thu, 18 Mar 2004 03:04:35 -0000 * Tim J. Robbins [040316 17:43] wrote: > tjr 2004/03/16 17:43:08 PST > > FreeBSD src repository > > Modified files: > include stdio.h > lib/libc/stdio feof.c ferror.c fileno.c getc.c putc.c > putchar.c > Log: > Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(), > ferror(), fileno() and clearerr(), using the value of __isthreaded to > decide between the fast inline single-threaded code and the more > general function equivalent. This gives most of the performance > benefits of the old unsafe macros while preserving thread safety. rox. :D -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684