File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,10 @@ pub const PRIO_PROCESS: ::c_int = 0;
506
506
pub const PRIO_PGRP : :: c_int = 1 ;
507
507
pub const PRIO_USER : :: c_int = 2 ;
508
508
509
+ pub const ITIMER_REAL : :: c_int = 0 ;
510
+ pub const ITIMER_VIRTUAL : :: c_int = 1 ;
511
+ pub const ITIMER_PROF : :: c_int = 2 ;
512
+
509
513
f ! {
510
514
pub fn CMSG_FIRSTHDR ( mhdr: * const :: msghdr) -> * mut :: cmsghdr {
511
515
if ( * mhdr) . msg_controllen as usize >= :: mem:: size_of:: <:: cmsghdr>( ) {
@@ -849,6 +853,23 @@ extern "C" {
849
853
options : :: c_int ,
850
854
rusage : * mut :: rusage ,
851
855
) -> :: pid_t ;
856
+ #[ cfg_attr(
857
+ all( target_os = "macos" , target_arch = "x86" ) ,
858
+ link_name = "getitimer$UNIX2003"
859
+ ) ]
860
+ pub fn getitimer (
861
+ which : :: c_int ,
862
+ curr_value : * mut :: itimerval
863
+ ) -> :: c_int ;
864
+ #[ cfg_attr(
865
+ all( target_os = "macos" , target_arch = "x86" ) ,
866
+ link_name = "setitimer$UNIX2003"
867
+ ) ]
868
+ pub fn setitimer (
869
+ which : :: c_int ,
870
+ new_value : * const :: itimerval ,
871
+ old_value : * mut :: itimerval ,
872
+ ) -> :: c_int ;
852
873
853
874
pub fn regcomp (
854
875
preg : * mut regex_t ,
You can’t perform that action at this time.
0 commit comments