about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-03 02:58:30 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-03 02:58:30 +0000
commite29ef6470637f570919916670ed4d23d5861969e (patch)
tree0490afd97cd62e6ab3f8c8f4e93d006d62c51fcb /linuxthreads
parent763d0f40cf4eb7861a1e4190c5bb5394334eb26a (diff)
downloadglibc-e29ef6470637f570919916670ed4d23d5861969e.tar.gz
glibc-e29ef6470637f570919916670ed4d23d5861969e.tar.xz
glibc-e29ef6470637f570919916670ed4d23d5861969e.zip
Update.
2003-09-02  Jakub Jelinek  <jakub@redhat.com>

	* barrier.c (__pthread_barrierattr_getpshared): Always
	return PTHREAD_PROCESS_PRIVATE.
	(pthread_barrierattr_setpshared): Return EINVAL if pshared
	is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog7
-rw-r--r--linuxthreads/barrier.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index d8ec55c3b8..6c04e3df71 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-02  Jakub Jelinek  <jakub@redhat.com>
+
+	* barrier.c (__pthread_barrierattr_getpshared): Always
+	return PTHREAD_PROCESS_PRIVATE.
+	(pthread_barrierattr_setpshared): Return EINVAL if pshared
+	is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
+
 2003-09-02  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/i386/dl-sysdep.h
diff --git a/linuxthreads/barrier.c b/linuxthreads/barrier.c
index ea09e77281..37d997cfc1 100644
--- a/linuxthreads/barrier.c
+++ b/linuxthreads/barrier.c
@@ -110,16 +110,19 @@ int
 __pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr,
 				 int *pshared)
 {
-  *pshared = attr->__pshared;
+  *pshared = PTHREAD_PROCESS_PRIVATE;
   return 0;
 }
 
 int
 pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared)
 {
+  if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
+    return EINVAL;
+
+  /* For now it is not possible to shared a conditional variable.  */
   if (pshared != PTHREAD_PROCESS_PRIVATE)
     return ENOSYS;
 
-  attr->__pshared = pshared;
   return 0;
 }