File tree 1 file changed +15
-0
lines changed
src/unix/bsd/netbsdlike/openbsd
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1519,6 +1519,12 @@ pub const WCONTINUED: ::c_int = 8;
1519
1519
pub const FIND : :: ACTION = 0 ;
1520
1520
pub const ENTER : :: ACTION = 1 ;
1521
1521
1522
+ // futex.h
1523
+ pub const FUTEX_WAIT : :: c_int = 1 ;
1524
+ pub const FUTEX_WAKE : :: c_int = 2 ;
1525
+ pub const FUTEX_REQUEUE : :: c_int = 3 ;
1526
+ pub const FUTEX_PRIVATE_FLAG : :: c_int = 128 ;
1527
+
1522
1528
const_fn ! {
1523
1529
{ const } fn _ALIGN( p: usize ) -> usize {
1524
1530
( p + _ALIGNBYTES) & !_ALIGNBYTES
@@ -1703,6 +1709,15 @@ extern "C" {
1703
1709
pub fn hcreate ( nelt : :: size_t ) -> :: c_int ;
1704
1710
pub fn hdestroy ( ) ;
1705
1711
pub fn hsearch ( entry : :: ENTRY , action : :: ACTION ) -> * mut :: ENTRY ;
1712
+
1713
+ // futex.h
1714
+ pub fn futex (
1715
+ uaddr : * mut u32 ,
1716
+ op : :: c_int ,
1717
+ val : :: c_int ,
1718
+ timeout : * const timespec ,
1719
+ uaddr2 : * mut u32 ,
1720
+ ) -> :: c_int ;
1706
1721
}
1707
1722
1708
1723
#[ link( name = "execinfo" ) ]
You can’t perform that action at this time.
0 commit comments