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.
This commit is contained in:
commit
c9fbd00633
@ -2130,6 +2130,8 @@ fn test_linux(target: &str) {
|
||||
// Require Linux kernel 5.x:
|
||||
| "MSG_COPY"
|
||||
if musl => true,
|
||||
// Require Linux kernel 5.1:
|
||||
"F_SEAL_FUTURE_WRITE" => true,
|
||||
|
||||
// The musl version 1.0.22 used in CI does not
|
||||
// contain these glibc constants yet:
|
||||
|
@ -1082,6 +1082,8 @@ pub const F_TEST: ::c_int = 3;
|
||||
pub const F_TLOCK: ::c_int = 2;
|
||||
pub const F_ULOCK: ::c_int = 0;
|
||||
|
||||
pub const F_SEAL_FUTURE_WRITE: ::c_int = 0x0010;
|
||||
|
||||
pub const IFF_LOWER_UP: ::c_int = 0x10000;
|
||||
pub const IFF_DORMANT: ::c_int = 0x20000;
|
||||
pub const IFF_ECHO: ::c_int = 0x40000;
|
||||
|
Loading…
Reference in New Issue
Block a user