Remove unsafe libc layer

This commit is contained in:
Jeremy Soller 2016-10-28 14:17:34 -06:00
parent 8b09e01fef
commit a5de9bb591
10 changed files with 207 additions and 651 deletions

View file

@ -348,6 +348,16 @@ impl File {
inner: self.inner.duplicate()?
})
}
/// Get the path that this file points to.
///
/// This function is only implemented on Redox, but could be
/// implemented on other operating systems using readlink
#[cfg(redox)]
#[stable(feature = "rust1", since = "1.14.0")]
pub fn path(&self) -> io::Result<PathBuf> {
self.inner.path()
}
}
impl AsInner<fs_imp::File> for File {