File tree Expand file tree Collapse file tree 6 files changed +11
-6
lines changed Expand file tree Collapse file tree 6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1699,7 +1699,9 @@ extern {
1699
1699
link_name = "waitid$UNIX2003" ) ]
1700
1700
pub fn waitid ( idtype : idtype_t , id : id_t , infop : * mut :: siginfo_t ,
1701
1701
options : :: c_int ) -> :: c_int ;
1702
-
1702
+ pub fn brk ( addr : * const :: c_void ) -> * mut :: c_void ;
1703
+ pub fn sbrk ( increment : :: c_int ) -> * mut :: c_void ;
1704
+ pub fn settimeofday ( tv : * const timeval , tz : * const :: timezone ) -> :: c_int ;
1703
1705
}
1704
1706
1705
1707
cfg_if ! {
Original file line number Diff line number Diff line change @@ -1028,6 +1028,7 @@ extern {
1028
1028
nfds : :: nfds_t ,
1029
1029
timeout : * const :: timespec ,
1030
1030
sigmask : * const sigset_t ) -> :: c_int ;
1031
+ pub fn settimeofday ( tv : * const timeval , tz : * const :: timezone ) -> :: c_int ;
1031
1032
}
1032
1033
1033
1034
cfg_if ! {
Original file line number Diff line number Diff line change @@ -719,6 +719,8 @@ extern {
719
719
pub fn newlocale ( mask : :: c_int ,
720
720
locale : * const :: c_char ,
721
721
base : :: locale_t ) -> :: locale_t ;
722
+ #[ link_name = "__settimeofday50" ]
723
+ pub fn settimeofday ( tv : * const timeval , tz : * const :: c_void ) -> :: c_int ;
722
724
}
723
725
724
726
mod other;
Original file line number Diff line number Diff line change @@ -518,9 +518,6 @@ extern {
518
518
link_name = "kill$UNIX2003" ) ]
519
519
pub fn kill ( pid : pid_t , sig : :: c_int ) -> :: c_int ;
520
520
521
- pub fn brk ( addr : * mut :: c_void ) -> :: c_int ;
522
- pub fn sbrk ( increment : :: intptr_t ) -> * mut :: c_void ;
523
-
524
521
pub fn mlock ( addr : * const :: c_void , len : :: size_t ) -> :: c_int ;
525
522
pub fn munlock ( addr : * const :: c_void , len : :: size_t ) -> :: c_int ;
526
523
pub fn mlockall ( flags : :: c_int ) -> :: c_int ;
@@ -587,8 +584,6 @@ extern {
587
584
#[ cfg_attr( target_os = "netbsd" , link_name = "__gettimeofday50" ) ]
588
585
pub fn gettimeofday ( tp : * mut :: timeval ,
589
586
tz : * mut :: c_void ) -> :: c_int ;
590
- #[ cfg_attr( target_os = "netbsd" , link_name = "__settimeofday50" ) ]
591
- pub fn settimeofday ( tv : * const timeval , tz : * const :: timezone ) -> :: c_int ;
592
587
#[ cfg_attr( target_os = "netbsd" , link_name = "__times13" ) ]
593
588
pub fn times ( buf : * mut :: tms ) -> :: clock_t ;
594
589
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ pub type rlim_t = ::c_ulong;
12
12
pub type suseconds_t = i64 ;
13
13
pub type time_t = i64 ;
14
14
pub type wchar_t = i32 ;
15
+ pub type clock_t = i64 ;
15
16
16
17
s ! {
17
18
pub struct aiocb {
Original file line number Diff line number Diff line change @@ -835,6 +835,8 @@ extern {
835
835
rqtp : * const :: timespec ,
836
836
rmtp : * mut :: timespec ) -> :: c_int ;
837
837
pub fn clock_settime ( clk_id : clockid_t , tp : * const :: timespec ) -> :: c_int ;
838
+ pub fn settimeofday ( tv : * const timeval , tz : * const :: timezone ) -> :: c_int ;
839
+
838
840
pub fn prctl ( option : :: c_int , ...) -> :: c_int ;
839
841
pub fn pthread_getattr_np ( native : :: pthread_t ,
840
842
attr : * mut :: pthread_attr_t ) -> :: c_int ;
@@ -984,6 +986,8 @@ extern {
984
986
pub fn clearenv ( ) -> :: c_int ;
985
987
pub fn waitid ( idtype : idtype_t , id : id_t , infop : * mut :: siginfo_t ,
986
988
options : :: c_int ) -> :: c_int ;
989
+ pub fn brk ( addr : * mut :: c_void ) -> :: c_int ;
990
+ pub fn sbrk ( increment : :: intptr_t ) -> * mut :: c_void ;
987
991
}
988
992
989
993
cfg_if ! {
You can’t perform that action at this time.
0 commit comments