]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 28 Jun 2004 19:38:25 +0000 (19:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 28 Jun 2004 19:38:25 +0000 (19:38 +0000)
2004-06-28  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/pthread/pthread_rwlock_timedwrlock.c
(pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
instead of tv_sec.
* sysdeps/pthread/pthread_rwlock_timedrdlock.c
(pthread_rwlock_timedrdlock): Likewise.

nptl/ChangeLog
nptl/sysdeps/pthread/pthread_rwlock_timedrdlock.c
nptl/sysdeps/pthread/pthread_rwlock_timedwrlock.c

index e1df427a28a9806880f23e639423d7378b0f3808..275d1a7ff516a25be842a1a17bbcbbbeb3f6001d 100644 (file)
@@ -1,3 +1,11 @@
+2004-06-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/pthread/pthread_rwlock_timedwrlock.c
+       (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative,
+       instead of tv_sec.
+       * sysdeps/pthread/pthread_rwlock_timedrdlock.c
+       (pthread_rwlock_timedrdlock): Likewise.
+
 2004-06-22  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue):
index 85cc176a9abfc5d1fe3828c13b902cc228b816c2..62f3e23248baacaff1496762f13f3810d0411b17 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky <schwidefsky@de.ibm.com>, 2003.
 
@@ -71,7 +71,7 @@ pthread_rwlock_timedrdlock (rwlock, abstime)
         to the front is no option.  Replicating all the code is
         costly while this test is not.  */
       if (__builtin_expect (abstime->tv_nsec >= 1000000000
-                            || abstime->tv_sec < 0, 0))
+                            || abstime->tv_nsec < 0, 0))
        {
          result = EINVAL;
          break;
index dd5f9b4ccf6ab05adea83b41a2f97628f85f787a..97c0598f96f9866558e493799269559572a8262f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky <schwidefsky@de.ibm.com>, 2003.
 
@@ -62,7 +62,7 @@ pthread_rwlock_timedwrlock (rwlock, abstime)
         to the front is no option.  Replicating all the code is
         costly while this test is not.  */
       if (__builtin_expect (abstime->tv_nsec >= 1000000000
-                            || abstime->tv_sec < 0, 0))
+                            || abstime->tv_nsec < 0, 0))
        {
          result = EINVAL;
          break;