Implement (as a nop) pthread_rwlockattr_destroy.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1354 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c
index 8904c62..47d02da 100644
--- a/coregrind/arch/x86-linux/vg_libpthread.c
+++ b/coregrind/arch/x86-linux/vg_libpthread.c
@@ -3247,6 +3247,13 @@
/* Copied directly from LinuxThreads. */
int
+pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
+{
+ return 0;
+}
+
+/* Copied directly from LinuxThreads. */
+int
pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
{
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
diff --git a/coregrind/arch/x86-linux/vg_libpthread_unimp.c b/coregrind/arch/x86-linux/vg_libpthread_unimp.c
index 95e08ee..b727f2f 100644
--- a/coregrind/arch/x86-linux/vg_libpthread_unimp.c
+++ b/coregrind/arch/x86-linux/vg_libpthread_unimp.c
@@ -141,7 +141,7 @@
//void pthread_rwlock_trywrlock ( void ) { unimp("pthread_rwlock_trywrlock"); }
//void pthread_rwlock_unlock ( void ) { unimp("pthread_rwlock_unlock"); }
//void pthread_rwlock_wrlock ( void ) { unimp("pthread_rwlock_wrlock"); }
-void pthread_rwlockattr_destroy ( void ) { unimp("pthread_rwlockattr_destroy"); }
+//void pthread_rwlockattr_destroy ( void ) { unimp("pthread_rwlockattr_destroy"); }
void pthread_rwlockattr_getkind_np ( void ) { unimp("pthread_rwlockattr_getkind_np"); }
void pthread_rwlockattr_getpshared ( void ) { unimp("pthread_rwlockattr_getpshared"); }
//void pthread_rwlockattr_init ( void ) { unimp("pthread_rwlockattr_init"); }
diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c
index 8904c62..47d02da 100644
--- a/coregrind/vg_libpthread.c
+++ b/coregrind/vg_libpthread.c
@@ -3247,6 +3247,13 @@
/* Copied directly from LinuxThreads. */
int
+pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
+{
+ return 0;
+}
+
+/* Copied directly from LinuxThreads. */
+int
pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
{
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
diff --git a/coregrind/vg_libpthread_unimp.c b/coregrind/vg_libpthread_unimp.c
index 95e08ee..b727f2f 100644
--- a/coregrind/vg_libpthread_unimp.c
+++ b/coregrind/vg_libpthread_unimp.c
@@ -141,7 +141,7 @@
//void pthread_rwlock_trywrlock ( void ) { unimp("pthread_rwlock_trywrlock"); }
//void pthread_rwlock_unlock ( void ) { unimp("pthread_rwlock_unlock"); }
//void pthread_rwlock_wrlock ( void ) { unimp("pthread_rwlock_wrlock"); }
-void pthread_rwlockattr_destroy ( void ) { unimp("pthread_rwlockattr_destroy"); }
+//void pthread_rwlockattr_destroy ( void ) { unimp("pthread_rwlockattr_destroy"); }
void pthread_rwlockattr_getkind_np ( void ) { unimp("pthread_rwlockattr_getkind_np"); }
void pthread_rwlockattr_getpshared ( void ) { unimp("pthread_rwlockattr_getpshared"); }
//void pthread_rwlockattr_init ( void ) { unimp("pthread_rwlockattr_init"); }