File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,11 @@ s! {
124
124
// Actually a union of an int and a void*
125
125
pub sival_ptr: * mut :: c_void
126
126
}
127
+
128
+ pub struct itimerval {
129
+ pub it_interval: :: timeval,
130
+ pub it_value: :: timeval,
131
+ }
127
132
}
128
133
129
134
pub const SIG_DFL : sighandler_t = 0 as sighandler_t ;
@@ -565,6 +570,12 @@ extern {
565
570
566
571
pub fn flock ( fd : :: c_int , operation : :: c_int ) -> :: c_int ;
567
572
573
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getitimer50" ) ]
574
+ pub fn getitimer ( which : :: c_int , curr_value : * mut :: itimerval ) -> :: c_int ;
575
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__setitimer50" ) ]
576
+ pub fn setitimer ( which : :: c_int ,
577
+ new_value : * :: itimerval ,
578
+ old_value : * :: itimerval ) -> :: c_int ;
568
579
#[ cfg_attr( target_os = "netbsd" , link_name = "__gettimeofday50" ) ]
569
580
pub fn gettimeofday ( tp : * mut :: timeval ,
570
581
tz : * mut :: c_void ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments