File tree 3 files changed +25
-1
lines changed
3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -3043,6 +3043,11 @@ telldir
3043
3043
timerfd_create
3044
3044
timerfd_gettime
3045
3045
timerfd_settime
3046
+ timer_create
3047
+ timer_delete
3048
+ timer_getoverrun
3049
+ timer_gettime
3050
+ timer_settime
3046
3051
tmpfile64
3047
3052
truncate
3048
3053
truncate64
Original file line number Diff line number Diff line change @@ -3361,7 +3361,7 @@ extern "C" {
3361
3361
pub fn lremovexattr ( path : * const c_char , name : * const c_char ) -> :: c_int ;
3362
3362
pub fn fremovexattr ( filedes : :: c_int , name : * const c_char ) -> :: c_int ;
3363
3363
pub fn signalfd ( fd : :: c_int , mask : * const :: sigset_t , flags : :: c_int ) -> :: c_int ;
3364
- pub fn timerfd_create ( clockid : :: c_int , flags : :: c_int ) -> :: c_int ;
3364
+ pub fn timerfd_create ( clockid : :: clockid_t , flags : :: c_int ) -> :: c_int ;
3365
3365
pub fn timerfd_gettime ( fd : :: c_int , curr_value : * mut itimerspec ) -> :: c_int ;
3366
3366
pub fn timerfd_settime (
3367
3367
fd : :: c_int ,
@@ -3824,6 +3824,24 @@ extern "C" {
3824
3824
pub fn gettid ( ) -> :: pid_t ;
3825
3825
}
3826
3826
3827
+ #[ link( name = "rt" ) ]
3828
+ extern "C" {
3829
+ pub fn timer_create (
3830
+ clockid : :: clockid_t ,
3831
+ sevp : * mut :: sigevent ,
3832
+ timerid : * mut :: timer_t ,
3833
+ ) -> :: c_int ;
3834
+ pub fn timer_delete ( timerid : :: timer_t ) -> :: c_int ;
3835
+ pub fn timer_getoverrun ( timerid : :: timer_t ) -> :: c_int ;
3836
+ pub fn timer_gettime ( timerid : :: timer_t , curr_value : * mut :: itimerspec ) -> :: c_int ;
3837
+ pub fn timer_settime (
3838
+ timerid : :: timer_t ,
3839
+ flags : :: c_int ,
3840
+ new_value : * const :: itimerspec ,
3841
+ old_value : * mut :: itimerspec ,
3842
+ ) -> :: c_int ;
3843
+ }
3844
+
3827
3845
cfg_if ! {
3828
3846
if #[ cfg( target_env = "uclibc" ) ] {
3829
3847
mod uclibc;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ pub type sa_family_t = u16;
2
2
pub type speed_t = :: c_uint ;
3
3
pub type tcflag_t = :: c_uint ;
4
4
pub type clockid_t = :: c_int ;
5
+ pub type timer_t = * mut :: c_void ;
5
6
pub type key_t = :: c_int ;
6
7
pub type id_t = :: c_uint ;
7
8
You can’t perform that action at this time.
0 commit comments