Subject: CVS commit: src/lib/libc/stdio
To: None <source-changes@NetBSD.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 07/18/2003 21:50:42
Module Name:	src
Committed By:	nathanw
Date:		Fri Jul 18 21:50:41 UTC 2003

Modified Files:
	src/lib/libc/stdio: flockfile.c local.h

Log Message:
Move guts of flockfile()/funlockfile() to __flockfile_internal(), which
takes an additional argument indicating whether this is an internal caller
taking the lock or an external (application) caller. When making an internal
lock, save the current thread cancellation state and disable cancellation
until the matching unlock. This should prevent canccelled threads from exiting
inside of stdio while holding a file lock and potentially leaving other
parts of the FILE structure in an inconsistent state.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/lib/libc/stdio/flockfile.c
cvs rdiff -r1.15 -r1.16 src/lib/libc/stdio/local.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.