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

Function tee

src/backend/linux_raw/pipe/syscalls.rs:92–99  ·  view source on GitHub ↗
(
    fd_in: BorrowedFd<'_>,
    fd_out: BorrowedFd<'_>,
    len: usize,
    flags: SpliceFlags,
)

Source from the content-addressed store, hash-verified

90
91#[inline]
92pub(crate) fn tee(
93 fd_in: BorrowedFd<'_>,
94 fd_out: BorrowedFd<'_>,
95 len: usize,
96 flags: SpliceFlags,
97) -> io::Result<usize> {
98 unsafe { ret_usize(syscall!(__NR_tee, fd_in, fd_out, pass_usize(len), flags)) }
99}
100
101#[inline]
102pub(crate) fn fcntl_getpipe_size(fd: BorrowedFd<'_>) -> io::Result<usize> {

Callers

nothing calls this directly

Calls 1

ret_usizeFunction · 0.50

Tested by

no test coverage detected