()
| 59 | #[doc(alias = "STDIN_FILENO")] |
| 60 | #[inline] |
| 61 | pub const fn stdin() -> BorrowedFd<'static> { |
| 62 | // SAFETY: When "std" is enabled, the standard library assumes that the |
| 63 | // stdio file descriptors are all valid. |
| 64 | unsafe { BorrowedFd::borrow_raw(c::STDIN_FILENO as RawFd) } |
| 65 | } |
| 66 | |
| 67 | /// `STDIN_FILENO`—Standard input, borrowed. |
| 68 | /// |
no outgoing calls