Function lrs::syscall::setxattr

Sets an extended attribute of a file.

Syntax

fn setxattr(path: &CStr, name: &CStr, val: &[u8], flags: i32) -> i32

Arguments

NameDescription
path

The path of the file.

name

The name of the attribute.

val

The value of the attribute.

flags

The flags used while setting the attribute.

Return value

Returns success or an error value.

See also