rust/library/std/src/sys/fs
Tobias Bucher fde8a8d518 Optimize Seek::stream_len impl for File
It uses the file metadata on Unix with a fallback for files incorrectly
reported as zero-sized. It uses `GetFileSizeEx` on Windows.

This reduces the number of syscalls needed for determining the file size
of an open file from 3 to 1.
2025-06-05 16:27:27 +02:00
..
unix Move fs into sys 2025-03-08 16:22:37 -08:00
windows use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
common.rs Move fs into sys 2025-03-08 16:22:37 -08:00
hermit.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
mod.rs Rollup merge of #139450 - NobodyXu:new-api/make-fifo, r=tgross35 2025-04-24 08:12:57 +02:00
solid.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
uefi.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
unix.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
unsupported.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
wasi.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
windows.rs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00