rust/library/std/src
Matthias Krüger 539fecb882
Rollup merge of #114373 - xstaticxgpx:dev, r=the8472
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.

Simply, determine what is input or output given the passed boolean.
2023-08-04 07:25:46 +02:00
..
backtrace Implement UnwindSafe and RefUnwindSafe for Backtrace 2023-07-31 10:38:24 +02:00
collections avoid ambiguous word 2023-07-12 20:10:52 +02:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error remove fn backtrace 2022-08-01 20:10:40 +00:00
f32 Remove some cfg(not(bootstrap)) 2022-12-11 01:20:18 -05:00
f64 Remove some cfg(not(bootstrap)) 2022-12-11 01:20:18 -05:00
ffi Rollup merge of #113701 - aswild:std-ffi-frombytesuntilnul, r=dtolnay 2023-07-31 22:51:13 +02:00
fs Auto merge of #102757 - pcc:android-std-tests, r=workingjubilee 2023-07-26 07:57:32 +00:00
io Fix empty_write since rust version attribute 2023-07-30 22:53:32 +01:00
net Rollup merge of #112464 - eval-exec:exec/fix-connect_timeout-overflow, r=ChrisDenton 2023-06-20 14:23:39 +02:00
num rustc_expand: Mark inner #![test] attributes as soft-unstable 2020-11-20 19:35:03 +03:00
os Add definitions for riscv64_linux_android target 2023-07-26 11:46:48 -07:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path std: add tests for Path::with_extension 2023-07-14 13:19:45 -03:00
prelude correct std::prelude comment 2023-04-27 15:56:57 +02:00
process Workaround for old android not having echo 2023-07-05 09:54:16 +01:00
sync Rollup merge of #109318 - joboet:better_fmt_placeholder, r=dtolnay 2023-07-31 22:51:12 +02:00
sys unix/kernel_copy.rs: copy_file_range_candidate allows empty output files 2023-08-03 19:27:45 -04:00
sys_common print omitted frames count for short backtrace mode 2023-07-29 20:36:05 +08:00
thread Update tvOS support elsewhere in the stdlib 2023-06-21 14:59:40 -07:00
time Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc 2023-05-05 18:40:32 +05:30
alloc.rs remove additional [allow(unused_unsafe)] 2023-07-24 17:56:38 -04:00
ascii.rs Add the basic ascii::Char type 2023-05-03 22:09:33 -07:00
backtrace.rs Implement UnwindSafe and RefUnwindSafe for Backtrace 2023-07-31 10:38:24 +02:00
env.rs Rollup merge of #109894 - fleetingbytes:109893-var_os-never-returns-an-error, r=cuviper 2023-04-11 20:28:46 -07:00
error.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
f32.rs move pal cfgs in f32 and f64 to sys 2023-07-09 17:32:26 -07:00
f64.rs move pal cfgs in f32 and f64 to sys 2023-07-09 17:32:26 -07:00
fs.rs Auto merge of #94748 - tbu-:pr_file_arc, r=Amanieu 2023-07-10 13:26:42 +00:00
keyword_docs.rs enable rust_2018_idioms for doctests 2023-05-07 00:12:29 +03:00
lib.rs Add internal_features lint 2023-08-03 14:50:50 +02:00
macros.rs Fix typo in eprintln docs 2023-06-21 01:08:10 +01:00
num.rs Add Saturating type (based on Wrapping type) 2021-08-10 19:27:01 +02:00
panic.rs Shorten lifetime of even more panic temporaries 2023-05-15 03:47:37 -07:00
panicking.rs Change default panic handler message format. 2023-07-29 11:42:50 +02:00
path.rs std: remove an allocation in Path::with_extension 2023-06-27 18:45:47 -03:00
primitive_docs.rs Extend unused_must_use to cover block exprs 2023-06-15 17:59:13 +08:00
process.rs Update documentation for std::process::Command's new method 2023-07-18 11:32:04 +02:00
rt.rs Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
time.rs update wasi_clock_time_api ref. 2023-04-29 19:04:16 +08:00