()
| 181 | #[doc(alias = "STDOUT_FILENO")] |
| 182 | #[inline] |
| 183 | pub const fn stdout() -> BorrowedFd<'static> { |
| 184 | // SAFETY: When "std" is enabled, the standard library assumes that the |
| 185 | // stdio file descriptors are all valid. |
| 186 | unsafe { BorrowedFd::borrow_raw(c::STDOUT_FILENO as RawFd) } |
| 187 | } |
| 188 | |
| 189 | /// `STDOUT_FILENO`—Standard output, borrowed. |
| 190 | /// |
no outgoing calls