@@ -584,6 +584,16 @@ extern {
584
584
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
585
585
link_name = "poll$UNIX2003" ) ]
586
586
pub fn poll ( fds : * mut pollfd , nfds : nfds_t , timeout : :: c_int ) -> :: c_int ;
587
+ #[ cfg_attr( all( target_os = "macos" , target_arch = "x86_64" ) ,
588
+ link_name = "select$1050" ) ]
589
+ #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
590
+ link_name = "select$UNIX2003" ) ]
591
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__select50" ) ]
592
+ pub fn select ( nfds : :: c_int ,
593
+ readfs : * mut fd_set ,
594
+ writefds : * mut fd_set ,
595
+ errorfds : * mut fd_set ,
596
+ timeout : * mut timeval ) -> :: c_int ;
587
597
}
588
598
589
599
// TODO: get rid of this #[cfg(not(...))]
@@ -648,16 +658,6 @@ extern {
648
658
pub fn sigdelset ( set : * mut sigset_t , signum : :: c_int ) -> :: c_int ;
649
659
#[ cfg_attr( target_os = "netbsd" , link_name = "__sigismember14" ) ]
650
660
pub fn sigismember ( set : * const sigset_t , signum : :: c_int ) -> :: c_int ;
651
- #[ cfg_attr( all( target_os = "macos" , target_arch = "x86_64" ) ,
652
- link_name = "select$1050" ) ]
653
- #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
654
- link_name = "select$UNIX2003" ) ]
655
- #[ cfg_attr( target_os = "netbsd" , link_name = "__select50" ) ]
656
- pub fn select ( nfds : :: c_int ,
657
- readfs : * mut fd_set ,
658
- writefds : * mut fd_set ,
659
- errorfds : * mut fd_set ,
660
- timeout : * mut timeval ) -> :: c_int ;
661
661
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86_64" ) ,
662
662
link_name = "pselect$1050" ) ]
663
663
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
0 commit comments