rust/library/std/src
Guillaume Gomez d5e8d85249
Rollup merge of #120452 - alexcrichton:update-windows-seek-write-docs, r=ChrisDenton
std: Update documentation of seek_write on Windows

Currently the documentation of `FileExt::seek_write` on Windows indicates that writes beyond the end of the file leave intermediate bytes uninitialized. This commentary dates back to the original inclusion of these functions in #35704 (wow blast from the past!). At the time the functionality here was implemented using `WriteFile`, but nowadays the `NtWriteFile` method is used instead. The documentation for `NtWriteFile` explicitly states:

> If Length and ByteOffset specify a write operation past the current
> end-of-file mark, NtWriteFile automatically extends the file and updates
> the end-of-file mark; any bytes that are not explicitly written between
> such old and new end-of-file marks are defined to be zero.

This commentary has had a downstream impact in the `system-interface` crate where it tries to handle this by explicitly writing zeros, but I don't believe that's necessary any more. I'm sending a PR upstream here to avoid future confusion and codify that zeros are written in the intermediate bytes matching what Windows currently provides.
2024-01-30 11:19:18 +01:00
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections Auto merge of #117756 - a1phyr:hashmap_fold, r=the8472 2024-01-20 17:53:26 +00:00
env remove redundant imports 2023-12-10 10:56:22 +08:00
error core/any: remove Provider trait 2023-08-13 13:07:53 -06:00
f32 Add gamma and ln_gamma functions to f32 and f64 2023-07-31 07:41:50 -07:00
f64 Add gamma and ln_gamma functions to f32 and f64 2023-07-31 07:41:50 -07:00
ffi remove redundant imports 2023-12-10 10:56:22 +08:00
fs library: Fix a symlink test failing on Windows 2024-01-06 01:40:56 +03:00
hash update version placeholders 2023-12-22 11:01:42 +01:00
io Rollup merge of #119991 - kornelski:endless-read, r=the8472 2024-01-30 11:19:12 +01:00
net remove redundant imports 2023-12-10 10:56:22 +08:00
num removed nonfunctioning benchmark 2024-01-11 11:30:12 -05:00
os Rollup merge of #120452 - alexcrichton:update-windows-seek-write-docs, r=ChrisDenton 2024-01-30 11:19:18 +01:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path remove redundant imports 2023-12-10 10:56:22 +08:00
prelude correct std::prelude comment 2023-04-27 15:56:57 +02:00
process Rollup merge of #114379 - RalfJung:command-removed-env-vars, r=m-ou-se 2023-09-22 12:15:25 +02:00
sync std: Doc blocking behavior of LazyLock methods 2024-01-14 10:28:13 -08:00
sys Rollup merge of #120462 - mu001999:clean, r=Nilstrieb 2024-01-29 12:56:55 +00:00
sys_common std: once: use queue implementation on Xous 2024-01-13 09:13:56 -08:00
thread Revert example change from PR 116392 2024-01-20 18:39:48 -08:00
time Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc 2023-05-05 18:40:32 +05:30
alloc.rs libs: use assert_unchecked instead of intrinsic 2024-01-13 20:10:00 +01:00
ascii.rs Add the basic ascii::Char type 2023-05-03 22:09:33 -07:00
backtrace.rs Rollup merge of #118798 - GnomedDev:use-atomicu8-backtrace, r=Nilstrieb 2024-01-19 08:15:02 +01:00
env.rs Reformulate std::env::{set,remove}_env as safety note 2023-12-13 12:49:38 +01:00
error.rs Clean dead codes 2023-11-26 09:25:07 +08:00
f32.rs Stabilize round_ties_even 2024-01-19 18:05:53 -05:00
f64.rs Stabilize round_ties_even 2024-01-19 18:05:53 -05:00
fs.rs Handle out of memory errors in fs::read/read_to_string 2024-01-29 23:53:45 +00:00
keyword_docs.rs docs: Add example, reference link for type keyword. 2023-08-21 20:00:43 +07:00
lib.rs Switch NonZero alias direction. 2024-01-27 16:38:57 +01:00
macros.rs added column number to dbg!() 2023-12-12 18:12:23 +08:00
num.rs Switch NonZero alias direction. 2024-01-27 16:38:57 +01:00
panic.rs merge core_panic feature into panic_internals 2023-12-09 14:49:00 +01:00
panicking.rs Update test for E0796 and static_mut_ref lint 2024-01-07 17:29:25 +03:00
path.rs fix(std): Rename os_str_bytes to encoded_bytes 2023-09-01 19:33:16 -05:00
process.rs Cfg remove lang items in doctest 2023-12-15 16:17:28 +00:00
rt.rs Cfg remove lang items in doctest 2023-12-15 16:17:28 +00:00
time.rs Auto merge of #116238 - tamird:gettimeofday, r=thomcc 2023-10-24 04:15:39 +00:00