Date: Wed, 17 Mar 2004 19:04:35 -0800 From: Alfred Perlstein <alfred@freebsd.org> To: "Tim J. Robbins" <tjr@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 Message-ID: <20040318030435.GH54769@elvis.mu.org> In-Reply-To: <200403170143.i2H1h837015877@repoman.freebsd.org> References: <200403170143.i2H1h837015877@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Tim J. Robbins <tjr@FreeBSD.org> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040318030435.GH54769>