Function nix::sys::stat::mknodat
pub fn mknodat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P, kind: SFlag, perm: Mode, dev: dev_t) -> Result<()>
The portability is definied by:
#[cfg(not(any(target_os = "ios", target_os = "macos", target_os = "redox")))]
Documentation
Create a special or ordinary file, relative to a given directory.