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