public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] pthread: Use pthread_mutexattr_setrobust in tests
@ 2021-04-23  8:40 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2021-04-23  8:40 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0bdd79794526114313135c528969bb25be88c1a3

commit 0bdd79794526114313135c528969bb25be88c1a3
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Apr 23 09:48:10 2021 +0200

    pthread: Use pthread_mutexattr_setrobust in tests
    
    pthread_mutexattr_setrobust_np is about to be deprecated.

Diff:
---
 sysdeps/pthread/tst-robust1.c  | 2 +-
 sysdeps/pthread/tst-robust10.c | 2 +-
 sysdeps/pthread/tst-robust7.c  | 2 +-
 sysdeps/pthread/tst-robust8.c  | 2 +-
 sysdeps/pthread/tst-robust9.c  | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sysdeps/pthread/tst-robust1.c b/sysdeps/pthread/tst-robust1.c
index 6342fcbbf7..4e1943de4f 100644
--- a/sysdeps/pthread/tst-robust1.c
+++ b/sysdeps/pthread/tst-robust1.c
@@ -91,7 +91,7 @@ do_test (void)
       puts ("mutexattr_init failed");
       return 1;
     }
-  if (pthread_mutexattr_setrobust_np (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust10.c b/sysdeps/pthread/tst-robust10.c
index 912376e205..b814806c94 100644
--- a/sysdeps/pthread/tst-robust10.c
+++ b/sysdeps/pthread/tst-robust10.c
@@ -56,7 +56,7 @@ do_test (void)
       puts ("mutexattr_init failed");
       return 0;
     }
-  if (pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust7.c b/sysdeps/pthread/tst-robust7.c
index bcf72916d1..3ea7deb260 100644
--- a/sysdeps/pthread/tst-robust7.c
+++ b/sysdeps/pthread/tst-robust7.c
@@ -89,7 +89,7 @@ do_test (void)
       return 1;
     }
 
-  if (pthread_mutexattr_setrobust_np (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&a, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust8.c b/sysdeps/pthread/tst-robust8.c
index 8f135cb516..4c8a20e916 100644
--- a/sysdeps/pthread/tst-robust8.c
+++ b/sysdeps/pthread/tst-robust8.c
@@ -163,7 +163,7 @@ do_test (void)
       puts ("mutexattr_init failed");
       return 0;
     }
-  if (pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
+  if (pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP) != 0)
     {
       puts ("mutexattr_setrobust failed");
       return 1;
diff --git a/sysdeps/pthread/tst-robust9.c b/sysdeps/pthread/tst-robust9.c
index 532aebc4e9..ca24f24282 100644
--- a/sysdeps/pthread/tst-robust9.c
+++ b/sysdeps/pthread/tst-robust9.c
@@ -40,10 +40,10 @@ do_test (void)
   pthread_mutexattr_t ma;
 
   pthread_mutexattr_init (&ma);
-  err = pthread_mutexattr_setrobust_np (&ma, PTHREAD_MUTEX_ROBUST_NP);
+  err = pthread_mutexattr_setrobust (&ma, PTHREAD_MUTEX_ROBUST_NP);
   if (err)
     {
-      puts ("pthread_mutexattr_setrobust_np");
+      puts ("pthread_mutexattr_setrobust");
       return 1;
     }
 #ifdef ENABLE_PI


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-23  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  8:40 [glibc] pthread: Use pthread_mutexattr_setrobust in tests Florian Weimer

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).