devela::_dep::rustix::io

Function pwritev

pub fn pwritev<Fd>(
    fd: Fd,
    bufs: &[IoSlice<'_>],
    offset: u64,
) -> Result<usize, Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
Expand description

pwritev(fd, bufs, offset)—Writes to a file at a given position from multiple buffers.

Contrary to POSIX, on many popular platforms including Linux and FreeBSD, if the file is opened in append mode, this ignores the offset appends the data to the end of the file.

§References