The attropen() function is similar to the open(2) function except that it takes a second path argument, attrpath, that
identifies an extended attribute file associated with the first path argument. This function returns a file descriptor for the extended attribute rather than the file named by the initial argument.
The O_XATTR flag is set by default for attropen() and the attrpath argument is always interpreted as a reference to an extended attribute. Extended attributes must be referenced with a relative path; providing an absolute path results
in a normal file reference.
|