Function pwritev2

Source
pub fn pwritev2(
    fd: BorrowedFd<'_>,
    iovs: &[IoBuf],
    offset: off_t,
    flags: c_int,
) -> ssize_t
Expand description

Wrapper around the pwritev2 syscall for standard I/O slices.

We invoke the Linux syscall directly using libc::syscall instead of libc::pwritev2 because some host build environments (e.g. older glibc sysroots like glibc 2.17 used in Android prebuilts for Cuttlefish) do not export pwritev2 in libc.