about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/pthread
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-19 00:10:36 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-19 00:10:36 +0000
commit9e56c380bce196b1e66fbed5c6684776f86307db (patch)
tree8fa1cea6d81742d3a993ec3626b0780f6fd011cc /linuxthreads/sysdeps/pthread
parentc7e85d0c08ccbfc7604f6d50579c3a4b25281ff1 (diff)
downloadglibc-9e56c380bce196b1e66fbed5c6684776f86307db.tar.gz
glibc-9e56c380bce196b1e66fbed5c6684776f86307db.tar.xz
glibc-9e56c380bce196b1e66fbed5c6684776f86307db.zip
Update.
	* nscd/connections.c (dbs): Use
	PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP for .lock.
	Pretty printing.

	* nscd/hstcache.c (cache_addhst): Don't automatically add IPv6
	address.  Suggested by Philip Blundell.
Diffstat (limited to 'linuxthreads/sysdeps/pthread')
-rw-r--r--linuxthreads/sysdeps/pthread/pthread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads/sysdeps/pthread/pthread.h b/linuxthreads/sysdeps/pthread/pthread.h
index 925db09b86..1ff7cba7a6 100644
--- a/linuxthreads/sysdeps/pthread/pthread.h
+++ b/linuxthreads/sysdeps/pthread/pthread.h
@@ -43,6 +43,11 @@ __BEGIN_DECLS
   { {0, 0}, 0, NULL, NULL, NULL,					      \
     PTHREAD_RWLOCK_DEFAULT_NP, PTHREAD_PROCESS_PRIVATE }
 #endif
+#ifdef __USE_GNU
+# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
+  { {0, 0}, 0, NULL, NULL, NULL,					      \
+    PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, PTHREAD_PROCESS_PRIVATE }
+#endif
 
 /* Values for attributes.  */