1 #include <sched.h> 2 #include <errno.h> 3 #include "syscall.h" 4 sched_getscheduler(pid_t pid)5 int sched_getscheduler(pid_t pid) 6 { 7 int r = __syscall(SYS_sched_getscheduler, pid); 8 return __syscall_ret(r); 9 }