libc: add ___pthread_cleanup_push/pop_imp aliases

Issue #725
This commit is contained in:
Christian Prochaska 2023-10-20 06:21:00 +02:00 committed by Christian Helmuth
parent ebea6fb23f
commit 94bbdbb71d

View File

@ -890,12 +890,18 @@ extern "C" {
}
typeof(__pthread_cleanup_push_imp) ___pthread_cleanup_push_imp
__attribute__((alias("__pthread_cleanup_push_imp")));
void __pthread_cleanup_pop_imp(int execute)
{
pthread_self()->cleanup_pop(execute);
}
typeof(__pthread_cleanup_pop_imp) ___pthread_cleanup_pop_imp
__attribute__((alias("__pthread_cleanup_pop_imp")));
/* Mutex */