rust/library/std/src/sys
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
..
alloc use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
anonymous_pipe Mv os-specific trait impl of Pipe* into std::os::* 2025-03-14 01:03:56 +11:00
args Implement Iterator::last for vec::IntoIter 2025-05-02 20:08:28 -07:00
env use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
fd Rollup merge of #139667 - 1c3t3a:remove-no-sanitize, r=m-ou-se 2025-04-17 00:16:21 +02:00
fs Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
io Trusty: Implement write_vectored for stdio 2025-03-27 16:49:30 -07:00
net std: sys: net: uefi: Implement TCP4 connect 2025-05-23 23:49:33 +05:30
os_str Rollup merge of #141467 - cyrgani:const-empty-stringlikes, r=Amanieu 2025-06-04 07:54:33 +02:00
pal Optimize Seek::stream_len impl for File 2025-06-05 16:27:27 +02:00
path Use with_native_path for Windows 2025-04-11 18:02:03 +00:00
personality Rollup merge of #137621 - Berrysoft:cygwin-std, r=joboet 2025-03-17 05:47:49 -04:00
process std: add safety comments to CStringArray 2025-05-23 17:09:02 +02:00
random use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
stdio Rollup merge of #139517 - Ayush1325:uefi-cmd-stdin-null, r=joboet 2025-04-15 15:47:25 +10:00
sync Add comments to diagnostic items 2025-05-28 17:05:45 +02:00
thread_local Rollup merge of #141455 - joboet:tls_exhaustion_abort, r=tgross35 2025-06-03 21:53:36 +02:00
backtrace.rs Improve comments for the default backtrace printer 2024-12-04 20:54:37 -05:00
cmath.rs Initial implementation of core_float_math 2025-05-13 22:08:18 +00:00
env_consts.rs Move zkVM constants into sys::env_consts 2025-04-21 21:05:04 -07:00
exit_guard.rs std: use the address of errno to identify threads in unique_thread_exit 2025-04-01 13:35:16 +02:00
mod.rs Move sys::pal::os::Env into sys::env 2025-04-21 20:56:43 -07:00