cvs commit: src/lib/libc/stdio _flock_stub.c local.h
Tim Robbins
tjr at freebsd.org
Mon Mar 8 19:54:43 PST 2004
On Tue, Mar 09, 2004 at 02:32:23PM +1100, John Birrell wrote:
> On Tue, Mar 09, 2004 at 02:22:48PM +1100, Tim Robbins wrote:
> > Is this a useful behaviour to support? ORIENT needs to be kept as
> > simple as possible since it is invoked for every single stdio call.
> > The extra conditional may make a difference for getc() and putc()
> > in the single-threaded case.
>
> If you were concerned about performance "for every single stdio call",
> the locking calls would never have been allowed into libc in the
> first place. In a single-threaded program they aren't required.
My concern here is that we are slowing down critical paths for the
sake of broken applications that grope around inside FILEs. Why do
we need to support this? Which applications require it, and why?
Tim
More information about the cvs-src
mailing list