rust/library/std/src/sys
Michael Howell 23d1b05726
Rollup merge of #103005 - solid-rs:patch/kmc-solid/readdir-terminator, r=m-ou-se
kmc-solid: Handle errors returned by `SOLID_FS_ReadDir`

Fixes the issue where the `std::fs::ReadDir` implementaton of the [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html) Tier 3 targets silently suppressed errors returned by the underlying `SOLID_FS_ReadDir` system function. The new implementation correctly handles all cases:

- `SOLID_ERR_NOTFOUND` indicates the end of directory stream.
- `SOLID_ERR_OK` + non-empty `d_name` indicates success.
- Some old filesystem drivers may return `SOLID_ERR_OK` + empty `d_name` to indicate the end of directory stream.
- Any other negative values (per ITRON convention) represent an error.
2022-10-23 14:48:15 -07:00
..
common Reduce CString allocations in std as much as possible 2022-10-03 11:13:17 -07:00
hermit std: use sync::Mutex for internal statics 2022-10-13 12:55:14 +02:00
itron std: make ReentrantMutex movable and const; simplify Stdout initialization 2022-09-03 14:05:28 +02:00
sgx Bugfix: keep TLS data in sync 2022-10-14 17:07:18 +02:00
solid Rollup merge of #103005 - solid-rs:patch/kmc-solid/readdir-terminator, r=m-ou-se 2022-10-23 14:48:15 -07:00
unix Auto merge of #103137 - dtolnay:readdir, r=Mark-Simulacrum 2022-10-23 18:55:40 +00:00
unsupported Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
wasi Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
wasm std: use sync::RwLock for internal statics 2022-09-19 23:27:26 +02:00
windows Reduce false positives in msys2 detection 2022-10-21 18:06:12 +01:00
mod.rs Reduce CString allocations in std as much as possible 2022-10-03 11:13:17 -07:00