@@ -609,6 +609,7 @@ extern {
609609 link_name = "fdopendir$INODE64" ) ]
610610 #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
611611 link_name = "fdopendir$INODE64$UNIX2003" ) ]
612+ #[ cfg( not( target_os = "redox" ) ) ]
612613 pub fn fdopendir ( fd : :: c_int ) -> * mut :: DIR ;
613614
614615 #[ cfg_attr( target_os = "macos" , link_name = "readdir$INODE64" ) ]
@@ -630,6 +631,7 @@ extern {
630631 /// https://illumos.org/man/3lib/libc
631632 /// https://docs.oracle.com/cd/E36784_01/html/E36873/libc-3lib.html
632633 /// https://www.unix.com/man-page/opensolaris/3LIB/libc/
634+ #[ cfg( not( target_os = "redox" ) ) ]
633635 pub fn readdir_r ( dirp : * mut :: DIR , entry : * mut :: dirent ,
634636 result : * mut * mut :: dirent ) -> :: c_int ;
635637 #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
@@ -641,6 +643,7 @@ extern {
641643 link_name = "rewinddir$INODE64$UNIX2003" ) ]
642644 pub fn rewinddir ( dirp : * mut :: DIR ) ;
643645
646+ #[ cfg( not( target_os = "redox" ) ) ]
644647 pub fn openat ( dirfd : :: c_int , pathname : * const :: c_char ,
645648 flags : :: c_int , ...) -> :: c_int ;
646649 pub fn fchmodat ( dirfd : :: c_int , pathname : * const :: c_char ,
@@ -661,8 +664,10 @@ extern {
661664 pub fn linkat ( olddirfd : :: c_int , oldpath : * const :: c_char ,
662665 newdirfd : :: c_int , newpath : * const :: c_char ,
663666 flags : :: c_int ) -> :: c_int ;
667+ #[ cfg( not( target_os = "redox" ) ) ]
664668 pub fn mkdirat ( dirfd : :: c_int , pathname : * const :: c_char ,
665669 mode : :: mode_t ) -> :: c_int ;
670+ #[ cfg( not( target_os = "redox" ) ) ]
666671 pub fn readlinkat ( dirfd : :: c_int , pathname : * const :: c_char ,
667672 buf : * mut :: c_char , bufsiz : :: size_t ) -> :: ssize_t ;
668673 pub fn renameat ( olddirfd : :: c_int , oldpath : * const :: c_char ,
@@ -727,6 +732,7 @@ extern {
727732 pub fn pathconf ( path : * const c_char , name : :: c_int ) -> c_long ;
728733 #[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
729734 link_name = "pause$UNIX2003" ) ]
735+ #[ cfg( not( target_os = "redox" ) ) ]
730736 pub fn pause ( ) -> :: c_int ;
731737 pub fn pipe ( fds : * mut :: c_int ) -> :: c_int ;
732738 pub fn posix_memalign ( memptr : * mut * mut :: c_void ,
@@ -836,6 +842,7 @@ extern {
836842 pub fn symlink ( path1 : * const c_char ,
837843 path2 : * const c_char ) -> :: c_int ;
838844
845+ #[ cfg( not( target_os = "redox" ) ) ]
839846 pub fn truncate ( path : * const c_char , length : off_t ) -> :: c_int ;
840847 pub fn ftruncate ( fd : :: c_int , length : off_t ) -> :: c_int ;
841848
@@ -1071,6 +1078,7 @@ extern {
10711078 #[ cfg_attr( target_os = "netbsd" , link_name = "__timegm50" ) ]
10721079 pub fn timegm ( tm : * mut :: tm ) -> time_t ;
10731080
1081+ #[ cfg( not( target_os = "redox" ) ) ]
10741082 pub fn getsid ( pid : pid_t ) -> pid_t ;
10751083
10761084 pub fn sysconf ( name : :: c_int ) -> :: c_long ;
0 commit comments