+++ /dev/null
-#include <sched.h>
-#include "syscall.h"
-#include "libc.h"
-
-int __yield()
-{
- return syscall(SYS_sched_yield);
-}
-
-weak_alias(__yield, sched_yield);
--- /dev/null
+#include <sched.h>
+
+int sched_get_priority_max(int policy)
+{
+ return 0;
+}
+
+int sched_get_priority_min(int policy)
+{
+ return 0;
+}
--- /dev/null
+#include <sched.h>
+#include "syscall.h"
+
+int sched_getparam(pid_t pid, struct sched_param *param)
+{
+ return syscall(SYS_sched_getparam, pid, param);
+}
--- /dev/null
+#include <sched.h>
+#include "syscall.h"
+
+int sched_getscheduler(pid_t pid)
+{
+ return syscall(SYS_sched_getscheduler, pid);
+}
--- /dev/null
+#include <sched.h>
+#include "syscall.h"
+
+int sched_rr_get_interval(pid_t pid, struct timespec *ts)
+{
+ return syscall(SYS_sched_rr_get_interval, pid, ts);
+}
+
--- /dev/null
+#include <sched.h>
+#include "syscall.h"
+
+int sched_setparam(pid_t pid, const struct sched_param *param)
+{
+ static const struct sched_param def;
+ return syscall(SYS_sched_setparam, pid, &def);
+}
--- /dev/null
+#include <sched.h>
+#include "syscall.h"
+
+int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
+{
+ static const struct sched_param def;
+ return syscall(SYS_sched_setscheduler, pid, sched, &def);
+}
--- /dev/null
+#include <sched.h>
+#include "syscall.h"
+#include "libc.h"
+
+int __yield()
+{
+ return syscall(SYS_sched_yield);
+}
+
+weak_alias(__yield, sched_yield);