From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 15/17] pthread: Use pthread_mutexattr_setrobust in tests
Date: Thu, 22 Apr 2021 17:41:13 +0200 [thread overview]
Message-ID: <f4732301fa5d993f62dfcf8e6def2362dc967759.1619105191.git.fweimer@redhat.com> (raw)
In-Reply-To: <cover.1619105191.git.fweimer@redhat.com>
pthread_mutexattr_setrobust_np is about to be deprecated.
---
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
--
2.30.2
next prev parent reply other threads:[~2021-04-22 15:40 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 15:39 [PATCH 00/17] nptl: Move remaining mutex symbols into libpthread Florian Weimer
2021-04-22 15:39 ` [PATCH 01/17] nptl: Move pthread_mutex_getprioceiling into libc Florian Weimer
2021-04-22 15:39 ` [PATCH 02/17] nptl: Move pthread_mutex_setprioceiling " Florian Weimer
2021-04-22 15:39 ` [PATCH 03/17] nptl: Move pthread_mutex_timedlock, pthread_mutex_clocklock to libc Florian Weimer
2021-04-22 15:40 ` [PATCH 04/17] nptl: Move pthread_mutex_trylock, __pthread_mutex_trylock into libc Florian Weimer
2021-04-22 15:40 ` [PATCH 05/17] nptl: Move pthread_mutexattr_destroy " Florian Weimer
2021-04-22 15:40 ` [PATCH 06/17] nptl: Move pthread_mutexattr_getprioceiling " Florian Weimer
2021-04-22 15:40 ` [PATCH 07/17] nptl: Move pthread_mutexattr_getprotocol " Florian Weimer
2021-04-22 15:40 ` [PATCH 08/17] nptl: Move pthread_mutexattr_getpshared " Florian Weimer
2021-04-22 15:40 ` [PATCH 09/17] nptl: Move pthread_mutexattr_getrobust " Florian Weimer
2021-04-22 15:40 ` [PATCH 10/17] nptl: Move pthread_mutexattr_gettype " Florian Weimer
2021-04-26 20:57 ` Andreas Schwab
2021-04-27 4:55 ` Florian Weimer
2021-04-27 11:08 ` Florian Weimer
2021-04-22 15:40 ` [PATCH 11/17] nptl: Move pthread_mutexattr_init, __pthread_mutexattr_init " Florian Weimer
2021-04-22 15:40 ` [PATCH 12/17] nptl: Move pthread_mutexattr_setprioceiling " Florian Weimer
2021-04-22 15:41 ` [PATCH 13/17] nptl: Move pthread_mutexattr_setprotocol " Florian Weimer
2021-04-22 15:41 ` [PATCH 14/17] nptl: Move pthread_mutexattr_setpshared " Florian Weimer
2021-04-22 15:41 ` Florian Weimer [this message]
2021-04-22 15:41 ` [PATCH 16/17] nptl: Move pthread_mutexattr_setrobust " Florian Weimer
2021-04-22 15:41 ` [PATCH 17/17] nptl: Move pthread_mutexattr_settype, __pthread_mutexattr_settype " Florian Weimer
2021-04-22 21:11 ` [PATCH 00/17] nptl: Move remaining mutex symbols into libpthread H.J. Lu
2021-04-22 21:29 ` Florian Weimer
2021-04-22 21:50 ` H.J. Lu
2021-04-26 15:48 ` Andreas Schwab
2021-04-26 16:02 ` Florian Weimer
2021-04-26 16:19 ` Andreas Schwab
2021-04-26 16:24 ` Florian Weimer
2021-04-26 16:43 ` Andreas Schwab
2021-04-26 16:50 ` Florian Weimer
2021-04-26 17:51 ` Andreas Schwab
2021-04-26 17:57 ` Florian Weimer
2021-04-26 18:01 ` Dmitry V. Levin
2021-04-26 18:13 ` Florian Weimer
2021-04-26 18:19 ` Andreas Schwab
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=f4732301fa5d993f62dfcf8e6def2362dc967759.1619105191.git.fweimer@redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
/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).