Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: Christian Limpach <cl@netbsd.org>
List: source-changes
Date: 01/09/2004 18:08:28
Module Name: src
Committed By: cl
Date: Fri Jan 9 18:08:28 UTC 2004
Modified Files:
src/lib/libpthread: pthread_rwlock.c
Log Message:
- add deadlock check to pthread_rwlock_wrlock and pthread_rwlock_timedwrlock
- return EPERM when unlocking a lock which isn't held
=> prevent the failure in PR 24023, the deadlocking code path is still present
in the citrus code
- remove deadlock check in pthread_rwlock_tryrdlock, return EBUSY instead
=> makes pthread_rwlock_tryrdlock standards compliant
To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 src/lib/libpthread/pthread_rwlock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.