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