cvs commit: src/include stdio.h src/lib/libc/stdio feof.c ferror.c fileno.c getc.c putc.c putchar.c

Alfred Perlstein alfred at freebsd.org
Wed Mar 17 19:04:35 PST 2004


* Tim J. Robbins <tjr at 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 at mu.org cell: 408-480-4684


More information about the cvs-src mailing list