@@ -60,7 +60,7 @@ use crate::fs::Timestamps;
6060) ) ) ]
6161use crate :: fs:: { Dev , FileType } ;
6262use crate :: fs:: { Mode , OFlags , SeekFrom , Stat } ;
63- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
63+ #[ cfg( not( target_os = "wasi" ) ) ]
6464use crate :: fs:: { StatVfs , StatVfsMountFlags } ;
6565use crate :: io;
6666#[ cfg( all( target_env = "gnu" , fix_y2038) ) ]
@@ -271,7 +271,7 @@ pub(crate) fn statfs(filename: &CStr) -> io::Result<StatFs> {
271271 }
272272}
273273
274- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
274+ #[ cfg( not( target_os = "wasi" ) ) ]
275275#[ inline]
276276pub ( crate ) fn statvfs ( filename : & CStr ) -> io:: Result < StatVfs > {
277277 unsafe {
@@ -1591,7 +1591,7 @@ pub(crate) fn fstatfs(fd: BorrowedFd<'_>) -> io::Result<StatFs> {
15911591 }
15921592}
15931593
1594- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
1594+ #[ cfg( not( target_os = "wasi" ) ) ]
15951595pub ( crate ) fn fstatvfs ( fd : BorrowedFd < ' _ > ) -> io:: Result < StatVfs > {
15961596 let mut statvfs = MaybeUninit :: < c:: statvfs > :: uninit ( ) ;
15971597 unsafe {
@@ -1600,7 +1600,7 @@ pub(crate) fn fstatvfs(fd: BorrowedFd<'_>) -> io::Result<StatVfs> {
16001600 }
16011601}
16021602
1603- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
1603+ #[ cfg( not( target_os = "wasi" ) ) ]
16041604fn libc_statvfs_to_statvfs ( from : c:: statvfs ) -> StatVfs {
16051605 StatVfs {
16061606 f_bsize : from. f_bsize as u64 ,
0 commit comments