Skip to content

Commit 7364369

Browse files
committed
Add F_SEAL_FUTURE_WRITE on Linux/Android
This was added in Linux 5.1 and will only show up in the next glibc release, thus skip in tests.
1 parent 48193e8 commit 7364369

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2266,6 +2266,8 @@ fn test_linux(target: &str) {
22662266
// Require Linux kernel 5.x:
22672267
| "MSG_COPY"
22682268
if musl => true,
2269+
// Require Linux kernel 5.1:
2270+
"F_SEAL_FUTURE_WRITE" => true,
22692271

22702272
// The musl version 1.0.22 used in CI does not
22712273
// contain these glibc constants yet:

src/unix/notbsd/linux/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@ pub const F_TEST: ::c_int = 3;
10501050
pub const F_TLOCK: ::c_int = 2;
10511051
pub const F_ULOCK: ::c_int = 0;
10521052

1053+
pub const F_SEAL_FUTURE_WRITE: ::c_int = 0x0010;
1054+
10531055
pub const IFF_LOWER_UP: ::c_int = 0x10000;
10541056
pub const IFF_DORMANT: ::c_int = 0x20000;
10551057
pub const IFF_ECHO: ::c_int = 0x40000;

0 commit comments

Comments
 (0)