aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:48:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:51:57 +0200
commit0bdd79794526114313135c528969bb25be88c1a3 (patch)
tree4d5f90d73c8ff6e72fbbd08abf413fbfa3f682ab /sysdeps/pthread
parent8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0 (diff)
downloadglibc-0bdd79794526114313135c528969bb25be88c1a3.zip
glibc-0bdd79794526114313135c528969bb25be88c1a3.tar.gz
glibc-0bdd79794526114313135c528969bb25be88c1a3.tar.bz2
pthread: Use pthread_mutexattr_setrobust in tests
pthread_mutexattr_setrobust_np is about to be deprecated.
Diffstat (limited to 'sysdeps/pthread')
-rw-r--r--sysdeps/pthread/tst-robust1.c2
-rw-r--r--sysdeps/pthread/tst-robust10.c2
-rw-r--r--sysdeps/pthread/tst-robust7.c2
-rw-r--r--sysdeps/pthread/tst-robust8.c2
-rw-r--r--sysdeps/pthread/tst-robust9.c4
5 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/pthread/tst-robust1.c b/sysdeps/pthread/tst-robust1.c
index 6342fcb..4e1943d 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 912376e..b814806 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 bcf7291..3ea7deb 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 8f135cb..4c8a20e 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 532aebc..ca24f24 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