about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-19 11:04:07 -0400
committerGitHub <noreply@github.com>2024-05-19 11:04:07 -0400
commitf848505c404049f3b75cd5fd6d7e08667e7c6d3a (patch)
tree13d2f27088892ad8f5f547a2737c7ab10d74f354 /library/std/src/os
parent0f923a48c50da7c14cc73f63e09e3c26463b8aa1 (diff)
parent5aa779fb647a0cb3efb02a6b715fb2647b9c0f25 (diff)
Rollup merge of #124304 - hermit-os:fuse, r=joboet
revise the interpretation of ReadDir for HermitOS

HermitOS supports getdents64. As under Linux, the dirent64 entry `d_off` is not longer used, because its definition is not clear. Instead of `d_off` the entry `d_reclen` is used to determine the end of the dirent64 entry.

In addition, take up `@workingjubilee`  suggestion from the discussions in rust-lang/rust#115984 to increase the readability.

Hermit is a tier 3 platform and this PR changes only files, wich are related to the tier 3 platform.
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/hermit/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/hermit/mod.rs b/library/std/src/os/hermit/mod.rs
index 89b1b831912..02a4b2c3ab5 100644
--- a/library/std/src/os/hermit/mod.rs
+++ b/library/std/src/os/hermit/mod.rs
@@ -2,7 +2,7 @@
 
 #[allow(unused_extern_crates)]
 #[stable(feature = "rust1", since = "1.0.0")]
-pub extern crate hermit_abi as abi;
+pub extern crate hermit_abi;
 
 pub mod ffi;
 pub mod io;