Function lrs::syscall::getxattr

Retrieves an extended attribute of a file.

Syntax

fn getxattr(path: &CStr, name: &CStr, val: &mut [u8]) -> i64

Arguments

NameDescription
path

The path of the file.

name

The name of the attribute.

val

The buffer in which the value will be placed.

Return value

Returns the size of the value or an error value.

See also