Dmitry V. Levin | 0c8853c | 2016-01-02 13:28:43 +0000 | [diff] [blame] | 1 | #include "tests.h" |
Dmitry V. Levin | 95b84ea | 2015-07-28 23:03:41 +0000 | [diff] [blame] | 2 | #include <unistd.h> |
3 | #include <sys/syscall.h> | ||||
4 | |||||
5 | #ifdef __NR_memfd_create | ||||
6 | |||||
7 | int | ||||
8 | main(void) | ||||
9 | { | ||||
10 | syscall(__NR_memfd_create, "strace", 7); | ||||
11 | return 0; | ||||
12 | } | ||||
13 | |||||
14 | #else | ||||
15 | |||||
Dmitry V. Levin | 8292431 | 2016-01-04 23:41:27 +0000 | [diff] [blame] | 16 | SKIP_MAIN_UNDEFINED("__NR_memfd_create") |
Dmitry V. Levin | 95b84ea | 2015-07-28 23:03:41 +0000 | [diff] [blame] | 17 | |
18 | #endif |