summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2004-08-03 11:40:24 +0000
committeryamt <yamt@NetBSD.org>2004-08-03 11:40:24 +0000
commit5fc4e57d71c26fe427077ba71d64a381a9ba1783 (patch)
tree35418311c6e66f21432047393b1395c7c9238bf0 /lib/libpthread
parentbb73a3ff4ce014c467ad8bb4f094ad7cd06e7202 (diff)
pthread_rwlock_timedwrlock: return ETIMEDOUT appropriately.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread_rwlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/pthread_rwlock.c b/lib/libpthread/pthread_rwlock.c
index 39503e34473..cffbee5fc34 100644
--- a/lib/libpthread/pthread_rwlock.c
+++ b/lib/libpthread/pthread_rwlock.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_rwlock.c,v 1.7 2004/01/09 18:08:28 cl Exp $ */
+/* $NetBSD: pthread_rwlock.c,v 1.8 2004/08/03 11:40:24 yamt Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_rwlock.c,v 1.7 2004/01/09 18:08:28 cl Exp $");
+__RCSID("$NetBSD: pthread_rwlock.c,v 1.8 2004/08/03 11:40:24 yamt Exp $");
#include <errno.h>
@@ -353,7 +353,7 @@ pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock,
rwlock->ptr_writer = self;
pthread_spinunlock(self, &rwlock->ptr_interlock);
- return 0;
+ return retval;
}