LibC: Add sched_get_priority_{min,max}

I don't support priority scheduling so these are just no-ops
This commit is contained in:
Bananymous 2025-06-25 10:40:24 +03:00
parent 0f2c02fb04
commit 85f200bd86
1 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,18 @@
#include <sys/syscall.h>
#include <unistd.h>
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);