Elliott Hughes | d35df49 | 2017-02-15 15:19:05 -0800 | [diff] [blame^] | 1 | #include "tests.h" |
2 | #include <asm/unistd.h> | ||||
3 | |||||
4 | #ifdef __NR_iopl | ||||
5 | |||||
6 | # include <stdio.h> | ||||
7 | # include <unistd.h> | ||||
8 | |||||
9 | int | ||||
10 | main(void) | ||||
11 | { | ||||
12 | long rc = syscall(__NR_iopl, 4); | ||||
13 | printf("iopl(4) = %ld %s (%m)\n", rc, errno2name()); | ||||
14 | |||||
15 | puts("+++ exited with 0 +++"); | ||||
16 | return 0; | ||||
17 | } | ||||
18 | |||||
19 | #else | ||||
20 | |||||
21 | SKIP_MAIN_UNDEFINED("__NR_iopl") | ||||
22 | |||||
23 | #endif |