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

Function stderr

src/stdio.rs:299–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297#[doc(alias = "STDERR_FILENO")]
298#[inline]
299pub 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///

Callers 2

dup2_stderr_stderrFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

dup2_stderr_stderrFunction · 0.68