sigio 0.1.0

signal-based async io
Documentation
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(warnings)]
// the libc crate is lacking some gnu extensions, so we get them from bindgen
// by specifying HEADER -- -D_GNU_SOURCE

mod fcntl;
mod signal;

pub use fcntl::F_SETSIG;
pub use signal::siginfo_t;

impl siginfo_t {
	#[inline(always)]
	pub(crate) fn si_fd(&self) -> std::ffi::c_int {
		// unwrap some unions
		unsafe {
			self._sifields._sigpoll.si_fd
		}
	}
}