git-pthread_get_cleanup_stack
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 6 Jul 2021 19:16:59 +0000 (20:16 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 6 Jul 2021 19:16:59 +0000 (20:16 +0100)
Commited in 2.32

commit f1cd3407e4c6767e0bbe2ca122b713c6581b8d67
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Feb 9 23:13:24 2020 +0000

    htl: clean __pthread_get_cleanup_stack hidden proto

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-pthread_get_cleanup_stack.diff

htl/pt-cleanup.c
htl/pt-exit.c
htl/pt-join.c
sysdeps/htl/pthreadP.h

index 3f5f43f2535d5e77511282bb26a67fd4481944eb..a9a7c95847af8d20caf8425b2cd5ea050b46da4d 100644 (file)
@@ -21,8 +21,8 @@
 #include <pt-internal.h>
 
 struct __pthread_cancelation_handler **
-___pthread_get_cleanup_stack (void)
+__pthread_get_cleanup_stack (void)
 {
   return &_pthread_self ()->cancelation_handlers;
 }
-strong_alias (___pthread_get_cleanup_stack, __pthread_get_cleanup_stack)
+hidden_def(__pthread_get_cleanup_stack)
index 9a4db2da511fd4c1657f9397487bbb6329aa58f0..94e3cd9dc0c339c322293f2c622a05fa1b307c15 100644 (file)
@@ -41,7 +41,7 @@ __pthread_exit (void *status)
      disabled.  */
   __pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
 
-  for (handlers = ___pthread_get_cleanup_stack ();
+  for (handlers = __pthread_get_cleanup_stack ();
        *handlers != NULL;
        *handlers = (*handlers)->__next)
     (*handlers)->__handler ((*handlers)->__arg);
index b141c4c8b95844131e1c1f3529b3432669a8e059..43878a3d527c9ad9c7c7812c6fea60c805ee7fa8 100644 (file)
@@ -22,8 +22,6 @@
 
 #include <pt-internal.h>
 
-#define __pthread_get_cleanup_stack ___pthread_get_cleanup_stack
-
 /* Make calling thread wait for termination of thread THREAD.  Return
    the exit status of the thread in *STATUS.  */
 int
index 43208dd396340b00147855e1cc4160bdcd044215..ce1eb34d80ab6162062ad9f4f24ac4fe2aab9042 100644 (file)
@@ -67,7 +67,6 @@ 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 *);
-struct __pthread_cancelation_handler **___pthread_get_cleanup_stack (void) attribute_hidden;
 
 #if IS_IN (libpthread)
 hidden_proto (__pthread_create)
@@ -76,6 +75,7 @@ hidden_proto (__pthread_key_create)
 hidden_proto (__pthread_getspecific)
 hidden_proto (__pthread_setspecific)
 hidden_proto (_pthread_mutex_init)
+hidden_proto (__pthread_get_cleanup_stack)
 #endif
 
 #define ASSERT_TYPE_SIZE(type, size)                                   \