rust/library/std
xstaticxgpx 2232fe8da3 unix/kernel_copy.rs: copy_file_range_candidate allows empty output files
This is for https://github.com/rust-lang/rust/issues/114341

The `meta.len() > 0` condition here is intended for inputs only,
ie. when input is in the `/proc` filesystem as documented.

That inaccurately included empty output files which are then shunted to
the sendfile() routine leading to higher than nescessary IO util in some
cases, specifically with CoW filesystems like btrfs.

Further, `NoneObtained` is not relevant in this context, so remove it.

Simply, determine what is input or output given the passed enum Unit.
2023-08-03 19:27:45 -04:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
src unix/kernel_copy.rs: copy_file_range_candidate allows empty output files 2023-08-03 19:27:45 -04:00
tests Rollup merge of #114172 - fortanix:raoul/fix_process-spawning_test, r=workingjubilee 2023-07-29 06:13:07 +02:00
build.rs wip: Support Apple tvOS in libstd 2023-06-21 14:59:37 -07:00
Cargo.toml Add wasm32-wasi-threads target + WASI threads 2023-07-29 16:37:50 +01:00