From 6be3ba79176f65b4c23444c8cbacecfa78f8e5ce Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 5 Jan 2021 05:47:42 +0000 Subject: [PATCH] git-libpthread-testcancel Commited in 2.32 commit 59b7fe99f2593682ba779fe0faa8f1156d48d087 Author: Samuel Thibault 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 | 3 ++- sysdeps/htl/pthreadP.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htl/pt-testcancel.c b/htl/pt-testcancel.c index 1ec324b95..37326280e 100644 --- a/htl/pt-testcancel.c +++ b/htl/pt-testcancel.c @@ -22,7 +22,7 @@ #include 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) diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index ce1eb34d8..9d249f449 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -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_create) -- 2.30.2