sched_rr_get_interval.c 731 B

12345678910111213141516171819202122232425
  1. /*
  2. * sched_rr_get_interval() 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. #if defined(__UCLIBC_USE_TIME64__) && defined(__NR_sched_rr_get_interval_time64)
  12. #define __NR___syscall_sched_rr_get_interval __NR_sched_rr_get_interval_time64
  13. #else
  14. #define __NR___syscall_sched_rr_get_interval __NR_sched_rr_get_interval
  15. #endif
  16. static __inline__ _syscall2(int, __syscall_sched_rr_get_interval,
  17. __kernel_pid_t, pid, struct timespec *, tp)
  18. int sched_rr_get_interval(pid_t pid, struct timespec *tp)
  19. {
  20. return (__syscall_sched_rr_get_interval(pid, tp));
  21. }