From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] Fix tst-rwlock14 on !i386 !x86_64
Date: Mon, 28 Jun 2004 19:13:00 -0000 [thread overview]
Message-ID: <20040628165900.GP5191@sunsite.ms.mff.cuni.cz> (raw)
Hi!
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.
--- libc/nptl/sysdeps/pthread/pthread_rwlock_timedwrlock.c.jj 2004-06-28 21:06:11.000000000 +0200
+++ libc/nptl/sysdeps/pthread/pthread_rwlock_timedwrlock.c 2004-06-28 21:10:04.127935596 +0200
@@ -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, abst
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;
--- libc/nptl/sysdeps/pthread/pthread_rwlock_timedrdlock.c.jj 2004-06-28 21:07:17.000000000 +0200
+++ libc/nptl/sysdeps/pthread/pthread_rwlock_timedrdlock.c 2004-06-28 21:10:09.526980957 +0200
@@ -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, abst
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;
Jakub
next reply other threads:[~2004-06-28 19:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-28 19:13 Jakub Jelinek [this message]
2004-06-28 19:38 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040628165900.GP5191@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).