NAME
rreemmoovveexxaattttrr,, ffrreemmoovveexxaattttrr - remove an extended attribute value
SYNOPSIS
##iinncclluuddee <
int rreemmoovveexxaattttrr(const char *path, const char *name, int options); int ffrreemmoovveexxaattttrr(int fd, const char *name, int options);> DESCRIPTION
Extended attributes extend the basic attributes associated with files anddirectories in the file system. They are stored as name:data pairs asso-
ciated with file system objects (files, directories, symlinks, etc). RReemmoovveexxaattttrr() deletes the extended attribute name associated with path.An extended attribute's name is a simple NULL-terminated UTF-8 string.
Options is a bit mask specifying various options: XATTRNOFOLLOW do not follow symbolic links. Normally, rreemmoovveexxaattttrr() acts on the target of path if it is a symbolic link. With this option, rreemmoovveexxaattttrr() will act on the link itself. ffrreemmoovveexxaattttrr() is identical to rreemmoovveexxaattttrr(), except that it removes an extended attribute from an open file referenced by file descriptor fd.RETURN VALUES
On success, 0 is returned. On failure, -1 is returned and the global
variable errno is set as follows. EERRRROORRSS [ENOATTR] The specified extended attribute does not exist. [ENOTSUP] The file system does not support extended attributes or has the feature disabled.[EROFS] The file system is mounted read-only.
[EPERM] This type of object does not support extended attributes.[EINVAL] name or options is invalid. name must be valid UTF-8
options must make sense. [ENOTDIR] A component of the path 's prefix is not a directory.[ENAMETOOLONG] Name exceeded XATTRMAXNAMELEN UTF-8 bytes, or a com-
ponent of path exceeded NAMEMAX characters, or the
entire path exceeded PATHMAX characters. [EACCES] Search permission is denied for a component path or permission to remove the attribute is denied. [ELOOP] Too many symbolic links were encountered in path. [EFAULT] path or name points to an invalid address. [EIO] An I/O error occurred while reading from or writing to the file system.SEE ALSO
getxattr(2), listxattr(2), setxattr(2) HISTORY rreemmoovveexxaattttrr() and ffrreemmoovveexxaattttrr() first appeared in Mac OS X 10.4. Mac OS X Oct 19, 2004 Mac OS X