From f1cd3407e4c6767e0bbe2ca122b713c6581b8d67 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 9 Feb 2020 23:13:24 +0000 Subject: htl: clean __pthread_get_cleanup_stack hidden proto --- htl/pt-cleanup.c | 4 ++-- htl/pt-exit.c | 2 +- htl/pt-join.c | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'htl') diff --git a/htl/pt-cleanup.c b/htl/pt-cleanup.c index 3f5f43f..a9a7c95 100644 --- a/htl/pt-cleanup.c +++ b/htl/pt-cleanup.c @@ -21,8 +21,8 @@ #include 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) diff --git a/htl/pt-exit.c b/htl/pt-exit.c index 9a4db2d..94e3cd9 100644 --- a/htl/pt-exit.c +++ b/htl/pt-exit.c @@ -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); diff --git a/htl/pt-join.c b/htl/pt-join.c index b141c4c..43878a3 100644 --- a/htl/pt-join.c +++ b/htl/pt-join.c @@ -22,8 +22,6 @@ #include -#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 -- cgit v1.1