about summary refs log tree commit diff
path: root/src/sched/sched_setparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sched/sched_setparam.c')
-rw-r--r--src/sched/sched_setparam.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sched/sched_setparam.c b/src/sched/sched_setparam.c
new file mode 100644
index 00000000..07d61aea
--- /dev/null
+++ b/src/sched/sched_setparam.c
@@ -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);
+}