implement stub versions of sched_*
[musl] / src / sched / sched_setscheduler.c
diff --git a/src/sched/sched_setscheduler.c b/src/sched/sched_setscheduler.c
new file mode 100644 (file)
index 0000000..acf5dc2
--- /dev/null
@@ -0,0 +1,8 @@
+#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);
+}