File tree Expand file tree Collapse file tree 6 files changed +7
-0
lines changed Expand file tree Collapse file tree 6 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ extern {
374
374
-> :: c_int ;
375
375
pub fn clock_getres ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
376
376
pub fn clock_gettime ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
377
+ pub fn clock_settime ( clk_id : clockid_t , tp : * const :: timespec ) -> :: c_int ;
377
378
378
379
pub fn setutxdb ( _type : :: c_uint , file : * mut :: c_char ) -> :: c_int ;
379
380
Original file line number Diff line number Diff line change @@ -364,6 +364,7 @@ extern {
364
364
365
365
pub fn clock_getres ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
366
366
pub fn clock_gettime ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
367
+ pub fn clock_settime ( clk_id : clockid_t , tp : * const :: timespec ) -> :: c_int ;
367
368
368
369
pub fn posix_fallocate ( fd : :: c_int , offset : :: off_t ,
369
370
len : :: off_t ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -472,6 +472,8 @@ extern {
472
472
pub fn clock_getres ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
473
473
#[ cfg_attr( target_os = "netbsd" , link_name = "__clock_gettime50" ) ]
474
474
pub fn clock_gettime ( clk_id : clockid_t , tp : * mut :: timespec ) -> :: c_int ;
475
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__clock_settime50" ) ]
476
+ pub fn clock_settime ( clk_id : clockid_t , tp : * const :: timespec ) -> :: c_int ;
475
477
pub fn __errno ( ) -> * mut :: c_int ;
476
478
pub fn shm_open ( name : * const :: c_char , oflag : :: c_int , mode : :: mode_t )
477
479
-> :: c_int ;
Original file line number Diff line number Diff line change 712
712
713
713
extern {
714
714
pub fn clock_gettime ( clk_id : :: c_int , tp : * mut :: timespec ) -> :: c_int ;
715
+ pub fn clock_settime ( clk_id : :: c_int , tp : * const :: timespec ) -> :: c_int ;
715
716
pub fn pthread_attr_getguardsize ( attr : * const :: pthread_attr_t ,
716
717
guardsize : * mut :: size_t ) -> :: c_int ;
717
718
pub fn pthread_attr_getstack ( attr : * const :: pthread_attr_t ,
Original file line number Diff line number Diff line change @@ -725,6 +725,7 @@ extern {
725
725
flags : :: c_int ,
726
726
rqtp : * const :: timespec ,
727
727
rmtp : * mut :: timespec ) -> :: c_int ;
728
+ pub fn clock_settime ( clk_id : clockid_t , tp : * const :: timespec ) -> :: c_int ;
728
729
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
729
730
pub fn pthread_getattr_np ( native : :: pthread_t ,
730
731
attr : * mut :: pthread_attr_t ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -979,6 +979,7 @@ extern {
979
979
flags : :: c_int ,
980
980
rqtp : * const :: timespec ,
981
981
rmtp : * mut :: timespec ) -> :: c_int ;
982
+ pub fn clock_settime ( clk_id : clockid_t , tp : * const :: timespec ) -> :: c_int ;
982
983
pub fn getnameinfo ( sa : * const :: sockaddr ,
983
984
salen : :: socklen_t ,
984
985
host : * mut :: c_char ,
You can’t perform that action at this time.
0 commit comments