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

Tim J. Robbins tjr at FreeBSD.org
Tue Mar 16 17:43:09 PST 2004


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


More information about the cvs-all mailing list