Remove unsafe libc layer
This commit is contained in:
parent
8b09e01fef
commit
a5de9bb591
10 changed files with 207 additions and 651 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue