From owner-cvs-all@FreeBSD.ORG Wed Mar 17 20:02:19 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id E2E2916A4F6; Wed, 17 Mar 2004 20:02:18 -0800 (PST) Date: Wed, 17 Mar 2004 18:02:18 -1000 From: juli mallett To: "Tim J. Robbins" Message-ID: <20040318040218.GA48636@FreeBSD.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.1i X-Negacore: Yes X-Authentication-Warning: localhost: juli pwned teh intarweb X-Disclaimer: Opinions expressed about the deliciousness of eating brains are my own unless expressed by my employer. 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 04:02:22 -0000 * "Tim J. Robbins" [ Date: 2004-03-16 ] [ w.r.t. cvs commit: src/include stdio.h src/lib/libc/stdio feof.c ferror.c fileno.c getc.c putc.c putchar.c ] > 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. Thanks! -- juli mallett. jmallett@freebsd.org. adrift in the pacific.