pub fn getxattr<P: Arg, Name: Arg, Buf: Buffer<u8>>(
path: P,
name: Name,
value: Buf,
) -> Result<Buf::Output>Expand description
getxattr(path, name, value)—Get extended filesystem attributes.
Unlike the libc getxattr function, this function does not treat an
buffer with zero length as a way to return the size of the attribute.
To obtain the size, use getxattr_query.
For a higher-level API to xattr functionality, see the xattr crate.