Pthread: Add stubs for pthread_cleanup_{push,pop}

The stubs are necessary to make the xz port properly detect pthread
support. The two functions are only used in the configure script and
nowhere else.
This commit is contained in:
Gunnar Beutner 2021-04-19 16:23:17 +02:00 committed by Linus Groh
parent 136f6fb7c8
commit bd08f9188a
Notes: sideshowbarker 2024-07-18 19:23:56 +09:00

View file

@ -143,6 +143,16 @@ void pthread_exit(void* value_ptr)
exit_thread(value_ptr);
}
void pthread_cleanup_push([[maybe_unused]] void (*routine)(void*), [[maybe_unused]] void* arg)
{
TODO();
}
void pthread_cleanup_pop([[maybe_unused]] int execute)
{
TODO();
}
int pthread_join(pthread_t thread, void** exit_value_ptr)
{
int rc = syscall(SC_join_thread, thread, exit_value_ptr);