1 #include <sched.h> 2 #include <errno.h> 3 #include "syscall.h" 4 sched_setparam(pid_t pid,const struct sched_param * param)5int sched_setparam(pid_t pid, const struct sched_param *param) 6 { 7 int r; 8 if (!param) { 9 r = -EINVAL; 10 goto exit; 11 } 12 r = __syscall(SYS_sched_setparam, pid, param); 13 exit: 14 return __syscall_ret(r); 15 }