@@ -125,10 +125,19 @@ s! {
125
125
pub sival_ptr: * mut :: c_void
126
126
}
127
127
128
+ // <sys/time.h>
128
129
pub struct itimerval {
129
130
pub it_interval: :: timeval,
130
131
pub it_value: :: timeval,
131
132
}
133
+
134
+ // <sys/times.h>
135
+ pub struct tms {
136
+ pub tms_utime: :: clock_t,
137
+ pub tms_stime: :: clock_t,
138
+ pub tms_cutime: :: clock_t,
139
+ pub tms_cstime: :: clock_t,
140
+ }
132
141
}
133
142
134
143
pub const SIG_DFL : sighandler_t = 0 as sighandler_t ;
@@ -467,6 +476,8 @@ extern {
467
476
pub fn setpgid ( pid : pid_t , pgid : pid_t ) -> :: c_int ;
468
477
pub fn setsid ( ) -> pid_t ;
469
478
pub fn setuid ( uid : uid_t ) -> :: c_int ;
479
+ pub fn setreuid ( ruid : uid_t , euid : uid_t ) -> :: c_int ;
480
+ pub fn setregid ( rgid : gid_t , egid : gid_t ) -> :: c_int ;
470
481
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
471
482
link_name = "sleep$UNIX2003" ) ]
472
483
pub fn sleep ( secs : :: c_uint ) -> :: c_uint ;
@@ -573,6 +584,8 @@ extern {
573
584
#[ cfg_attr( target_os = "netbsd" , link_name = "__gettimeofday50" ) ]
574
585
pub fn gettimeofday ( tp : * mut :: timeval ,
575
586
tz : * mut :: c_void ) -> :: c_int ;
587
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__times13" ) ]
588
+ pub fn times ( buf : * mut :: tms ) -> :: clock_t ;
576
589
577
590
pub fn pthread_self ( ) -> :: pthread_t ;
578
591
pub fn pthread_create ( native : * mut :: pthread_t ,
@@ -802,6 +815,8 @@ extern {
802
815
set : * const sigset_t ,
803
816
oldset : * mut sigset_t )
804
817
-> :: c_int ;
818
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__sigpending14" ) ]
819
+ pub fn sigpending ( set : * mut sigset_t ) -> :: c_int ;
805
820
806
821
#[ cfg_attr( target_os = "netbsd" , link_name = "__timegm50" ) ]
807
822
pub fn timegm ( tm : * mut :: tm ) -> time_t ;
0 commit comments