pub(crate) mod fdentry_impl; pub(crate) mod host_impl; pub(crate) mod hostcalls_impl; mod filetime; #[cfg(any( target_os = "macos", target_os = "netbsd", target_os = "freebsd", target_os = "openbsd", target_os = "ios", target_os = "dragonfly" ))] mod bsd; #[cfg(target_os = "linux")] mod linux; use crate::old::snapshot_0::Result; use std::fs::{File, OpenOptions}; pub(crate) fn dev_null() -> Result { OpenOptions::new() .read(true) .write(true) .open("/dev/null") .map_err(Into::into) }