This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: last call


Zack Weinberg <zack@rabi.columbia.edu> writes:

> But there are better ways to do it: we could put unlocked stdio entrypoints
> in libc and override them with locking versions in libpthread, or we could
> simply reduce the overhead of the locking versions in the no-thread case (I
> think we already do something like this with inline functions).

This also does not solve the problem.  Instead of calling getc the
macro should be used.

The only true way to make this work is to write the program correctly
right fro the beginning (or change them afterwards) to use the
_unlocked functions.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]