Function llseek [src]

Can only be called on 32 bit systems. For 64 bit see lseek.

Prototype

pub fn llseek(fd: i32, offset: u64, result: ?*u64, whence: usize) usize

Parameters

fd: i32offset: u64result: ?*u64whence: usize

Source

pub fn llseek(fd: i32, offset: u64, result: ?*u64, whence: usize) usize { // NOTE: The offset parameter splitting is independent from the target // endianness. return syscall5( .llseek, @as(usize, @bitCast(@as(isize, fd))), @as(usize, @truncate(offset >> 32)), @as(usize, @truncate(offset)), @intFromPtr(result), whence, ); }