()
| 297 | #[doc(alias = "STDERR_FILENO")] |
| 298 | #[inline] |
| 299 | pub const fn stderr() -> BorrowedFd<'static> { |
| 300 | // SAFETY: When "std" is enabled, the standard library assumes that the |
| 301 | // stdio file descriptors are all valid. |
| 302 | unsafe { BorrowedFd::borrow_raw(c::STDERR_FILENO as RawFd) } |
| 303 | } |
| 304 | |
| 305 | /// `STDERR_FILENO`—Standard error, borrowed. |
| 306 | /// |
no outgoing calls