Type pollfd [src]
Source
pub const pollfd = switch (native_os) {
.linux => linux.pollfd,
.emscripten => emscripten.pollfd,
.windows => ws2_32.pollfd,
// https://github.com/SerenityOS/serenity/blob/265764ff2fec038855193296588a887fc322d76a/Kernel/API/POSIX/poll.h#L26-L30
.serenity => extern struct {
fd: fd_t,
events: c_short,
revents: c_short,
},
else => extern struct {
fd: fd_t,
events: i16,
revents: i16,
},
}