nix::sys::stat

Function mknodat

Source
pub fn mknodat<P: ?Sized + NixPath>(
    dirfd: RawFd,
    path: &P,
    kind: SFlag,
    perm: Mode,
    dev: dev_t,
) -> Result<()>
Expand description

Create a special or ordinary file, relative to a given directory.