1 #include "tests.h" 2 #include <asm/unistd.h> 3 4 #if defined(__NR_sched_get_priority_min) \ 5 && defined(__NR_sched_get_priority_max) 6 7 # include <sched.h> 8 # include <stdio.h> 9 # include <unistd.h> 10 11 int 12 main(void) 13 { 14 int rc = syscall(__NR_sched_get_priority_min, SCHED_FIFO); 15 printf("sched_get_priority_min(SCHED_FIFO) = %d\n", rc); 16 17 rc = syscall(__NR_sched_get_priority_max, SCHED_RR); 18 printf("sched_get_priority_max(SCHED_RR) = %d\n", rc); 19 20 puts("+++ exited with 0 +++"); 21 return 0; 22 } 23 24 #else 25 26 SKIP_MAIN_UNDEFINED("__NR_sched_get_priority_min" 27 " && defined __NR_sched_get_priority_max"); 28 29 #endif 30