Section: Linux Programmer's Manual (2)
Return to Main Contents
removexattr, lremovexattr, fremovexattr - remove an extended attribute
int removexattr(const char *path, const char *name);
int lremovexattr(const char *path, const char *name);
int fremovexattr(int fd, const char *name);
Extended attributes are
pairs associated with inodes (files, directories, symbolic links, etc.).
They are extensions to the normal attributes which are associated
with all inodes in the system (i.e., the
A complete overview of extended attributes concepts can be found in
removes the extended attribute identified by
and associated with the given
in the filesystem.
is identical to
except in the case of a symbolic link, where the extended attribute is
removed from the link itself, not the file that it refers to.
is identical to
only the extended attribute is removed from the open file referred to by
(as returned by
in place of
An extended attribute name is a null-terminated string.
includes a namespace prefix; there may be several, disjoint
namespaces associated with an individual inode.
On success, zero is returned.
On failure, -1 is returned and
is set appropriately.
The named attribute does not exist.
is defined to be a synonym for
Extended attributes are not supported by the filesystem, or are disabled.
In addition, the errors documented in
can also occur.
These system calls have been available on Linux since kernel 2.4;
glibc support is provided since version 2.3.
These system calls are Linux-specific.
This page is part of release 4.16 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at