summaryrefslogtreecommitdiff
path: root/src/sched/sched_setscheduler.c
blob: 195806606bffc3cc30d0f86aec711fb7b004a83e (plain) (blame)
1
2
3
4
5
6
7
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, 0, &def);
}