Skip to main content

llistxattr_query

Function llistxattr_query 

Source
pub fn llistxattr_query<P: Arg>(path: P) -> Result<usize>
Expand description

llistxattr(path, NULL, 0)—Query the length of the list of extended filesystem attributes, without following symlinks in the last path component.

This function uses llistxattr with no buffer to just return the size of the list. This can be used to determine the size of a buffer to allocate for a subsequent call to llistxattr, however keep in mind that other processes may modify attributes at any time.

§References