333f6976创建于 2024年3月25日历史提交
#include <sched.h>
#include <errno.h>
#include "syscall.h"
#ifdef __LITEOS_A__
#include "pthread_impl.h"
#endif

int sched_getscheduler(pid_t pid)
{
	int r = -ENOSYS;
#ifdef __LITEOS_A__
	r = __syscall(SYS_sched_getscheduler, pid, MUSL_TYPE_PROCESS);
#else
	r = __syscall(SYS_sched_getscheduler, pid);
#endif
	return __syscall_ret(r);
}