File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 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;
15191519pub const FIND : :: ACTION = 0 ;
15201520pub const ENTER : :: ACTION = 1 ;
15211521
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+
15221528const_fn ! {
15231529 { const } fn _ALIGN( p: usize ) -> usize {
15241530 ( p + _ALIGNBYTES) & !_ALIGNBYTES
@@ -1703,6 +1709,15 @@ extern "C" {
17031709 pub fn hcreate ( nelt : :: size_t ) -> :: c_int ;
17041710 pub fn hdestroy ( ) ;
17051711 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 ;
17061721}
17071722
17081723#[ link( name = "execinfo" ) ]
You can’t perform that action at this time.
0 commit comments