Can only be called on 64 bit systems. For 32 bit see llseek.
pub fn lseek(fd: fd_t, offset: off_t, whence: u32) u64
pub fn lseek(fd: fd_t, offset: off_t, whence: u32) u64 {
return switch (builtin.abi) {
.gnuabin32,
.muslabin32,
.abin32,
.gnux32,
.muslx32,
.x32,
=> syscall_lseek(fd, offset, whence),
else => syscall3(.lseek, @as(u32, @bitCast(fd)), @as(u64, @bitCast(offset)), whence),
};
}