Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libc-test/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4854,6 +4854,12 @@ fn test_linux(t: &Target) {
// eabihf targets are tested using an older version of glibc
"AT_HANDLE_FID" if musl || eabihf => true,

// Added in 7.2
"FUTEX_ROBUST_UNLOCK" => kernel < (7, 2),
"FUTEX_ROBUST_LIST32" => kernel < (7, 2),
// Value changed in 7.2
"FUTEX_CMD_MASK" => kernel < (7, 2),

_ => false,
}
});
Expand Down
2 changes: 2 additions & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,8 @@ FUTEX_OP_XOR
FUTEX_OWNER_DIED
FUTEX_PRIVATE_FLAG
FUTEX_REQUEUE
FUTEX_ROBUST_LIST32
FUTEX_ROBUST_UNLOCK
FUTEX_TID_MASK
FUTEX_TRYLOCK_PI
FUTEX_UNLOCK_PI
Expand Down
5 changes: 4 additions & 1 deletion src/new/linux_uapi/linux/futex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ pub const FUTEX_LOCK_PI2: c_int = 13;

pub const FUTEX_PRIVATE_FLAG: c_int = 128;
pub const FUTEX_CLOCK_REALTIME: c_int = 256;
pub const FUTEX_ROBUST_UNLOCK: c_int = 512;
pub const FUTEX_ROBUST_LIST32: c_int = 1024;

pub const FUTEX_CMD_MASK: c_int = !(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME);
pub const FUTEX_CMD_MASK: c_int =
!(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME | FUTEX_ROBUST_UNLOCK | FUTEX_ROBUST_LIST32);

pub const FUTEX2_SIZE_U8: c_int = 0x00;
pub const FUTEX2_SIZE_U16: c_int = 0x01;
Expand Down
Loading