Date: Tue, 16 Mar 2004 17:43:08 -0800 (PST) From: "Tim J. Robbins" <tjr@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include stdio.h src/lib/libc/stdio feof.c ferror.c fileno.c getc.c putc.c putchar.c Message-ID: <200403170143.i2H1h837015877@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. Revision Changes Path 1.53 +16 -0 src/include/stdio.h 1.9 +2 -6 src/lib/libc/stdio/feof.c 1.9 +2 -6 src/lib/libc/stdio/ferror.c 1.10 +2 -6 src/lib/libc/stdio/fileno.c 1.12 +2 -0 src/lib/libc/stdio/getc.c 1.12 +2 -8 src/lib/libc/stdio/putc.c 1.12 +2 -8 src/lib/libc/stdio/putchar.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403170143.i2H1h837015877>