implement stub versions of sched_*
these actually work, but for now they prohibit actually setting priority levels and report min/max priority as 0.
This commit is contained in:
parent
b959d04644
commit
61be1cfec1
7 changed files with 49 additions and 0 deletions
8
src/sched/sched_setscheduler.c
Normal file
8
src/sched/sched_setscheduler.c
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue