rust/library/std/src/sys
bors 3c1e750364 Auto merge of #134547 - SUPERCILEX:unify-copy, r=thomcc
Unify fs::copy and io::copy on Linux

Currently, `fs::copy` first tries a regular file copy (via copy_file_range) and then falls back to userspace read/write copying. We should use `io::copy` instead as it tries copy_file_range, sendfile, and splice before falling back to userspace copying. This was discovered here: https://github.com/SUPERCILEX/fuc/issues/40

Perf impact: `fs::copy` will now have two additional statx calls to decide which syscall to use. I wonder if we should get rid of the statx calls and only continue down the next fallback when the relevant syscalls say the FD isn't supported.
2024-12-28 13:49:45 +00:00
..
alloc Revert using HEAP static in Windows alloc 2024-10-18 11:11:38 +00:00
anonymous_pipe Remove unneeded pub(crate) 2024-07-31 13:45:14 +00:00
os_str Make CloneToUninit dyn-compatible 2024-11-12 15:08:41 -06:00
pal Auto merge of #134547 - SUPERCILEX:unify-copy, r=thomcc 2024-12-28 13:49:45 +00:00
path std: update internal uses of io::const_error! 2024-11-26 18:38:24 +01:00
personality update link to "C++ Exceptions under the hood" blog 2024-11-29 11:46:34 +01:00
random Use arc4random of libc for RTEMS target 2024-11-21 23:10:19 +01:00
sync Rollup merge of #128184 - joboet:refactor_pthread_sync, r=workingjubilee 2024-12-01 08:15:21 +01:00
thread_local Rollup merge of #133472 - rust-wasi-web:master, r=joboet 2024-12-10 08:55:57 +01:00
backtrace.rs Improve comments for the default backtrace printer 2024-12-04 20:54:37 -05:00
cmath.rs fmt 2024-11-27 12:02:02 -05:00
exit_guard.rs Attempt to fix CI 2024-07-08 09:19:25 -05:00
mod.rs Revert Break into the debugger on panic (129019) 2024-09-25 17:53:57 +00:00