We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eca616d commit 66e44a7Copy full SHA for 66e44a7
library/std/src/sys/hermit/fd.rs
@@ -48,6 +48,11 @@ impl FileDesc {
48
pub fn set_nonblocking(&self, _nonblocking: bool) -> io::Result<()> {
49
unsupported()
50
}
51
+
52
+ pub fn fstat(&self, stat: *mut abi::stat) -> io::Result<()> {
53
+ cvt(unsafe { abi::fstat(self.fd.as_raw_fd(), stat) })?;
54
+ Ok(())
55
+ }
56
57
58
impl<'a> Read for &'a FileDesc {
0 commit comments