Function lrs::syscall::fgetxattr

Retrieves an extended attribute of a file descriptor.

Syntax

fn fgetxattr(fd: i32, name: &CStr, val: &mut [u8]) -> i64

Arguments

NameDescription
fd

The file descriptor.

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