#include #include #include #include "syscall.h" #include "pthread_impl.h" int sched_getparam(pid_t pid, struct sched_param *param) { int r; if (!param) { r = -EINVAL; goto exit; } memset(param, 0, sizeof(struct sched_param)); r = __syscall(SYS_sched_getparam, pid, param, MUSL_TYPE_PROCESS); exit: return __syscall_ret(r); }