From 61be1cfec1f5da66c68f92a6939e3a38e673c9d6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 3 May 2012 23:18:26 -0400 Subject: implement stub versions of sched_* these actually work, but for now they prohibit actually setting priority levels and report min/max priority as 0. --- src/sched/sched_setparam.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/sched/sched_setparam.c (limited to 'src/sched/sched_setparam.c') 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 +#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); +} -- cgit v1.2.1