summaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authornathanw <nathanw@NetBSD.org>2003-07-18 21:50:41 +0000
committernathanw <nathanw@NetBSD.org>2003-07-18 21:50:41 +0000
commitad09d62fccedf9d8cbddb98aaa2b917136d9802d (patch)
treef29c67f126ad1905ef08595debce2692e95cf7cb /lib/libc/include
parentb5665a9b84a4aa2e1bfffd4c9322e9a3fe2445f4 (diff)
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.
Diffstat (limited to 'lib/libc/include')
0 files changed, 0 insertions, 0 deletions