summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorDominik Stolz <d.stolz@tum.de>2021-03-16 08:07:03 +0100
committerDominik Stolz <d.stolz@tum.de>2021-03-16 08:07:03 +0100
commit204fe259c6a8899fe6caeee8b6f010c3c02f5774 (patch)
treee88ec13ac25f9955bac69967650cc4751d749e19 /libc-test
parenta9c4446eebe45855bbca89355b97225f2260499d (diff)
downloadrust-libc-204fe259c6a8899fe6caeee8b6f010c3c02f5774.tar.gz
Ignore syscalls added in Linux 5.9 or later in tests
Diffstat (limited to 'libc-test')
-rwxr-xr-xlibc-test/build.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 4a842fb6e9..7333fa2e5b 100755
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -2654,6 +2654,16 @@ fn test_linux(target: &str) {
// Not yet implemented on sparc64
"SYS_clone3" if mips | sparc64 => true,
+ // FIXME: these syscalls were added in Linux 5.9 or later
+ // and are currently not included in the glibc headers.
+ | "SYS_close_range"
+ | "SYS_openat2"
+ | "SYS_pidfd_getfd"
+ | "SYS_faccessat2"
+ | "SYS_process_madvise"
+ | "SYS_epoll_pwait2"
+ | "SYS_mount_setattr" => true,
+
// Requires more recent kernel headers:
| "IFLA_PROP_LIST"
| "IFLA_ALT_IFNAME"