diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2025-02-23 18:57:10 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2025-02-24 16:08:14 +0100 |
| commit | 74ec86248a442b64bae3f83443ac72bb5be3d160 (patch) | |
| tree | 5a8414ec53ea42aef60a2a778d49a707ea0a1d86 | |
| parent | b522e7c5ea8334fbccb9dd7f9b33759304743fd0 (diff) | |
libstd: rustdoc: correct note on fds 0/1/2 pre-main
Closes: #137490
| -rw-r--r-- | library/std/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 938b8c6e4f4..6b72cb73be0 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -174,7 +174,9 @@ //! //! - after-main use of thread-locals, which also affects additional features: //! - [`thread::current()`] -//! - before-main stdio file descriptors are not guaranteed to be open on unix platforms +//! - under UNIX, before main, file descriptors 0, 1, and 2 may be unchanged +//! (they are guaranteed to be open during main, +//! and are opened to /dev/null O_RDWR if they weren't open on program start) //! //! //! [I/O]: io |
