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.

epoll_pwait

linux.epoll_pwait
pub fn epoll_pwait(epoll_fd: fd_t, events: [*]epoll_event, maxevents: u32, timeout: i32, sigmask: ?*const sigset_t) usize

File

lib/std/os/linux.zig:2817

Code

pub fn epoll_pwait(epoll_fd: fd_t, events: [*]epoll_event, maxevents: u32, timeout: i32, sigmask: ?*const sigset_t) usize {
    return syscall6(
        .epoll_pwait,
        @as(u32, @bitCast(epoll_fd)),
        @intFromPtr(events),
        maxevents,
        @as(u32, @bitCast(timeout)),
        @intFromPtr(sigmask),
        NSIG / 8,
    );
}