From 0f2c02fb04b557652f40b9cfc71adcba45aca131 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 25 Jun 2025 10:39:55 +0300 Subject: [PATCH] LibC: Add stubs for pthread_{get,set}schedparam --- userspace/libraries/LibC/pthread.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/userspace/libraries/LibC/pthread.cpp b/userspace/libraries/LibC/pthread.cpp index 0b8732f9c3..322a44ab52 100644 --- a/userspace/libraries/LibC/pthread.cpp +++ b/userspace/libraries/LibC/pthread.cpp @@ -628,6 +628,24 @@ void pthread_testcancel(void) pthread_exit(PTHREAD_CANCELED); } +int pthread_getschedparam(pthread_t thread, int* __restrict policy, struct sched_param* __restrict param) +{ + (void)thread; + (void)policy; + (void)param; + dwarnln("TODO: pthread_getschedparam"); + return ENOTSUP; +} + +int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param* param) +{ + (void)thread; + (void)policy; + (void)param; + dwarnln("TODO: pthread_setschedparam"); + return ENOTSUP; +} + int pthread_spin_destroy(pthread_spinlock_t* lock) { (void)lock;