Function lrs::syscall::fchmod

Changes the mode of an inode represented by a file descriptor.

Syntax

fn fchmod(fd: i32, mode: u16) -> i32

Arguments

NameDescription
fd

An open file descriptor referring to an inode.

mode

The new mode of the inode.

Return value

Returns success or an error value.

See also