File tree Expand file tree Collapse file tree 5 files changed +7
-24
lines changed Expand file tree Collapse file tree 5 files changed +7
-24
lines changed Original file line number Diff line number Diff line change @@ -4477,12 +4477,6 @@ extern "C" {
44774477 ...
44784478 ) -> :: c_int ;
44794479 pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
4480- pub fn clock_nanosleep (
4481- clk_id : :: clockid_t ,
4482- flags : :: c_int ,
4483- rqtp : * const :: timespec ,
4484- rmtp : * mut :: timespec ,
4485- ) -> :: c_int ;
44864480 pub fn pthread_attr_getguardsize (
44874481 attr : * const :: pthread_attr_t ,
44884482 guardsize : * mut :: size_t ,
Original file line number Diff line number Diff line change @@ -2596,12 +2596,6 @@ extern "C" {
25962596 ...
25972597 ) -> :: c_int ;
25982598 pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
2599- pub fn clock_nanosleep (
2600- clk_id : :: clockid_t ,
2601- flags : :: c_int ,
2602- rqtp : * const :: timespec ,
2603- rmtp : * mut :: timespec ,
2604- ) -> :: c_int ;
26052599 pub fn pthread_attr_getguardsize (
26062600 attr : * const :: pthread_attr_t ,
26072601 guardsize : * mut :: size_t ,
Original file line number Diff line number Diff line change @@ -3183,12 +3183,6 @@ extern "C" {
31833183 ...
31843184 ) -> :: c_int ;
31853185 pub fn sched_getscheduler ( pid : :: pid_t ) -> :: c_int ;
3186- pub fn clock_nanosleep (
3187- clk_id : :: clockid_t ,
3188- flags : :: c_int ,
3189- rqtp : * const :: timespec ,
3190- rmtp : * mut :: timespec ,
3191- ) -> :: c_int ;
31923186 pub fn pthread_attr_getguardsize (
31933187 attr : * const :: pthread_attr_t ,
31943188 guardsize : * mut :: size_t ,
Original file line number Diff line number Diff line change @@ -969,6 +969,13 @@ extern "C" {
969969 ) ]
970970 #[ cfg_attr( target_os = "netbsd" , link_name = "__nanosleep50" ) ]
971971 pub fn nanosleep ( rqtp : * const timespec , rmtp : * mut timespec ) -> :: c_int ;
972+ #[ cfg( not( target_os = "macos" ) ) ]
973+ pub fn clock_nanosleep (
974+ clock_id : :: clockid_t ,
975+ flags : :: c_int ,
976+ rqtp : * const :: timespec ,
977+ rmtp : * mut :: timespec ,
978+ ) -> :: c_int ;
972979 pub fn tcgetpgrp ( fd : :: c_int ) -> pid_t ;
973980 pub fn tcsetpgrp ( fd : :: c_int , pgrp : :: pid_t ) -> :: c_int ;
974981 pub fn ttyname ( fd : :: c_int ) -> * mut c_char ;
Original file line number Diff line number Diff line change @@ -2208,12 +2208,6 @@ extern "C" {
22082208 pub fn ___errno ( ) -> * mut :: c_int ;
22092209 pub fn clock_getres ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
22102210 pub fn clock_gettime ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
2211- pub fn clock_nanosleep (
2212- clk_id : :: clockid_t ,
2213- flags : :: c_int ,
2214- rqtp : * const :: timespec ,
2215- rmtp : * mut :: timespec ,
2216- ) -> :: c_int ;
22172211 pub fn clock_settime (
22182212 clk_id : :: clockid_t ,
22192213 tp : * const :: timespec ,
You can’t perform that action at this time.
0 commit comments