diff options
Diffstat (limited to 'src/sched/sched_setscheduler.c')
-rw-r--r-- | src/sched/sched_setscheduler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sched/sched_setscheduler.c b/src/sched/sched_setscheduler.c new file mode 100644 index 00000000..acf5dc25 --- /dev/null +++ b/src/sched/sched_setscheduler.c @@ -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); +} |