Fei Jie | 68b1d24 | 2016-04-26 16:03:11 +0800 | [diff] [blame] | 1 | #include "tests.h" |
2 | #include <sys/syscall.h> | ||||
3 | |||||
4 | #ifdef __NR_sched_yield | ||||
5 | |||||
6 | # include <stdio.h> | ||||
7 | # include <unistd.h> | ||||
8 | |||||
9 | int | ||||
10 | main(void) | ||||
11 | { | ||||
12 | printf("sched_yield() = %ld\n", syscall(__NR_sched_yield)); | ||||
13 | |||||
14 | puts("+++ exited with 0 +++"); | ||||
15 | return 0; | ||||
16 | } | ||||
17 | |||||
18 | #else | ||||
19 | |||||
20 | SKIP_MAIN_UNDEFINED("__NR_sched_yield") | ||||
21 | |||||
22 | #endif |