Function lrs::syscall::mknodat

Creates a file relative to a directory.

Syntax

fn mknodat(dir: i32, path: &CStr, mode: u16, dev: u32) -> i32

Arguments

NameDescription
dir

The directory relative to which relative paths are interpreted.

path

The path of the new file.

mode

The mode of a new file.

dev

The device type of a new device.

Return value

Returns success or an error value.

See also