xref: /third_party/musl/src/sched/sched_getscheduler.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/sched/
1570af302Sopenharmony_ci#include <sched.h>
2570af302Sopenharmony_ci#include <errno.h>
3570af302Sopenharmony_ci#include "syscall.h"
4570af302Sopenharmony_ci#ifdef __LITEOS_A__
5570af302Sopenharmony_ci#include "pthread_impl.h"
6570af302Sopenharmony_ci#endif
7570af302Sopenharmony_ci
8570af302Sopenharmony_ciint sched_getscheduler(pid_t pid)
9570af302Sopenharmony_ci{
10570af302Sopenharmony_ci	int r = -ENOSYS;
11570af302Sopenharmony_ci#ifdef __LITEOS_A__
12570af302Sopenharmony_ci	r = __syscall(SYS_sched_getscheduler, pid, MUSL_TYPE_PROCESS);
13570af302Sopenharmony_ci#else
14570af302Sopenharmony_ci	r = __syscall(SYS_sched_getscheduler, pid);
15570af302Sopenharmony_ci#endif
16570af302Sopenharmony_ci	return __syscall_ret(r);
17570af302Sopenharmony_ci}
18

Indexes created Thu Nov 07 10:32:03 CST 2024