MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / stdout

Function stdout

src/stdio.rs:183–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181#[doc(alias = "STDOUT_FILENO")]
182#[inline]
183pub 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///

Callers 4

dup2_stdout_stdoutFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

dup2_stdout_stdoutFunction · 0.68