rustix::fs

Function setxattr

source
pub fn setxattr<P: Arg, Name: Arg>(
    path: P,
    name: Name,
    value: &[u8],
    flags: XattrFlags,
) -> Result<()>
Expand description

setxattr(path, name, value.as_ptr(), value.len(), flags)—Set extended filesystem attributes.

§References