Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

llseek

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

linux.llseek
pub fn llseek(fd: fd_t, offset: off_t, result: ?*off_t, whence: u32) u32

File

lib/std/os/linux.zig:1813

Code

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