Fei Jie | 86ff93e | 2016-04-26 16:03:10 +0800 | [diff] [blame] | 1 | #include "tests.h" |
Dmitry V. Levin | 6a2f43c | 2016-08-09 14:38:29 +0000 | [diff] [blame^] | 2 | #include <asm/unistd.h> |
Fei Jie | 86ff93e | 2016-04-26 16:03:10 +0800 | [diff] [blame] | 3 | |
4 | #ifdef __NR_sync | ||||
5 | |||||
6 | # include <stdio.h> | ||||
7 | # include <unistd.h> | ||||
8 | |||||
9 | int | ||||
10 | main(void) | ||||
11 | { | ||||
12 | printf("sync() = %ld\n", syscall(__NR_sync)); | ||||
13 | |||||
14 | puts("+++ exited with 0 +++"); | ||||
15 | return 0; | ||||
16 | } | ||||
17 | |||||
18 | #else | ||||
19 | |||||
20 | SKIP_MAIN_UNDEFINED("__NR_sync") | ||||
21 | |||||
22 | #endif |