This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: last call
- To: Zack Weinberg <zack@rabi.columbia.edu>
- Subject: Re: last call
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 29 Jan 1999 10:25:58 -0800
- Cc: libc-hacker@cygnus.com (GNU C Library)
- References: <199901291713.MAA19453@rabi.phys.columbia.edu>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------