@@ -1302,6 +1302,29 @@ pub const F_SETNOSIGPIPE: ::c_int = 14;
1302
1302
pub const F_MAXFD : :: c_int = 11 ;
1303
1303
pub const F_GETPATH : :: c_int = 15 ;
1304
1304
1305
+ pub const FUTEX_WAIT : :: c_int = 0 ;
1306
+ pub const FUTEX_WAKE : :: c_int = 1 ;
1307
+ pub const FUTEX_FD : :: c_int = 2 ;
1308
+ pub const FUTEX_REQUEUE : :: c_int = 3 ;
1309
+ pub const FUTEX_CMP_REQUEUE : :: c_int = 4 ;
1310
+ pub const FUTEX_WAKE_OP : :: c_int = 5 ;
1311
+ pub const FUTEX_LOCK_PI : :: c_int = 6 ;
1312
+ pub const FUTEX_UNLOCK_PI : :: c_int = 7 ;
1313
+ pub const FUTEX_TRYLOCK_PI : :: c_int = 8 ;
1314
+ pub const FUTEX_WAIT_BITSET : :: c_int = 9 ;
1315
+ pub const FUTEX_WAKE_BITSET : :: c_int = 10 ;
1316
+ pub const FUTEX_WAIT_REQUEUE_PI : :: c_int = 11 ;
1317
+ pub const FUTEX_CMP_REQUEUE_PI : :: c_int = 12 ;
1318
+ pub const FUTEX_PRIVATE_FLAG : :: c_int = 1 << 7 ;
1319
+ pub const FUTEX_CLOCK_REALTIME : :: c_int = 1 << 8 ;
1320
+ pub const FUTEX_CMD_MASK : :: c_int = !( FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME ) ;
1321
+ pub const FUTEX_WAITERS : u32 = 1 << 31 ;
1322
+ pub const FUTEX_OWNER_DIED : u32 = 1 << 30 ;
1323
+ pub const FUTEX_SYNCOBJ_1 : u32 = 1 << 29 ;
1324
+ pub const FUTEX_SYNCOBJ_0 : u32 = 1 << 28 ;
1325
+ pub const FUTEX_TID_MASK : u32 = ( 1 << 28 ) - 1 ;
1326
+ pub const FUTEX_BITSET_MATCH_ANY : u32 = !0 ;
1327
+
1305
1328
pub const IP_RECVDSTADDR : :: c_int = 7 ;
1306
1329
pub const IP_SENDSRCADDR : :: c_int = IP_RECVDSTADDR ;
1307
1330
pub const IP_RECVIF : :: c_int = 20 ;
0 commit comments