Skip to content

Commit 9535008

Browse files
add FUTEX_WAITERS, FUTEX_OWNER_DIED and FUTEX_TID_MASK to linux
1 parent 043e8a3 commit 9535008

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,13 +824,16 @@ FUTEX_OP_OPARG_SHIFT
824824
FUTEX_OP_OR
825825
FUTEX_OP_SET
826826
FUTEX_OP_XOR
827+
FUTEX_OWNER_DIED
827828
FUTEX_PRIVATE_FLAG
828829
FUTEX_REQUEUE
830+
FUTEX_TID_MASK
829831
FUTEX_TRYLOCK_PI
830832
FUTEX_UNLOCK_PI
831833
FUTEX_WAIT
832834
FUTEX_WAIT_BITSET
833835
FUTEX_WAIT_REQUEUE_PI
836+
FUTEX_WAITERS
834837
FUTEX_WAKE
835838
FUTEX_WAKE_BITSET
836839
FUTEX_WAKE_OP

src/unix/linux_like/linux/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4135,6 +4135,7 @@ pub const FAN_NOFD: ::c_int = -1;
41354135
pub const FAN_NOPIDFD: ::c_int = FAN_NOFD;
41364136
pub const FAN_EPIDFD: ::c_int = -2;
41374137

4138+
// linux/futex.h
41384139
pub const FUTEX_WAIT: ::c_int = 0;
41394140
pub const FUTEX_WAKE: ::c_int = 1;
41404141
pub const FUTEX_FD: ::c_int = 2;
@@ -4154,6 +4155,10 @@ pub const FUTEX_PRIVATE_FLAG: ::c_int = 128;
41544155
pub const FUTEX_CLOCK_REALTIME: ::c_int = 256;
41554156
pub const FUTEX_CMD_MASK: ::c_int = !(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME);
41564157

4158+
pub const FUTEX_WAITERS: u32 = 0x80000000;
4159+
pub const FUTEX_OWNER_DIED: u32 = 0x40000000;
4160+
pub const FUTEX_TID_MASK: u32 = 0x3fffffff;
4161+
41574162
pub const FUTEX_BITSET_MATCH_ANY: ::c_int = 0xffffffff;
41584163

41594164
pub const FUTEX_OP_SET: ::c_int = 0;

0 commit comments

Comments
 (0)