MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / mknodat

Function mknodat

src/fs/at.rs:475–485  ·  view source on GitHub ↗
(
    dirfd: Fd,
    path: P,
    file_type: FileType,
    mode: Mode,
    dev: Dev,
)

Source from the content-addressed store, hash-verified

473)))]
474#[inline]
475pub fn mknodat<P: path::Arg, Fd: AsFd>(
476 dirfd: Fd,
477 path: P,
478 file_type: FileType,
479 mode: Mode,
480 dev: Dev,
481) -> io::Result<()> {
482 path.into_with_c_str(|path| {
483 backend::fs::syscalls::mknodat(dirfd.as_fd(), path, file_type, mode, dev)
484 })
485}
486
487/// `mkfifoat(dirfd, path, mode)`—Make a FIFO special file.
488///

Callers 4

mkfifoatFunction · 0.70
test_mknodatFunction · 0.50
mainFunction · 0.50

Calls 2

into_with_c_strMethod · 0.80
as_fdMethod · 0.45

Tested by 2

test_mknodatFunction · 0.40