public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/release/2.37/master] nptl: Fix tst-cancel30 on sparc64
@ 2023-07-10 18:57 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-07-10 18:57 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=260d4b742bc36744aa2282421547f1a7b483d2f8

commit 260d4b742bc36744aa2282421547f1a7b483d2f8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon Apr 3 14:18:14 2023 -0300

    nptl: Fix tst-cancel30 on sparc64
    
    As indicated by sparc kernel-features.h, even though sparc64 defines
    __NR_pause,  it is not supported (ENOSYS).  Always use ppoll or the
    64 bit time_t variant instead.
    
    (cherry picked from commit 370da8a121c3ba9eeb2f13da15fc0f21f4136b25)

Diff:
---
 sysdeps/pthread/tst-cancel30.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sysdeps/pthread/tst-cancel30.c b/sysdeps/pthread/tst-cancel30.c
index 6eb4eb5b42..ff803386be 100644
--- a/sysdeps/pthread/tst-cancel30.c
+++ b/sysdeps/pthread/tst-cancel30.c
@@ -46,9 +46,7 @@ tf (void *arg)
 
   /* Wait indefinitely for cancellation, which only works if asynchronous
      cancellation is enabled.  */
-#ifdef SYS_pause
-  syscall (SYS_pause);
-#elif defined SYS_ppoll || defined SYS_ppoll_time64
+#if defined SYS_ppoll || defined SYS_ppoll_time64
 # ifndef SYS_ppoll_time64
 #  define SYS_ppoll_time64 SYS_ppoll
 # endif

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

only message in thread, other threads:[~2023-07-10 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-10 18:57 [glibc/release/2.37/master] nptl: Fix tst-cancel30 on sparc64 Adhemerval Zanella

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