1 .\" Copyright (C) Andreas Gruenbacher, February 2001
2 .\" Copyright (C) Silicon Graphics Inc, September 2001
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .TH REMOVEXATTR 2 2021-03-22 "Linux" "Linux Programmer's Manual"
8 removexattr, lremovexattr, fremovexattr \- remove an extended attribute
12 .B #include <sys/xattr.h>
14 .BI "int removexattr(const char\ *" path ", const char\ *" name );
15 .BI "int lremovexattr(const char\ *" path ", const char\ *" name );
16 .BI "int fremovexattr(int " fd ", const char\ *" name );
20 Extended attributes are
22 pairs associated with inodes (files, directories, symbolic links, etc.).
23 They are extensions to the normal attributes which are associated
24 with all inodes in the system (i.e., the
27 A complete overview of extended attributes concepts can be found in
31 removes the extended attribute identified by
33 and associated with the given
40 except in the case of a symbolic link, where the extended attribute is
41 removed from the link itself, not the file that it refers to.
46 only the extended attribute is removed from the open file referred to by
53 An extended attribute name is a null-terminated string.
56 includes a namespace prefix; there may be several, disjoint
57 namespaces associated with an individual inode.
59 On success, zero is returned.
60 On failure, \-1 is returned and
62 is set to indicate the error.
66 The named attribute does not exist.
68 .\" is defined to be a synonym for
71 .\" .IR <attr/attributes.h> .)
74 Extended attributes are not supported by the filesystem, or are disabled.
76 In addition, the errors documented in
80 These system calls have been available on Linux since kernel 2.4;
81 glibc support is provided since version 2.3.
83 These system calls are Linux-specific.
85 .\" Andreas Gruenbacher,
86 .\" .RI < a.gruenbacher@computer.org >
87 .\" and the SGI XFS development team,
88 .\" .RI < linux-xfs@oss.sgi.com >.
89 .\" Please send any bug reports or comments to these addresses.