use core::ffi::{c_int, c_short};

#[repr(C)]
pub struct pollfd {
    pub fd: c_int,
    pub events: c_short,
    pub revents: c_short,
}

pub type nfds_t = u32;

pub const POLLIN: c_short = 1 << 0;
pub const POLLOUT: c_short = 1 << 1;
pub const POLLERR: c_short = 1 << 2;

pub const POLLPRI: c_short = 1 << 3;
pub const POLLHUP: c_short = 1 << 4;
pub const POLLNVAL: c_short = 1 << 5;

pub const POLLRDNORM: c_short = 1 << 6;
pub const POLLRDBAND: c_short = 1 << 7;
pub const POLLWRNORM: c_short = 1 << 8;
pub const POLLWRBAND: c_short = 1 << 9;

#[no_mangle]
unsafe extern "C" fn poll(_fds: *mut pollfd, _nfds: nfds_t, _flags: c_int) -> c_int {
    todo!("poll()")
}
