sched_getscheduler.c 489 B

12345678910111213141516171819
  1. /*
  2. * sched_getscheduler() for uClibc
  3. *
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sched.h>
  9. #include <sys/types.h>
  10. #include <sys/syscall.h>
  11. #define __NR___syscall_sched_getscheduler __NR_sched_getscheduler
  12. static __inline__ _syscall1(int, __syscall_sched_getscheduler, __kernel_pid_t, pid)
  13. int sched_getscheduler(pid_t pid)
  14. {
  15. return (__syscall_sched_getscheduler(pid));
  16. }