This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.18-257-g53247a0
- From: macro at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 4 Oct 2013 23:02:32 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.18-257-g53247a0
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 53247a0b8fa937dc245eabacfaa6cd92cfffe475 (commit)
from 428d8c5e69b0e9c0baef2e21361f9c936d32070b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=53247a0b8fa937dc245eabacfaa6cd92cfffe475
commit 53247a0b8fa937dc245eabacfaa6cd92cfffe475
Author: Maciej W. Rozycki <macro@codesourcery.com>
Date: Sat Oct 5 00:00:32 2013 +0100
nptl: tst-mutex8.c: Handle ENOTSUP PI mutex failure
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 29469fc..a089153 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-04 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * tst-mutex8.c (check_type) [ENABLE_PI]: Handle ENOTSUP failure
+ from pthread_mutex_init.
+
2013-10-01 Siddhesh Poyarekar <siddhesh@redhat.com>
[BZ #15988]
diff --git a/nptl/tst-mutex8.c b/nptl/tst-mutex8.c
index d2307e4..c3d40fa 100644
--- a/nptl/tst-mutex8.c
+++ b/nptl/tst-mutex8.c
@@ -93,10 +93,18 @@ tf (void *arg)
static int
check_type (const char *mas, pthread_mutexattr_t *ma)
{
- int e __attribute__((unused));
+ int e;
- if (pthread_mutex_init (m, ma) != 0)
+ e = pthread_mutex_init (m, ma);
+ if (e != 0)
{
+#ifdef ENABLE_PI
+ if (e == ENOTSUP)
+ {
+ puts ("PI mutexes unsupported");
+ return 0;
+ }
+#endif
printf ("1st mutex_init failed for %s\n", mas);
return 1;
}
-----------------------------------------------------------------------
Summary of changes:
nptl/ChangeLog | 5 +++++
nptl/tst-mutex8.c | 12 ++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources