//! Support for running under an operating system that provides libstd, for testing. extern crate std; use std::{thread::sleep, time::Duration}; /// No-opped interrupt support. /// /// TODO: Should this use Unix signals? pub mod interrupts { pub fn disable_interrupts() {} } /// Sleeps forever, in one-second chunks. pub fn sleep_forever() -> ! { loop { sleep(Duration::from_secs(1)); } }