Skip to main content

Module xattr

Module xattr 

Source
Expand description

Extended attribute functions.

Structs§

XattrFlags
XATTR_* constants for use with setxattr, and other *setxattr functions.

Functions§

fgetxattr
fgetxattr(fd, name, value.as_ptr(), value.len())—Get extended filesystem attributes on an open file descriptor.
fgetxattr_query
fgetxattr(fd, name, NULL, 0)—Query the length of an extended filesystem attribute on an open file descriptor.
flistxattr
flistxattr(fd, list.as_ptr(), list.len())—List extended filesystem attributes on an open file descriptor.
flistxattr_query
flistxattr(fd, list.as_ptr(), list.len())—Query the length of the list of extended filesystem attributes on an open file descriptor.
fremovexattr
fremovexattr(fd, name)—Remove an extended filesystem attribute on an open file descriptor.
fsetxattr
fsetxattr(fd, name, value.as_ptr(), value.len(), flags)—Set extended filesystem attributes on an open file descriptor.
getxattr
getxattr(path, name, value)—Get extended filesystem attributes.
getxattr_query
getxattr(path, name, NULL, 0)—Query the length of an extended filesystem attribute.
lgetxattr
lgetxattr(path, name, value.as_ptr(), value.len())—Get extended filesystem attributes, without following symlinks in the last path component.
lgetxattr_query
lgetxattr(path, name, NULL, 0)—Query the length of an extended filesystem attribute, without following symlinks in the last path component.
listxattr
listxattr(path, list.as_ptr(), list.len())—List extended filesystem attributes.
listxattr_query
listxattr(path, NULL, 0)—Query the length of the list of extended filesystem attributes.
llistxattr
llistxattr(path, list.as_ptr(), list.len())—List extended filesystem attributes, without following symlinks in the last path component.
llistxattr_query
llistxattr(path, NULL, 0)—Query the length of the list of extended filesystem attributes, without following symlinks in the last path component.
lremovexattr
lremovexattr(path, name)—Remove an extended filesystem attribute, without following symlinks in the last path component.
lsetxattr
setxattr(path, name, value.as_ptr(), value.len(), flags)—Set extended filesystem attributes, without following symlinks in the last path component.
removexattr
removexattr(path, name)—Remove an extended filesystem attribute.
setxattr
setxattr(path, name, value.as_ptr(), value.len(), flags)—Set extended filesystem attributes.