Function lrs::syscall::tee

Copies data from one pipe to another.

Syntax

fn tee(fd_in: i32, fd_out: i32, len: usize, flags: u32) -> i64

Arguments

NameDescription
fd_in

The pipe to copy from.

fd_out

The pipe to copy to.

len

The number of bytes to copy.

flags

Flags to use while copying.

Return value

Returns the number of bytes copied.

See also