]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 18 Mar 2003 11:25:37 +0000 (11:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 18 Mar 2003 11:25:37 +0000 (11:25 +0000)
2003-03-18  Ulrich Drepper  <drepper@redhat.com>

* Versions.def: Add GLIBC_2.3.3 for libpthread.

ChangeLog
nptl/ChangeLog
nptl/pthread_cond_init.c

index 9b5d10fde1b695b29f27941715a1a9522c1ab018..4f73000a8fa68903f5a93c410ce83fd22c74476f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-18  Ulrich Drepper  <drepper@redhat.com>
+
+       * Versions.def: Add GLIBC_2.3.3 for libpthread.
+
 2003-03-17  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/generic/libc-start.c [!SHARED &&
index 579e9852985775078dedcb21b6ebd79ad7373dc0..20ae05d91b595ab1a398ae524f4ff35d29e80f46 100644 (file)
@@ -10,6 +10,7 @@
        * pthread_condattr_getpshared.c: Adjust for struct pthread_condattr
        change.
        * pthread_condattr_setpshared.c: Likewise.
+       * pthread_cond_init.c (__pthread_cond_init): Initialized __clock field.
        * sysdeps/unix/sysv/linux/lowlevelcond.sym: Add cond_clock symbol.
        * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t):
        Add __clock field.
index e079ae92356d134aea8d52abd71984781392f762..12a38fb492e55c6e4019d2db0a571bfd3c7491f1 100644 (file)
@@ -17,7 +17,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#include <shlib-compat.h>                  
+#include <shlib-compat.h>
 #include "pthreadP.h"
 
 
@@ -26,11 +26,12 @@ __pthread_cond_init (cond, cond_attr)
      pthread_cond_t *cond;
      const pthread_condattr_t *cond_attr;
 {
-  /* Note that we don't need the COND-ATTR.  It contains only the
-     PSHARED flag which is unimportant here since conditional
-     variables are always usable in multiple processes.  */
+  /* Note that we don't need the PSHARED information from COND-ATTR.
+     Conditional variables are always usable in multiple processes.  */
+  struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr;
 
   cond->__data.__lock = LLL_MUTEX_LOCK_INITIALIZER;
+  cond->__data.__clock = (icond_attr->value & 0xfe) >> 1;
   cond->__data.__total_seq = 0;
   cond->__data.__wakeup_seq = 0;
   cond->__data.__woken_seq = 0;