public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Florian Weimer <fw@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] pthread: Use pthread_mutexattr_setrobust in tests Date: Fri, 23 Apr 2021 08:40:41 +0000 (GMT) [thread overview] Message-ID: <20210423084041.173BA3A77C0E@sourceware.org> (raw) 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
reply other threads:[~2021-04-23 8:40 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210423084041.173BA3A77C0E@sourceware.org \ --to=fw@sourceware.org \ --cc=glibc-cvs@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: linkBe 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).