File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -588,6 +588,11 @@ extern {
588
588
hdtr : * mut :: sf_hdtr ,
589
589
sbytes : * mut :: off_t ,
590
590
flags : :: c_int ) -> :: c_int ;
591
+ pub fn sigtimedwait ( set : * const sigset_t ,
592
+ info : * mut siginfo_t ,
593
+ timeout : * const :: timespec ) -> :: c_int ;
594
+ pub fn sigwaitinfo ( set : * const sigset_t ,
595
+ info : * mut siginfo_t ) -> :: c_int ;
591
596
}
592
597
593
598
cfg_if ! {
Original file line number Diff line number Diff line change @@ -378,4 +378,10 @@ extern {
378
378
pub fn pthread_attr_getstack ( attr : * const :: pthread_attr_t ,
379
379
stackaddr : * mut * mut :: c_void ,
380
380
stacksize : * mut :: size_t ) -> :: c_int ;
381
+ #[ link_name = "__sigtimedwait50" ]
382
+ pub fn sigtimedwait ( set : * const sigset_t ,
383
+ info : * mut siginfo_t ,
384
+ timeout : * const :: timespec ) -> :: c_int ;
385
+ pub fn sigwaitinfo ( set : * const sigset_t ,
386
+ info : * mut siginfo_t ) -> :: c_int ;
381
387
}
Original file line number Diff line number Diff line change @@ -509,6 +509,10 @@ extern {
509
509
#[ cfg_attr( target_os = "netbsd" , link_name = "__sigaltstack14" ) ]
510
510
pub fn sigaltstack ( ss : * const stack_t ,
511
511
oss : * mut stack_t ) -> :: c_int ;
512
+ #[ cfg_attr( all( target_os = "macos" , target_arch ="x86" ) ,
513
+ link_name = "sigwait$UNIX2003" ) ]
514
+ pub fn sigwait ( set : * const sigset_t ,
515
+ sig : * mut :: c_int ) -> :: c_int ;
512
516
513
517
#[ cfg_attr( target_os = "netbsd" , link_name = "__utimes50" ) ]
514
518
pub fn utimes ( filename : * const :: c_char ,
Original file line number Diff line number Diff line change @@ -542,6 +542,11 @@ extern {
542
542
pub fn setns ( fd : :: c_int , nstype : :: c_int ) -> :: c_int ;
543
543
pub fn mkostemp ( template : * mut :: c_char , flags : :: c_int ) -> :: c_int ;
544
544
pub fn mkostemps ( template : * mut :: c_char , suffixlen : :: c_int , flags : :: c_int ) -> :: c_int ;
545
+ pub fn sigtimedwait ( set : * const sigset_t ,
546
+ info : * mut siginfo_t ,
547
+ timeout : * const :: timespec ) -> :: c_int ;
548
+ pub fn sigwaitinfo ( set : * const sigset_t ,
549
+ info : * mut siginfo_t ) -> :: c_int ;
545
550
}
546
551
547
552
cfg_if ! {
You can’t perform that action at this time.
0 commit comments