cvs commit: src/lib/libc/stdio _flock_stub.c local.h
tjr at freebsd.org
Mon Mar 8 19:21:59 PST 2004
On Mon, Mar 08, 2004 at 06:44:59PM -0800, John Birrell wrote:
> jb 2004/03/08 18:44:59 PST
> FreeBSD src repository
> Modified files:
> lib/libc/stdio _flock_stub.c local.h
> On 4.X it was possible for an application to initialise a local FILE
> structure and call stdio functions. In 5.X this was broken when FILE
> locking was introduced into libc.
> This change makes most (relevant) stdio functions work again when the
> _extra file in FILE isn't initialised (and can't be without a libc
> function to do it since the __sFILEX structure is private to libc).
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.
More information about the cvs-all