rust/library/std/src/sys
Tavian Barnes bc04a4eac4 fs: Use readdir() instead of readdir_r() on Linux
readdir() is preferred over readdir_r() on Linux and many other
platforms because it more gracefully supports long file names.  Both
glibc and musl (and presumably all other Linux libc implementations)
guarantee that readdir() is thread-safe as long as a single DIR* is not
accessed concurrently, which is enough to make a readdir()-based
implementation of ReadDir safe.  This implementation is already used for
some other OSes including Fuchsia, Redox, and Solaris.

See #40021 for more details.  Fixes #86649.  Fixes #34668.
2022-01-21 07:59:14 -05:00
..
common std: Get the standard library compiling for wasm64 2021-11-10 08:35:42 -08:00
hermit Auto merge of #81156 - DrMeepster:read_buf, r=joshtriplett 2021-12-09 10:11:55 +00:00
itron Fix a bunch of typos 2021-12-14 16:40:43 +01:00
sgx Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
solid kmc-solid: Add std::sys::solid::fs::File::read_buf 2021-12-21 11:18:35 +09:00
unix fs: Use readdir() instead of readdir_r() on Linux 2022-01-21 07:59:14 -05:00
unsupported Update library/std/src/sys/unsupported/fs.rs 2021-11-02 22:47:27 -07:00
wasi Fix CVE-2022-21658 for WASI 2022-01-19 15:59:23 +01:00
wasm Fix a bunch of typos 2021-12-14 16:40:43 +01:00
windows Fix CVE-2022-21658 for Windows 2022-01-19 15:59:21 +01:00
mod.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00