Date: Wed, 17 Mar 2004 18:02:18 -1000 From: juli mallett <jmallett@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: <20040318040218.GA48636@FreeBSD.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> [ 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040318040218.GA48636>