pub fn preadv(fd: fd_t, iov: [*]const iovec, count: usize, offset: off_t) usize
pub fn preadv(fd: fd_t, iov: [*]const iovec, count: usize, offset: off_t) usize { const offset_u: u64 = @bitCast(offset); return syscall5( .preadv, @as(u32, @bitCast(fd)), @intFromPtr(iov), count, // Kernel expects the offset is split into largest natural word-size. // See following link for detail: // https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=601cc11d054ae4b5e9b5babec3d8e4667a2cb9b5 @truncate(offset_u), if (@sizeOf(syscall_arg_t) < @sizeOf(u64)) @truncate(offset_u >> 32) else 0, ); }