From 01626b4c9f58678b3844625ce71ca3ff6f0b9b51 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 19 Apr 2025 22:19:27 +0300 Subject: [PATCH] LibC: Add stub for `pthread_detach` --- userspace/libraries/LibC/pthread.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/userspace/libraries/LibC/pthread.cpp b/userspace/libraries/LibC/pthread.cpp index 684e4a19..eeb8f95e 100644 --- a/userspace/libraries/LibC/pthread.cpp +++ b/userspace/libraries/LibC/pthread.cpp @@ -255,6 +255,13 @@ pthread_create_error: return return_code; } +int pthread_detach(pthread_t thread) +{ + (void)thread; + dwarnln("TODO: pthread_detach"); + return ENOTSUP; +} + void pthread_exit(void* value_ptr) { #if not __disable_thread_local_storage