[][src]Function linux::syscall::splice

pub fn splice(
    fd_in: c_int,
    off_in: Option<&mut u64>,
    fd_out: c_int,
    off_out: Option<&mut u64>,
    len: usize,
    flags: c_uint
) -> ssize_t

Copies data between two file descriptors.

[argument, fd_in] The file to copy from.

[argument, off_in] The position to copy from.

[argument, fd_out] The file to copy to.

[argument, off_out] The position to copy to.

[argument, len] The number of bytes to copy.

[argument, flags] Flags to use while copying.

[return_value] Returns the number of bytes copied.

= See also

  • link:man:splice(2)