@@ -609,6 +609,7 @@ extern {
609
609
link_name = "fdopendir$INODE64" ) ]
610
610
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
611
611
link_name = "fdopendir$INODE64$UNIX2003" ) ]
612
+ #[ cfg( not( target_os = "redox" ) ) ]
612
613
pub fn fdopendir ( fd : :: c_int ) -> * mut :: DIR ;
613
614
614
615
#[ cfg_attr( target_os = "macos" , link_name = "readdir$INODE64" ) ]
@@ -630,6 +631,7 @@ extern {
630
631
/// https://illumos.org/man/3lib/libc
631
632
/// https://docs.oracle.com/cd/E36784_01/html/E36873/libc-3lib.html
632
633
/// https://www.unix.com/man-page/opensolaris/3LIB/libc/
634
+ #[ cfg( not( target_os = "redox" ) ) ]
633
635
pub fn readdir_r ( dirp : * mut :: DIR , entry : * mut :: dirent ,
634
636
result : * mut * mut :: dirent ) -> :: c_int ;
635
637
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
@@ -641,6 +643,7 @@ extern {
641
643
link_name = "rewinddir$INODE64$UNIX2003" ) ]
642
644
pub fn rewinddir ( dirp : * mut :: DIR ) ;
643
645
646
+ #[ cfg( not( target_os = "redox" ) ) ]
644
647
pub fn openat ( dirfd : :: c_int , pathname : * const :: c_char ,
645
648
flags : :: c_int , ...) -> :: c_int ;
646
649
pub fn fchmodat ( dirfd : :: c_int , pathname : * const :: c_char ,
@@ -661,8 +664,10 @@ extern {
661
664
pub fn linkat ( olddirfd : :: c_int , oldpath : * const :: c_char ,
662
665
newdirfd : :: c_int , newpath : * const :: c_char ,
663
666
flags : :: c_int ) -> :: c_int ;
667
+ #[ cfg( not( target_os = "redox" ) ) ]
664
668
pub fn mkdirat ( dirfd : :: c_int , pathname : * const :: c_char ,
665
669
mode : :: mode_t ) -> :: c_int ;
670
+ #[ cfg( not( target_os = "redox" ) ) ]
666
671
pub fn readlinkat ( dirfd : :: c_int , pathname : * const :: c_char ,
667
672
buf : * mut :: c_char , bufsiz : :: size_t ) -> :: ssize_t ;
668
673
pub fn renameat ( olddirfd : :: c_int , oldpath : * const :: c_char ,
@@ -727,6 +732,7 @@ extern {
727
732
pub fn pathconf ( path : * const c_char , name : :: c_int ) -> c_long ;
728
733
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
729
734
link_name = "pause$UNIX2003" ) ]
735
+ #[ cfg( not( target_os = "redox" ) ) ]
730
736
pub fn pause ( ) -> :: c_int ;
731
737
pub fn pipe ( fds : * mut :: c_int ) -> :: c_int ;
732
738
pub fn posix_memalign ( memptr : * mut * mut :: c_void ,
@@ -836,6 +842,7 @@ extern {
836
842
pub fn symlink ( path1 : * const c_char ,
837
843
path2 : * const c_char ) -> :: c_int ;
838
844
845
+ #[ cfg( not( target_os = "redox" ) ) ]
839
846
pub fn truncate ( path : * const c_char , length : off_t ) -> :: c_int ;
840
847
pub fn ftruncate ( fd : :: c_int , length : off_t ) -> :: c_int ;
841
848
@@ -1071,6 +1078,7 @@ extern {
1071
1078
#[ cfg_attr( target_os = "netbsd" , link_name = "__timegm50" ) ]
1072
1079
pub fn timegm ( tm : * mut :: tm ) -> time_t ;
1073
1080
1081
+ #[ cfg( not( target_os = "redox" ) ) ]
1074
1082
pub fn getsid ( pid : pid_t ) -> pid_t ;
1075
1083
1076
1084
pub fn sysconf ( name : :: c_int ) -> :: c_long ;
0 commit comments