git-libpthread-testcancel
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 28 Aug 2021 19:29:36 +0000 (20:29 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sat, 28 Aug 2021 19:29:36 +0000 (20:29 +0100)
Commited in 2.32

commit 59b7fe99f2593682ba779fe0faa8f1156d48d087
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 22:23:52 2020 +0000

    htl: Add support for libc cancellation points

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-libpthread-testcancel.diff

htl/pt-testcancel.c
sysdeps/htl/pthreadP.h

index 1ec324b95faf3763fd3b006db6d4fbf908373aa7..37326280eea23d49f777231c312acafcad943603 100644 (file)
@@ -22,7 +22,7 @@
 #include <pthreadP.h>
 
 void
-pthread_testcancel (void)
+__pthread_testcancel (void)
 {
   struct __pthread *p = _pthread_self ();
   int cancelled;
@@ -34,3 +34,4 @@ pthread_testcancel (void)
   if (cancelled)
     __pthread_exit (PTHREAD_CANCELED);
 }
+strong_alias (__pthread_testcancel, pthread_testcancel)
index 69d57d7502bd66cbaf89697a336a9fbade5f14cb..068064a5fa5481db9b8a5dd599c1767a30cb7f59 100644 (file)
@@ -67,6 +67,7 @@ int __pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize);
 int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
                             size_t __stacksize);
 int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
+void __pthread_testcancel (void);
 
 #if IS_IN (libpthread)
 hidden_proto (__pthread_key_create)