From 85f200bd86bb5c037bb8e946982174789124c174 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 25 Jun 2025 10:40:24 +0300 Subject: [PATCH] LibC: Add sched_get_priority_{min,max} I don't support priority scheduling so these are just no-ops --- userspace/libraries/LibC/sched.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/userspace/libraries/LibC/sched.cpp b/userspace/libraries/LibC/sched.cpp index 72138299..f1eac3e6 100644 --- a/userspace/libraries/LibC/sched.cpp +++ b/userspace/libraries/LibC/sched.cpp @@ -2,6 +2,18 @@ #include #include +int sched_get_priority_max(int policy) +{ + (void)policy; + return 0; +} + +int sched_get_priority_min(int policy) +{ + (void)policy; + return 0; +} + int sched_yield(void) { return syscall(SYS_YIELD);