File tree 2 files changed +11
-1
lines changed 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ pub const CLOCK_BOOTTIME_ALARM: clockid_t = 9;
219
219
// 2014.) See also musl/mod.rs
220
220
// pub const CLOCK_SGI_CYCLE: clockid_t = 10;
221
221
// pub const CLOCK_TAI: clockid_t = 11;
222
+ pub const TIMER_ABSTIME : :: c_int = 1 ;
222
223
223
224
pub const RLIMIT_CPU : :: c_int = 0 ;
224
225
pub const RLIMIT_FSIZE : :: c_int = 1 ;
@@ -730,6 +731,10 @@ extern {
730
731
vec : * mut :: c_uchar ) -> :: c_int ;
731
732
pub fn clock_getres ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
732
733
pub fn clock_gettime ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
734
+ pub fn clock_nanosleep ( clk_id : clockid_t ,
735
+ flags : :: c_int ,
736
+ rqtp : * const :: timespec ,
737
+ rmtp : * mut :: timespec ) -> :: c_int ;
733
738
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
734
739
pub fn pthread_getattr_np ( native : :: pthread_t ,
735
740
attr : * mut :: pthread_attr_t ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -724,6 +724,8 @@ pub const SIGSTKSZ: ::size_t = 8192;
724
724
// __CLOCK_REALTIME0==0 is an obsoleted version of CLOCK_REALTIME==3
725
725
pub const CLOCK_REALTIME : clockid_t = 3 ;
726
726
pub const CLOCK_MONOTONIC : clockid_t = 4 ;
727
+ pub const TIMER_RELTIME : :: c_int = 0 ;
728
+ pub const TIMER_ABSTIME : :: c_int = 1 ;
727
729
728
730
pub const RLIMIT_CPU : :: c_int = 0 ;
729
731
pub const RLIMIT_FSIZE : :: c_int = 1 ;
@@ -959,6 +961,10 @@ extern {
959
961
-> :: c_int ;
960
962
pub fn clock_getres ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
961
963
pub fn clock_gettime ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
964
+ pub fn clock_nanosleep ( clk_id : clockid_t ,
965
+ flags : :: c_int ,
966
+ rqtp : * const :: timespec ,
967
+ rmtp : * mut :: timespec ) -> :: c_int ;
962
968
pub fn getnameinfo ( sa : * const :: sockaddr ,
963
969
salen : :: socklen_t ,
964
970
host : * mut :: c_char ,
@@ -1028,4 +1034,3 @@ extern {
1028
1034
pub fn pthread_condattr_setclock ( attr : * mut pthread_condattr_t ,
1029
1035
clock_id : clockid_t ) -> :: c_int ;
1030
1036
}
1031
-
You can’t perform that action at this time.
0 commit comments