Skip to content

Commit c9fbd00

Browse files
committed
Auto merge of #1372 - tklauser:f-seal-future-write, r=gnzlbg
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.
2 parents 927ccfd + 7364369 commit c9fbd00

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
@@ -2130,6 +2130,8 @@ fn test_linux(target: &str) {
21302130
// Require Linux kernel 5.x:
21312131
| "MSG_COPY"
21322132
if musl => true,
2133+
// Require Linux kernel 5.1:
2134+
"F_SEAL_FUTURE_WRITE" => true,
21332135

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

src/unix/notbsd/linux/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,8 @@ pub const F_TEST: ::c_int = 3;
10821082
pub const F_TLOCK: ::c_int = 2;
10831083
pub const F_ULOCK: ::c_int = 0;
10841084

1085+
pub const F_SEAL_FUTURE_WRITE: ::c_int = 0x0010;
1086+
10851087
pub const IFF_LOWER_UP: ::c_int = 0x10000;
10861088
pub const IFF_DORMANT: ::c_int = 0x20000;
10871089
pub const IFF_ECHO: ::c_int = 0x40000;

0 commit comments

Comments
 (0)